Package org.apache.abdera.model
Interface ExtensibleElement
- All Known Subinterfaces:
Categories,Category,Collection,Control,Div,Entry,Feed,Link,Person,Service,Source,Workspace
- All Known Implementing Classes:
ExtensibleElementWrapper,MediaContent,MediaGroup,PersonWrapper
Deprecated.
This API is deprecated as Apache Abdera is a retired project since 2017.
An abstract element that can be extended with namespaced child elements
-
Method Summary
Modifier and TypeMethodDescription<T extends Element>
TaddExtension(String namespace, String localPart, String prefix) Deprecated.Adds an individual extension element<T extends Element>
TaddExtension(QName qname) Deprecated.Adds an individual extension element<T extends Element>
TaddExtension(QName qname, QName before) Deprecated.Adds an individual extension element<T extends ExtensibleElement>
TaddExtension(Element extension) Deprecated.Adds an individual extension element<T extends ExtensibleElement>
TaddExtension(Element extension, Element before) Deprecated.Adds an individual extension element before the specified elementaddSimpleExtension(String namespace, String localPart, String prefix, String value) Deprecated.Adds a simple extension (text content only)addSimpleExtension(QName qname, String value) Deprecated.Adds a simple extension (text content only)<T extends Element>
TgetExtension(Class<T> _class) Deprecated.Find an extension by Class rather than QName<T extends Element>
TgetExtension(QName qname) Deprecated.Returns the first extension element with the XML qualified nameDeprecated.Returns the complete set of extension elementsgetExtensions(String uri) Deprecated.Returns the complete set of extension elements using the specified XML Namespace URIgetExtensions(QName qname) Deprecated.Returns the complete set of extension elements using the specified XML qualified namegetSimpleExtension(String namespace, String localPart, String prefix) Deprecated.Gets the value of a simple extensiongetSimpleExtension(QName qname) Deprecated.Gets the value of a simple extensionMethods inherited from interface org.apache.abdera.model.Base
addComment, clone, complete, getDefaultWriterOptions, getFactory, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeToMethods 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, setTextMethods inherited from interface java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getExtensions
Deprecated.Returns the complete set of extension elements- Returns:
- a listing of extensions
-
getExtensions
Deprecated.Returns the complete set of extension elements using the specified XML Namespace URI- Parameters:
uri- A namespace URI- Returns:
- A listing of extensions using the specified XML namespace
-
getExtensions
Deprecated.Returns the complete set of extension elements using the specified XML qualified name- Parameters:
qname- An XML QName- Returns:
- A listing of extensions with the specified QName
-
getExtension
Deprecated.Returns the first extension element with the XML qualified name- Parameters:
qname- An XML QName- Returns:
- An extension with the specified qname
-
addExtension
Deprecated.Adds an individual extension element- Parameters:
extension- An extension element to add
-
addExtension
Deprecated.Adds an individual extension element before the specified element -
addExtension
Deprecated.Adds an individual extension element- Parameters:
qname- An extension element to create- Returns:
- The newly created extension element
-
addExtension
Deprecated.Adds an individual extension element- Parameters:
qname- An extension element to create- Returns:
- The newly created extension element
-
addExtension
Deprecated.Adds an individual extension element- Parameters:
namespace- An XML namespacelocalPart- A localnameprefix- A XML namespace prefix- Returns:
- The newly creatd extension element
-
addSimpleExtension
Deprecated.Adds a simple extension (text content only)- Parameters:
qname- An XML QNamevalue- The simple text value of the element- Returns:
- The newly created extension element
-
addSimpleExtension
Deprecated.Adds a simple extension (text content only)- Parameters:
namespace- An XML namespacelocalPart- A local nameprefix- A namespace prefixvalue- The simple text value- Returns:
- The newly created extension element
-
getSimpleExtension
Deprecated.Gets the value of a simple extension- Parameters:
qname- An XML QName- Returns:
- The string value of the extension
-
getSimpleExtension
Deprecated.Gets the value of a simple extension- Parameters:
namespace- An XML namespacelocalPart- A localnameprefix- A namespace prefix- Returns:
- The string value of the extension
-
getExtension
Deprecated.Find an extension by Class rather than QName- Parameters:
_class- The implementation class of the extension- Returns:
- The extension element
-