public abstract class ExtensibleElementWrapper extends ElementWrapper implements ExtensibleElement
Constructor and Description |
---|
ExtensibleElementWrapper(Factory factory,
javax.xml.namespace.QName qname) |
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
|
boolean |
getMustPreserveWhitespace()
Return true if insignificant whitespace must be preserved
|
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
|
<T extends Element> |
setMustPreserveWhitespace(boolean preserve)
Set to true to preserve insignificant whitespace
|
addComment, clone, complete, declareNS, discard, equals, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDefaultWriterOptions, getDocument, getElements, getExtensionAttributes, getFactory, getFirstChild, getFirstChild, getInternal, getLanguage, getLanguageTag, getLocale, getNamespaces, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, hashCode, iterator, removeAttribute, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setParentElement, setText, setText, toString, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo
declareNS, discard, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDocument, getElements, getExtensionAttributes, getFirstChild, getFirstChild, getLanguage, getLanguageTag, getLocale, getNamespaces, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, removeAttribute, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setParentElement, setText, setText
public ExtensibleElementWrapper(Factory factory, javax.xml.namespace.QName qname)
public <T extends ExtensibleElement> T addExtension(Element extension)
ExtensibleElement
addExtension
in interface ExtensibleElement
extension
- An extension element to addpublic <T extends Element> T addExtension(javax.xml.namespace.QName qname)
ExtensibleElement
addExtension
in interface ExtensibleElement
qname
- An extension element to createpublic <T extends Element> T addExtension(java.lang.String namespace, java.lang.String localPart, java.lang.String prefix)
ExtensibleElement
addExtension
in interface ExtensibleElement
namespace
- An XML namespacelocalPart
- A localnameprefix
- A XML namespace prefixpublic Element addSimpleExtension(javax.xml.namespace.QName qname, java.lang.String value)
ExtensibleElement
addSimpleExtension
in interface ExtensibleElement
qname
- An XML QNamevalue
- The simple text value of the elementpublic Element addSimpleExtension(java.lang.String namespace, java.lang.String localPart, java.lang.String prefix, java.lang.String value)
ExtensibleElement
addSimpleExtension
in interface ExtensibleElement
namespace
- An XML namespacelocalPart
- A local nameprefix
- A namespace prefixvalue
- The simple text valuepublic <T extends Element> T getExtension(javax.xml.namespace.QName qname)
ExtensibleElement
getExtension
in interface ExtensibleElement
qname
- An XML QNamepublic <T extends Element> T getExtension(java.lang.Class<T> _class)
ExtensibleElement
getExtension
in interface ExtensibleElement
_class
- The implementation class of the extensionpublic java.util.List<Element> getExtensions()
ExtensibleElement
getExtensions
in interface ExtensibleElement
public java.util.List<Element> getExtensions(java.lang.String uri)
ExtensibleElement
getExtensions
in interface ExtensibleElement
uri
- A namespace URIpublic <T extends Element> java.util.List<T> getExtensions(javax.xml.namespace.QName qname)
ExtensibleElement
getExtensions
in interface ExtensibleElement
qname
- An XML QNamepublic java.lang.String getSimpleExtension(javax.xml.namespace.QName qname)
ExtensibleElement
getSimpleExtension
in interface ExtensibleElement
qname
- An XML QNamepublic java.lang.String getSimpleExtension(java.lang.String namespace, java.lang.String localPart, java.lang.String prefix)
ExtensibleElement
getSimpleExtension
in interface ExtensibleElement
namespace
- An XML namespacelocalPart
- A localnameprefix
- A namespace prefixpublic boolean getMustPreserveWhitespace()
Element
getMustPreserveWhitespace
in interface Element
getMustPreserveWhitespace
in class ElementWrapper
public <T extends Element> T setMustPreserveWhitespace(boolean preserve)
Element
setMustPreserveWhitespace
in interface Element
setMustPreserveWhitespace
in class ElementWrapper
public <T extends ExtensibleElement> T addExtension(Element extension, Element before)
ExtensibleElement
addExtension
in interface ExtensibleElement
public <T extends Element> T addExtension(javax.xml.namespace.QName qname, javax.xml.namespace.QName before)
ExtensibleElement
addExtension
in interface ExtensibleElement
qname
- An extension element to createCopyright © 2010 - 2020 Adobe. All Rights Reserved