public class ExtendedProperty extends ExtensionPoint
| Modifier and Type | Class and Description |
|---|---|
static class |
ExtendedProperty.Realm
Limits on where the extended property applies.
|
ExtensionPoint.CumulativeBlobHandler, ExtensionPoint.ExtensionHandlerAbstractExtension.AttributesHandler| Modifier and Type | Field and Description |
|---|---|
protected String |
name
Property name expressed as an URI (required).
|
protected String |
realm
Limits on where the extended property applies.
|
protected String |
val
Property value (required).
|
xmlBloblocalName, namespace| Constructor and Description |
|---|
ExtendedProperty() |
| 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.
|
XmlParser.ElementHandler |
getHandler(ExtensionProfile extProfile,
String namespace,
String localName,
Attributes attrs)
The default implementation uses the
AbstractExtension.AttributesHandler to handle
parsing the extension. |
String |
getName() |
String |
getRealm() |
String |
getValue() |
boolean |
hasRealm() |
boolean |
hasValue() |
protected void |
initializeArbitraryXml(ExtensionProfile profile,
Class<? extends ExtensionPoint> extPoint,
XmlParser.ElementHandler handler)
Overrides arbitrary XML initialization - ExtendedProperty needs
mixed content as well.
|
void |
setName(String n) |
void |
setRealm(String r) |
void |
setValue(String v) |
String |
toString()
Convert to String for debugging
|
addExtension, addExtension, addRepeatingExtension, addRepeatingExtension, checkRequiredExtensions, createExtensionInstance, declareExtensions, generate, generateCumulativeXmlBlob, generateExtensions, generateStartElement, getExtension, getExtensionDescription, getExtensionHandler, getExtensions, getManifest, getRepeatingExtension, getRepeatingExtensions, getXmlBlob, hasExtension, hasRepeatingExtension, parseCumulativeXmlBlob, removeExtension, removeExtension, removeRepeatingExtension, setExtension, setXmlBlob, visit, visitChild, visitChildrenconsumeAttributes, disableStrictValidation, enableStrictValidation, eq, generateAttributes, getExtensionLocalName, getExtensionNamespace, isImmutable, isStrictValidation, putAttributes, sameClassAs, setImmutable, throwExceptionForMissingAttribute, throwExceptionIfImmutable, validateprotected String name
eg: http://schemas.google.com/g/2005#exif.focalLength
protected String val
protected String realm
public String getName()
public void setName(String n)
public String getValue()
public void setValue(String v)
public boolean hasValue()
public String getRealm()
public void setRealm(String r)
public boolean hasRealm()
public String toString()
public static ExtensionDescription getDefaultDescription()
public void generate(XmlWriter w, ExtensionProfile extProfile) throws IOException
Extensiongenerate in interface Extensiongenerate in class AbstractExtensionw - XML writerextProfile - extension profileIOExceptionpublic XmlParser.ElementHandler getHandler(ExtensionProfile extProfile, String namespace, String localName, Attributes attrs)
AbstractExtensionAbstractExtension.AttributesHandler to handle
parsing the extension.getHandler in interface ExtensiongetHandler in class ExtensionPointextProfile - extension profilenamespace - extension namespacelocalName - tag name, without the namespace prefixattrs - tag attributesprotected void initializeArbitraryXml(ExtensionProfile profile, Class<? extends ExtensionPoint> extPoint, XmlParser.ElementHandler handler)
initializeArbitraryXml in class ExtensionPointCopyright © 2012. All Rights Reserved.