public class When extends ExtensionPoint implements Extension
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
AbstractExtension.AttributesHandler
Modifier and Type | Field and Description |
---|---|
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.
|
xmlBlob
localName, namespace
Constructor and Description |
---|
When() |
Modifier and Type | Method and Description |
---|---|
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.
|
addExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, declareExtensions, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getHandler, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChild, visitChildren
disableStrictValidation, enableStrictValidation, eq, generate, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
generate, getHandler
protected java.lang.String rel
protected DateTime startTime
protected DateTime endTime
protected java.lang.String valueString
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 helperParseException
- any parsing exception