|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.google.gdata.data.AbstractExtension
com.google.gdata.data.ExtensionPoint
com.google.gdata.data.extensions.When
public class When
GData schema extension describing a period of time.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.google.gdata.data.ExtensionPoint |
---|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler |
Nested classes/interfaces inherited from class com.google.gdata.data.AbstractExtension |
---|
AbstractExtension.AttributesHandler |
Field Summary | |
---|---|
protected DateTime |
endTime
Event end time (optional). |
protected java.lang.String |
rel
|
protected DateTime |
startTime
Event start time (required). |
protected java.lang.String |
valueString
String description of the event times. |
Fields inherited from class com.google.gdata.data.ExtensionPoint |
---|
xmlBlob |
Fields inherited from class com.google.gdata.data.AbstractExtension |
---|
localName, namespace |
Constructor Summary | |
---|---|
When()
|
Method Summary | |
---|---|
protected void |
consumeAttributes(AttributeHelper helper)
Consumes attributes from the attribute helper. |
static ExtensionDescription |
getDefaultDescription()
Returns the suggested extension description and is repeatable. |
static ExtensionDescription |
getDefaultDescription(boolean repeatable)
Returns the suggested extension description with configurable repeatabilty. |
DateTime |
getEndTime()
|
java.lang.String |
getRel()
|
DateTime |
getStartTime()
|
java.lang.String |
getValueString()
|
protected void |
putAttributes(AttributeGenerator generator)
Puts attributes into the attribute generator. |
void |
setEndTime(DateTime v)
|
void |
setRel(java.lang.String v)
|
void |
setStartTime(DateTime v)
|
void |
setValueString(java.lang.String v)
|
protected void |
validate()
Checks the attributes to see if there are any problems. |
Methods inherited from class com.google.gdata.data.AbstractExtension |
---|
disableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.google.gdata.data.Extension |
---|
generate, getHandler |
Field Detail |
---|
protected java.lang.String rel
protected DateTime startTime
protected DateTime endTime
protected java.lang.String valueString
Constructor Detail |
---|
public When()
Method Detail |
---|
public java.lang.String getRel()
public void setRel(java.lang.String v)
public DateTime getStartTime()
public void setStartTime(DateTime v)
public DateTime getEndTime()
public void setEndTime(DateTime v)
public java.lang.String getValueString()
public void setValueString(java.lang.String v)
public static ExtensionDescription getDefaultDescription(boolean repeatable)
public static ExtensionDescription getDefaultDescription()
protected void validate() throws java.lang.IllegalStateException
AbstractExtension
validate
in class AbstractExtension
java.lang.IllegalStateException
- if any problems are found with the
attributesprotected void putAttributes(AttributeGenerator generator)
AbstractExtension
AbstractExtension.generate(XmlWriter,ExtensionProfile)
. Default implementation
does nothing, though generally this is discouraged unless there really are
no attributes.
putAttributes
in class AbstractExtension
generator
- attribute generatorprotected void consumeAttributes(AttributeHelper helper) throws ParseException
AbstractExtension
AttributeHelper.consumeContent(boolean)
to consume the element's text
content. Called from AbstractExtension.getHandler(com.google.gdata.data.ExtensionProfile, java.lang.String, java.lang.String, org.xml.sax.Attributes)
. Default implementation does
nothing, though generally this is discouraged unless there really are no
attributes.
consumeAttributes
in class AbstractExtension
helper
- attribute helper
ParseException
- any parsing exception
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |