|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.abdera.model.ElementWrapper org.apache.abdera.model.ExtensibleElementWrapper
public abstract class ExtensibleElementWrapper
ElementWrapper implementation that implements the ExtensibleElement interface. This should be used to create static extension elements that support extensions
Constructor Summary | |
---|---|
protected |
ExtensibleElementWrapper(Element internal)
|
|
ExtensibleElementWrapper(Factory factory,
QName qname)
|
Method Summary | ||
---|---|---|
|
addExtension(Element extension)
Adds an individual extension element |
|
|
addExtension(Element extension,
Element before)
Adds an individual extension element before the specified element |
|
|
addExtension(QName qname)
Adds an individual extension element |
|
|
addExtension(QName qname,
QName before)
Adds an individual extension element |
|
|
addExtension(String namespace,
String localPart,
String prefix)
Adds an individual extension element |
|
Element |
addSimpleExtension(QName qname,
String value)
Adds a simple extension (text content only) |
|
Element |
addSimpleExtension(String namespace,
String localPart,
String prefix,
String value)
Adds a simple extension (text content only) |
|
|
getExtension(Class<T> _class)
Find an extension by Class rather than QName |
|
|
getExtension(QName qname)
Returns the first extension element with the XML qualified name |
|
List<Element> |
getExtensions()
Returns the complete set of extension elements |
|
|
getExtensions(QName qname)
Returns the complete set of extension elements using the specified XML qualified name |
|
List<Element> |
getExtensions(String uri)
Returns the complete set of extension elements using the specified XML Namespace URI |
|
protected ExtensibleElement |
getExtInternal()
|
|
boolean |
getMustPreserveWhitespace()
Return true if insignificant whitespace must be preserved |
|
String |
getSimpleExtension(QName qname)
Gets the value of a simple extension |
|
String |
getSimpleExtension(String namespace,
String localPart,
String prefix)
Gets the value of a simple extension |
|
|
setMustPreserveWhitespace(boolean preserve)
Set to true to preserve insignificant whitespace |
Methods inherited from class org.apache.abdera.model.ElementWrapper |
---|
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 |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.abdera.model.Element |
---|
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 |
Methods inherited from interface org.apache.abdera.model.Base |
---|
addComment, clone, complete, getDefaultWriterOptions, getFactory, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Constructor Detail |
---|
protected ExtensibleElementWrapper(Element internal)
public ExtensibleElementWrapper(Factory factory, QName qname)
Method Detail |
---|
protected ExtensibleElement getExtInternal()
public <T extends ExtensibleElement> T addExtension(Element extension)
ExtensibleElement
addExtension
in interface ExtensibleElement
extension
- An extension element to addpublic <T extends Element> T addExtension(QName qname)
ExtensibleElement
addExtension
in interface ExtensibleElement
qname
- An extension element to create
public <T extends Element> T addExtension(String namespace, String localPart, String prefix)
ExtensibleElement
addExtension
in interface ExtensibleElement
namespace
- An XML namespacelocalPart
- A localnameprefix
- A XML namespace prefix
public Element addSimpleExtension(QName qname, String value)
ExtensibleElement
addSimpleExtension
in interface ExtensibleElement
qname
- An XML QNamevalue
- The simple text value of the element
public Element addSimpleExtension(String namespace, String localPart, String prefix, String value)
ExtensibleElement
addSimpleExtension
in interface ExtensibleElement
namespace
- An XML namespacelocalPart
- A local nameprefix
- A namespace prefixvalue
- The simple text value
public <T extends Element> T getExtension(QName qname)
ExtensibleElement
getExtension
in interface ExtensibleElement
qname
- An XML QName
public <T extends Element> T getExtension(Class<T> _class)
ExtensibleElement
getExtension
in interface ExtensibleElement
_class
- The implementation class of the extension
public List<Element> getExtensions()
ExtensibleElement
getExtensions
in interface ExtensibleElement
public List<Element> getExtensions(String uri)
ExtensibleElement
getExtensions
in interface ExtensibleElement
uri
- A namespace URI
public <T extends Element> List<T> getExtensions(QName qname)
ExtensibleElement
getExtensions
in interface ExtensibleElement
qname
- An XML QName
public String getSimpleExtension(QName qname)
ExtensibleElement
getSimpleExtension
in interface ExtensibleElement
qname
- An XML QName
public String getSimpleExtension(String namespace, String localPart, String prefix)
ExtensibleElement
getSimpleExtension
in interface ExtensibleElement
namespace
- An XML namespacelocalPart
- A localnameprefix
- A namespace prefix
public 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(QName qname, QName before)
ExtensibleElement
addExtension
in interface ExtensibleElement
qname
- An extension element to create
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |