public interface ExtensibleElement extends Element
Modifier and Type | Method and Description |
---|---|
<T extends ExtensibleElement> |
addExtension(Element extension)
Adds an individual extension element
|
<T extends ExtensibleElement> |
addExtension(Element extension,
Element before)
Adds an individual extension element before the specified element
|
<T extends Element> |
addExtension(javax.xml.namespace.QName qname)
Adds an individual extension element
|
<T extends Element> |
addExtension(javax.xml.namespace.QName qname,
javax.xml.namespace.QName before)
Adds an individual extension element
|
<T extends Element> |
addExtension(java.lang.String namespace,
java.lang.String localPart,
java.lang.String prefix)
Adds an individual extension element
|
Element |
addSimpleExtension(javax.xml.namespace.QName qname,
java.lang.String value)
Adds a simple extension (text content only)
|
Element |
addSimpleExtension(java.lang.String namespace,
java.lang.String localPart,
java.lang.String prefix,
java.lang.String value)
Adds a simple extension (text content only)
|
<T extends Element> |
getExtension(java.lang.Class<T> _class)
Find an extension by Class rather than QName
|
<T extends Element> |
getExtension(javax.xml.namespace.QName qname)
Returns the first extension element with the XML qualified name
|
java.util.List<Element> |
getExtensions()
Returns the complete set of extension elements
|
<T extends Element> |
getExtensions(javax.xml.namespace.QName qname)
Returns the complete set of extension elements using the specified
XML qualified name
|
java.util.List<Element> |
getExtensions(java.lang.String uri)
Returns the complete set of extension elements using the specified
XML Namespace URI
|
java.lang.String |
getSimpleExtension(javax.xml.namespace.QName qname)
Gets the value of a simple extension
|
java.lang.String |
getSimpleExtension(java.lang.String namespace,
java.lang.String localPart,
java.lang.String prefix)
Gets the value of a simple extension
|
declareNS, discard, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDocument, getElements, getExtensionAttributes, getFirstChild, getFirstChild, getLanguage, getLanguageTag, getLocale, getMustPreserveWhitespace, getNamespaces, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, removeAttribute, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setMustPreserveWhitespace, setParentElement, setText, setText
java.util.List<Element> getExtensions()
java.util.List<Element> getExtensions(java.lang.String uri)
uri
- A namespace URI<T extends Element> java.util.List<T> getExtensions(javax.xml.namespace.QName qname)
qname
- An XML QName<T extends Element> T getExtension(javax.xml.namespace.QName qname)
qname
- An XML QName<T extends ExtensibleElement> T addExtension(Element extension)
extension
- An extension element to add<T extends ExtensibleElement> T addExtension(Element extension, Element before)
<T extends Element> T addExtension(javax.xml.namespace.QName qname)
qname
- An extension element to create<T extends Element> T addExtension(javax.xml.namespace.QName qname, javax.xml.namespace.QName before)
qname
- An extension element to create<T extends Element> T addExtension(java.lang.String namespace, java.lang.String localPart, java.lang.String prefix)
namespace
- An XML namespacelocalPart
- A localnameprefix
- A XML namespace prefixElement addSimpleExtension(javax.xml.namespace.QName qname, java.lang.String value)
qname
- An XML QNamevalue
- The simple text value of the elementElement addSimpleExtension(java.lang.String namespace, java.lang.String localPart, java.lang.String prefix, java.lang.String value)
namespace
- An XML namespacelocalPart
- A local nameprefix
- A namespace prefixvalue
- The simple text valuejava.lang.String getSimpleExtension(javax.xml.namespace.QName qname)
qname
- An XML QNamejava.lang.String getSimpleExtension(java.lang.String namespace, java.lang.String localPart, java.lang.String prefix)
namespace
- An XML namespacelocalPart
- A localnameprefix
- A namespace prefix<T extends Element> T getExtension(java.lang.Class<T> _class)
_class
- The implementation class of the extensionCopyright © 2010 - 2020 Adobe. All Rights Reserved