|
boolean
|
addExtension(Extension ext, Class<? extends Extension> extClass)
Internal helper method.
|
|
void
|
addExtension(Extension ext)
Adds an extension object.
|
|
void
|
addRepeatingExtension(Extension ext)
Adds a repeating extension object.
|
|
void
|
addRepeatingExtension(Extension ext, Class<? extends Extension> extClass)
Internal helper method.
|
|
void
|
checkRequiredExtensions(ExtensionManifest profManifest)
Checks whether all required extensions are present.
|
|
static
<T extends Extension>
T
|
createExtensionInstance(Class<T> extClass)
Creates an instance of the given extension class.
|
|
void
|
declareExtensions(ExtensionProfile extProfile)
Declares the set of expected Extension types for an ExtensionPoint within
the target extension profile.
|
|
void
|
generate(XmlWriter w, ExtensionProfile p, XmlNamespace namespace, String localName, List<XmlWriter.Attribute> attrs, AttributeGenerator generator)
Generates the XML into the XML writer.
|
|
XmlBlob
|
generateCumulativeXmlBlob(ExtensionProfile extProfile)
Generates an XML blob containing all recognized and unrecognized
extensions.
|
|
void
|
generateExtensions(XmlWriter w, ExtensionProfile extProfile)
Generates XML corresponding to extended properties.
|
|
void
|
generateStartElement(XmlWriter w, XmlNamespace namespace, String elementName, Collection<XmlWriter.Attribute> additionalAttrs, Collection<XmlNamespace> additionalNs)
|
|
<T extends Extension>
T
|
getExtension(Class<T> extensionClass)
Retrieves a non-repeating extension or null if not present.
|
|
ExtensionDescription
|
getExtensionDescription(ExtensionProfile extProfile, Class<? extends ExtensionPoint> extPoint, String namespaceUri, String localName)
Returns the extension description for the namespace URI and local name for
the XML element based on the extension point in the extension profile.
|
|
XmlParser.ElementHandler
|
getExtensionHandler(ExtensionProfile extProfile, Class<? extends ExtensionPoint> extPoint, String namespaceUri, String localName, Attributes attrs)
XML parser callback for extended properties.
|
|
Collection<Extension>
|
getExtensions()
Returns an unmodifiable collection of non-repeating extensions in this
ExtensionPoint.
|
|
XmlParser.ElementHandler
|
getHandler(ExtensionProfile p, String namespace, String localName, Attributes attrs)
|
|
ExtensionManifest
|
getManifest(ExtensionProfile extProfile, Class<? extends ExtensionPoint> extendedClass)
Retrieves the manifest for the specified class.
|
|
<T extends Extension>
List<T>
|
getRepeatingExtension(Class<T> extensionClass)
Retrieves a repeating extension list (an empty list if not present).
|
|
Collection<List<Extension>>
|
getRepeatingExtensions()
Returns an unmodifiable collection of lists of repeating extensions in this
ExtensionPoint.
|
|
XmlBlob
|
getXmlBlob()
Retrieves the XML blob containing arbitrary (unrecognized) extensions.
|
|
final
<T extends Extension>
boolean
|
hasExtension(Class<T> extensionClass)
Returns whether the non-repeating extension is present.
|
|
final
<T extends Extension>
boolean
|
hasRepeatingExtension(Class<T> extensionClass)
Returns whether the repeating extension is present.
|
|
void
|
initializeArbitraryXml(ExtensionProfile profile, Class<? extends ExtensionPoint> extPoint, XmlParser.ElementHandler handler)
Initializes parser handler's XML blob state.
|
|
void
|
parseCumulativeXmlBlob(XmlBlob blob, ExtensionProfile extProfile, Class<? extends ExtensionPoint> extendedClass)
|
|
void
|
removeExtension(Extension ext)
Removes an extension object.
|
|
void
|
removeExtension(Class<? extends Extension> extensionClass)
Removes an extension object based on its class.
|
|
void
|
removeRepeatingExtension(Extension ext)
Removes a repeating extension object.
|
|
void
|
setExtension(Extension ext)
Sets an extension object.
|
|
<T extends Extension>
void
|
setRepeatingExtension(Class<T> extensionClass, List<T> value)
|
|
void
|
setXmlBlob(XmlBlob xmlBlob)
Sets the XML blob containing arbitrary (unrecognized) extensions.
|
|
void
|
visit(ExtensionVisitor ev, ExtensionPoint parent)
Visits the tree of extension data associated with this extension point
instance using the specified ExtensionVisitor, starting at this
extension point.
|
|
void
|
visitChild(ExtensionVisitor ev, Extension child)
Called to visit a child of this extension point.
|
|
void
|
visitChildren(ExtensionVisitor ev)
Called to visit all children of this extension point.
|