|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ExtensibleElement
An abstract element that can be extended with namespaced child elements
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 |
|
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 |
Methods inherited from interface org.apache.abdera.model.Element |
---|
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 |
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 |
Method Detail |
---|
List<Element> getExtensions()
List<Element> getExtensions(String uri)
uri
- A namespace URI
<T extends Element> List<T> getExtensions(QName qname)
qname
- An XML QName
<T extends Element> T getExtension(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(QName qname)
qname
- An extension element to create
<T extends Element> T addExtension(QName qname, QName before)
qname
- An extension element to create
<T extends Element> T addExtension(String namespace, String localPart, String prefix)
namespace
- An XML namespacelocalPart
- A localnameprefix
- A XML namespace prefix
Element addSimpleExtension(QName qname, String value)
qname
- An XML QNamevalue
- The simple text value of the element
Element addSimpleExtension(String namespace, String localPart, String prefix, String value)
namespace
- An XML namespacelocalPart
- A local nameprefix
- A namespace prefixvalue
- The simple text value
String getSimpleExtension(QName qname)
qname
- An XML QName
String getSimpleExtension(String namespace, String localPart, String prefix)
namespace
- An XML namespacelocalPart
- A localnameprefix
- A namespace prefix
<T extends Element> T getExtension(Class<T> _class)
_class
- The implementation class of the extension
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |