public class Where extends ExtensionPoint implements Extension
Modifier and Type | Class and Description |
---|---|
static class |
Where.Rel
Relation type.
|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandler
AbstractExtension.AttributesHandler
Modifier and Type | Field and Description |
---|---|
protected EntryLink<?> |
entryLink
Nested person or venue (Contact) entry.
|
protected java.lang.String |
label
User-readable label that identifies this location in case multiple
locations may be present.
|
protected java.lang.String |
rel
Describes the meaning of this location.
|
protected java.lang.String |
valueString
Text description of the place.
|
xmlBlob
localName, namespace
Constructor and Description |
---|
Where()
Constructs an empty Where instance.
|
Where(java.lang.String rel,
java.lang.String label,
java.lang.String valueString)
Constructs a new Where instance using the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
void |
generate(XmlWriter w,
ExtensionProfile extProfile)
Generates an XML representation for the extension.
|
static ExtensionDescription |
getDefaultDescription()
Returns the suggested extension description.
|
EntryLink<?> |
getEntryLink() |
XmlParser.ElementHandler |
getHandler(ExtensionProfile extProfile,
java.lang.String namespace,
java.lang.String localName,
org.xml.sax.Attributes attrs)
The default implementation uses the
AbstractExtension.AttributesHandler to handle
parsing the extension. |
java.lang.String |
getLabel() |
java.lang.String |
getRel() |
java.lang.String |
getValueString() |
void |
setEntryLink(EntryLink<?> v) |
void |
setLabel(java.lang.String v) |
void |
setRel(java.lang.String v) |
void |
setValueString(java.lang.String v) |
protected void |
visitChildren(ExtensionVisitor ev)
Called to visit all children of this extension point.
|
addExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, declareExtensions, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, initializeArbitraryXml, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChild
consumeAttributes, disableStrictValidation, enableStrictValidation, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validate
protected java.lang.String rel
protected java.lang.String label
protected java.lang.String valueString
protected EntryLink<?> entryLink
public Where()
public Where(java.lang.String rel, java.lang.String label, java.lang.String valueString)
public java.lang.String getRel()
public void setRel(java.lang.String v)
public java.lang.String getLabel()
public void setLabel(java.lang.String v)
public java.lang.String getValueString()
public void setValueString(java.lang.String v)
public EntryLink<?> getEntryLink()
public void setEntryLink(EntryLink<?> v)
public static ExtensionDescription getDefaultDescription()
protected void visitChildren(ExtensionVisitor ev) throws ExtensionVisitor.StoppedException
ExtensionPoint
visitChildren
in class ExtensionPoint
ev
- the extension visitor.ExtensionVisitor.StoppedException
public void generate(XmlWriter w, ExtensionProfile extProfile) throws java.io.IOException
Extension
generate
in interface Extension
generate
in class AbstractExtension
w
- XML writerextProfile
- extension profilejava.io.IOException
public XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, java.lang.String namespace, java.lang.String localName, org.xml.sax.Attributes attrs)
AbstractExtension
AbstractExtension.AttributesHandler
to handle
parsing the extension.getHandler
in interface Extension
getHandler
in class ExtensionPoint
extProfile
- extension profilenamespace
- extension namespacelocalName
- tag name, without the namespace prefixattrs
- tag attributes