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(since="2021-07-29") public interface ExtensibleElement extends Element
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
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description <T extends Element>
TaddExtension(java.lang.String namespace, java.lang.String localPart, java.lang.String prefix)
Deprecated.Adds an individual extension element<T extends Element>
TaddExtension(javax.xml.namespace.QName qname)
Deprecated.Adds an individual extension element<T extends Element>
TaddExtension(javax.xml.namespace.QName qname, javax.xml.namespace.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 elementElement
addSimpleExtension(java.lang.String namespace, java.lang.String localPart, java.lang.String prefix, java.lang.String value)
Deprecated.Adds a simple extension (text content only)Element
addSimpleExtension(javax.xml.namespace.QName qname, java.lang.String value)
Deprecated.Adds a simple extension (text content only)<T extends Element>
TgetExtension(java.lang.Class<T> _class)
Deprecated.Find an extension by Class rather than QName<T extends Element>
TgetExtension(javax.xml.namespace.QName qname)
Deprecated.Returns the first extension element with the XML qualified namejava.util.List<Element>
getExtensions()
Deprecated.Returns the complete set of extension elementsjava.util.List<Element>
getExtensions(java.lang.String uri)
Deprecated.Returns the complete set of extension elements using the specified XML Namespace URI<T extends Element>
java.util.List<T>getExtensions(javax.xml.namespace.QName qname)
Deprecated.Returns the complete set of extension elements using the specified XML qualified namejava.lang.String
getSimpleExtension(java.lang.String namespace, java.lang.String localPart, java.lang.String prefix)
Deprecated.Gets the value of a simple extensionjava.lang.String
getSimpleExtension(javax.xml.namespace.QName qname)
Deprecated.Gets the value of a simple extension-
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 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
-
-
-
-
Method Detail
-
getExtensions
java.util.List<Element> getExtensions()
Deprecated.Returns the complete set of extension elements- Returns:
- a listing of extensions
-
getExtensions
java.util.List<Element> getExtensions(java.lang.String uri)
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
<T extends Element> java.util.List<T> getExtensions(javax.xml.namespace.QName qname)
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
<T extends Element> T getExtension(javax.xml.namespace.QName qname)
Deprecated.Returns the first extension element with the XML qualified name- Parameters:
qname
- An XML QName- Returns:
- An extension with the specified qname
-
addExtension
<T extends ExtensibleElement> T addExtension(Element extension)
Deprecated.Adds an individual extension element- Parameters:
extension
- An extension element to add
-
addExtension
<T extends ExtensibleElement> T addExtension(Element extension, Element before)
Deprecated.Adds an individual extension element before the specified element
-
addExtension
<T extends Element> T addExtension(javax.xml.namespace.QName qname)
Deprecated.Adds an individual extension element- Parameters:
qname
- An extension element to create- Returns:
- The newly created extension element
-
addExtension
<T extends Element> T addExtension(javax.xml.namespace.QName qname, javax.xml.namespace.QName before)
Deprecated.Adds an individual extension element- Parameters:
qname
- An extension element to create- Returns:
- The newly created extension element
-
addExtension
<T extends Element> T addExtension(java.lang.String namespace, java.lang.String localPart, java.lang.String prefix)
Deprecated.Adds an individual extension element- Parameters:
namespace
- An XML namespacelocalPart
- A localnameprefix
- A XML namespace prefix- Returns:
- The newly creatd extension element
-
addSimpleExtension
Element addSimpleExtension(javax.xml.namespace.QName qname, java.lang.String value)
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
Element addSimpleExtension(java.lang.String namespace, java.lang.String localPart, java.lang.String prefix, java.lang.String value)
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
java.lang.String getSimpleExtension(javax.xml.namespace.QName qname)
Deprecated.Gets the value of a simple extension- Parameters:
qname
- An XML QName- Returns:
- The string value of the extension
-
getSimpleExtension
java.lang.String getSimpleExtension(java.lang.String namespace, java.lang.String localPart, java.lang.String prefix)
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
<T extends Element> T getExtension(java.lang.Class<T> _class)
Deprecated.Find an extension by Class rather than QName- Parameters:
_class
- The implementation class of the extension- Returns:
- The extension element
-
-