Package org.apache.abdera.model
Class ExtensibleElementWrapper
- java.lang.Object
-
- org.apache.abdera.model.ElementWrapper
-
- org.apache.abdera.model.ExtensibleElementWrapper
-
- All Implemented Interfaces:
java.lang.Cloneable
,java.lang.Iterable<Element>
,Base
,Element
,ExtensibleElement
- Direct Known Subclasses:
MediaContent
,MediaGroup
,PersonWrapper
@Deprecated(since="2021-07-29") public abstract class ExtensibleElementWrapper extends ElementWrapper implements ExtensibleElement
Deprecated.This API is deprecated as Apache Abdera is a retired project since 2017.ElementWrapper implementation that implements the ExtensibleElement interface. This should be used to create static extension elements that support extensions
-
-
Constructor Summary
Constructors Constructor Description ExtensibleElementWrapper(Factory factory, javax.xml.namespace.QName qname)
Deprecated.
-
Method Summary
All Methods Instance Methods Concrete 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 nameboolean
getMustPreserveWhitespace()
Deprecated.Return true if insignificant whitespace must be preservedjava.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<T extends Element>
TsetMustPreserveWhitespace(boolean preserve)
Deprecated.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 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, getNamespaces, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, removeAttribute, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setParentElement, setText, setText
-
-
-
-
Constructor Detail
-
ExtensibleElementWrapper
public ExtensibleElementWrapper(Factory factory, javax.xml.namespace.QName qname)
Deprecated.
-
-
Method Detail
-
addExtension
public <T extends ExtensibleElement> T addExtension(Element extension)
Deprecated.Description copied from interface:ExtensibleElement
Adds an individual extension element- Specified by:
addExtension
in interfaceExtensibleElement
- Parameters:
extension
- An extension element to add
-
addExtension
public <T extends Element> T addExtension(javax.xml.namespace.QName qname)
Deprecated.Description copied from interface:ExtensibleElement
Adds an individual extension element- Specified by:
addExtension
in interfaceExtensibleElement
- Parameters:
qname
- An extension element to create- Returns:
- The newly created extension element
-
addExtension
public <T extends Element> T addExtension(java.lang.String namespace, java.lang.String localPart, java.lang.String prefix)
Deprecated.Description copied from interface:ExtensibleElement
Adds an individual extension element- Specified by:
addExtension
in interfaceExtensibleElement
- Parameters:
namespace
- An XML namespacelocalPart
- A localnameprefix
- A XML namespace prefix- Returns:
- The newly creatd extension element
-
addSimpleExtension
public Element addSimpleExtension(javax.xml.namespace.QName qname, java.lang.String value)
Deprecated.Description copied from interface:ExtensibleElement
Adds a simple extension (text content only)- Specified by:
addSimpleExtension
in interfaceExtensibleElement
- Parameters:
qname
- An XML QNamevalue
- The simple text value of the element- Returns:
- The newly created extension element
-
addSimpleExtension
public Element addSimpleExtension(java.lang.String namespace, java.lang.String localPart, java.lang.String prefix, java.lang.String value)
Deprecated.Description copied from interface:ExtensibleElement
Adds a simple extension (text content only)- Specified by:
addSimpleExtension
in interfaceExtensibleElement
- Parameters:
namespace
- An XML namespacelocalPart
- A local nameprefix
- A namespace prefixvalue
- The simple text value- Returns:
- The newly created extension element
-
getExtension
public <T extends Element> T getExtension(javax.xml.namespace.QName qname)
Deprecated.Description copied from interface:ExtensibleElement
Returns the first extension element with the XML qualified name- Specified by:
getExtension
in interfaceExtensibleElement
- Parameters:
qname
- An XML QName- Returns:
- An extension with the specified qname
-
getExtension
public <T extends Element> T getExtension(java.lang.Class<T> _class)
Deprecated.Description copied from interface:ExtensibleElement
Find an extension by Class rather than QName- Specified by:
getExtension
in interfaceExtensibleElement
- Parameters:
_class
- The implementation class of the extension- Returns:
- The extension element
-
getExtensions
public java.util.List<Element> getExtensions()
Deprecated.Description copied from interface:ExtensibleElement
Returns the complete set of extension elements- Specified by:
getExtensions
in interfaceExtensibleElement
- Returns:
- a listing of extensions
-
getExtensions
public java.util.List<Element> getExtensions(java.lang.String uri)
Deprecated.Description copied from interface:ExtensibleElement
Returns the complete set of extension elements using the specified XML Namespace URI- Specified by:
getExtensions
in interfaceExtensibleElement
- Parameters:
uri
- A namespace URI- Returns:
- A listing of extensions using the specified XML namespace
-
getExtensions
public <T extends Element> java.util.List<T> getExtensions(javax.xml.namespace.QName qname)
Deprecated.Description copied from interface:ExtensibleElement
Returns the complete set of extension elements using the specified XML qualified name- Specified by:
getExtensions
in interfaceExtensibleElement
- Parameters:
qname
- An XML QName- Returns:
- A listing of extensions with the specified QName
-
getSimpleExtension
public java.lang.String getSimpleExtension(javax.xml.namespace.QName qname)
Deprecated.Description copied from interface:ExtensibleElement
Gets the value of a simple extension- Specified by:
getSimpleExtension
in interfaceExtensibleElement
- Parameters:
qname
- An XML QName- Returns:
- The string value of the extension
-
getSimpleExtension
public java.lang.String getSimpleExtension(java.lang.String namespace, java.lang.String localPart, java.lang.String prefix)
Deprecated.Description copied from interface:ExtensibleElement
Gets the value of a simple extension- Specified by:
getSimpleExtension
in interfaceExtensibleElement
- Parameters:
namespace
- An XML namespacelocalPart
- A localnameprefix
- A namespace prefix- Returns:
- The string value of the extension
-
getMustPreserveWhitespace
public boolean getMustPreserveWhitespace()
Deprecated.Description copied from interface:Element
Return true if insignificant whitespace must be preserved- Specified by:
getMustPreserveWhitespace
in interfaceElement
- Overrides:
getMustPreserveWhitespace
in classElementWrapper
-
setMustPreserveWhitespace
public <T extends Element> T setMustPreserveWhitespace(boolean preserve)
Deprecated.Description copied from interface:Element
Set to true to preserve insignificant whitespace- Specified by:
setMustPreserveWhitespace
in interfaceElement
- Overrides:
setMustPreserveWhitespace
in classElementWrapper
-
addExtension
public <T extends ExtensibleElement> T addExtension(Element extension, Element before)
Deprecated.Description copied from interface:ExtensibleElement
Adds an individual extension element before the specified element- Specified by:
addExtension
in interfaceExtensibleElement
-
addExtension
public <T extends Element> T addExtension(javax.xml.namespace.QName qname, javax.xml.namespace.QName before)
Deprecated.Description copied from interface:ExtensibleElement
Adds an individual extension element- Specified by:
addExtension
in interfaceExtensibleElement
- Parameters:
qname
- An extension element to create- Returns:
- The newly created extension element
-
-