Package org.apache.abdera.model
Class ElementWrapper
java.lang.Object
org.apache.abdera.model.ElementWrapper
- Direct Known Subclasses:
DateTimeWrapper,ExtensibleElementWrapper,MediaAdult,MediaCategory,MediaCopyright,MediaCredit,MediaDescription,MediaHash,MediaKeywords,MediaPlayer,MediaRating,MediaRestriction,MediaText,MediaThumbnail,MediaTitle
@Deprecated(since="2021-07-29")
public abstract class ElementWrapper
extends Object
implements Element
Deprecated.
This API is deprecated as Apache Abdera is a retired project since 2017.
Base implementation used for static extensions.
-
Method Summary
Modifier and TypeMethodDescription<T extends Base>
TaddComment(String value) Deprecated.Add an XML comment to this Baseclone()Deprecated.Clone this Base<T extends Base>
Tcomplete()Deprecated.Ensure that the underlying streams are fully parsed.<T extends Element>
TDeprecated.Declare a namespacevoiddiscard()Deprecated.Removes this element from its current documentbooleanDeprecated.Deprecated.Returns a listing of all attributes on this elementgetAttributeValue(String name) Deprecated.Returns the value of the named attributegetAttributeValue(QName qname) Deprecated.Returns the value of the named attributeDeprecated.Returns the value of this element'sxml:baseattribute or null ifxml:baseis undefined.Deprecated.Get the default WriterOptions for this objectDeprecated.Returns the document to which this element belongsDeprecated.Return a listing of this elements child elementsDeprecated.Returns a listing of extension attributes on this element (extension attributes are attributes whose namespace URI is different than the elements)Deprecated.Get the Factory used to create this Base<T extends Element>
TDeprecated.Get the first child element<T extends Element>
TgetFirstChild(QName qname) Deprecated.Get the first child element with the given QNameDeprecated.Deprecated.Returns the value of this elementsxml:langattribute or null ifxml:langis undefined.Deprecated.Returns the value of the xml:lang attribute as a Lang objectDeprecated.Returns a Locale object created from thexml:langattributebooleanDeprecated.Return true if insignificant whitespace must be preservedDeprecated.Return a map listing the xml namespaces declared for this element<T extends Element>
TDeprecated.Get the element following this one<T extends Element>
TgetNextSibling(QName qname) Deprecated.Get the first following sibling with the specified QName<T extends Base>
TDeprecated.Return this Element's parent element or document<T extends Element>
TDeprecated.Get the element preceding this one<T extends Element>
TgetPreviousSibling(QName qname) Deprecated.Get the first previous sibling with the specified QNamegetQName()Deprecated.Return the XML QName of this elementDeprecated.Returns the current in-scope, fully qualified Base URI for this element.getText()Deprecated.Returns the Text value of this elementinthashCode()Deprecated.iterator()Deprecated.<T extends Element>
TremoveAttribute(String name) Deprecated.Remove the named attribute<T extends Element>
TremoveAttribute(QName qname) Deprecated.Remove the named Attribute<T extends Element>
TsetAttributeValue(String name, String value) Deprecated.Sets the value of the named attribute<T extends Element>
TsetAttributeValue(QName qname, String value) Deprecated.Sets the value of the named attribute<T extends Element>
TsetBaseUri(String base) Deprecated.Sets the value of this element'sxml:baseattribute.<T extends Element>
TsetBaseUri(IRI base) Deprecated.Sets the value of this element'sxml:baseattribute.<T extends Element>
TsetLanguage(String language) Deprecated.Sets the value of this elementsxml:langattribute.<T extends Element>
TsetMustPreserveWhitespace(boolean preserve) Deprecated.Set to true to preserve insignificant whitespace<T extends Element>
TsetParentElement(Element parent) Deprecated.Set this Element's parent elementvoidDeprecated.Set the Text value of this element<T extends Element>
TsetText(javax.activation.DataHandler handler) Deprecated.Set the Text value of this element using the data handlertoString()Deprecated.voidwriteTo(OutputStream out) Deprecated.Serializes the model component out to the specified streamvoidwriteTo(OutputStream out, WriterOptions options) Deprecated.Serializes the model component out to the specified streamvoidDeprecated.Serializes the model component out to the specified writervoidwriteTo(Writer out, WriterOptions options) Deprecated.Serializes the model component out to the specified java.io.WritervoidwriteTo(String writer, OutputStream out) Deprecated.Serializes the model component out to the specified stream using the given Abdera writervoidwriteTo(String writer, OutputStream out, WriterOptions options) Deprecated.Serializes the model component out to the specified stream using the given abdera writervoidDeprecated.Serializes the model component out to the specified java.io.Writer using the given Abdera writervoidwriteTo(String writer, Writer out, WriterOptions options) Deprecated.Serializes the model component out to the specified java.io.Writer using the given abdera writervoidwriteTo(Writer writer, OutputStream out) Deprecated.Serializes the model component out to the specified stream using the given Abdera writervoidwriteTo(Writer writer, OutputStream out, WriterOptions options) Deprecated.Serializes the model component out to the specified stream using the given abdera writervoidDeprecated.Serializes the model component out to the specified java.io.Writer using the given Abdera writervoidwriteTo(Writer writer, Writer out, WriterOptions options) Deprecated.Serializes the model component out to the specified java.io.Writer using the given abdera writerMethods inherited from interface java.lang.Iterable
forEach, spliterator
-
Method Details
-
addComment
Deprecated.Description copied from interface:BaseAdd an XML comment to this Base- Specified by:
addCommentin interfaceBase- Parameters:
value- The text value of the comment
-
clone
Deprecated.Description copied from interface:BaseClone this Base -
declareNS
Deprecated.Description copied from interface:ElementDeclare a namespace -
discard
public void discard()Deprecated.Description copied from interface:ElementRemoves this element from its current document -
getAttributes
Deprecated.Description copied from interface:ElementReturns a listing of all attributes on this element- Specified by:
getAttributesin interfaceElement- Returns:
- The listing of attributes for this element
-
getAttributeValue
Deprecated.Description copied from interface:ElementReturns the value of the named attribute- Specified by:
getAttributeValuein interfaceElement- Parameters:
qname- The XML QName of the attribute- Returns:
- The value of the attribute
-
getAttributeValue
Deprecated.Description copied from interface:ElementReturns the value of the named attribute- Specified by:
getAttributeValuein interfaceElement- Parameters:
name- The name of the attribute- Returns:
- The value of the attribute
-
getBaseUri
Deprecated.Description copied from interface:ElementReturns the value of this element'sxml:baseattribute or null ifxml:baseis undefined.- Specified by:
getBaseUriin interfaceElement- Returns:
- The Base URI
-
getDocument
Deprecated.Description copied from interface:ElementReturns the document to which this element belongs- Specified by:
getDocumentin interfaceElement- Returns:
- The Document to which this element belongs
-
getExtensionAttributes
Deprecated.Description copied from interface:ElementReturns a listing of extension attributes on this element (extension attributes are attributes whose namespace URI is different than the elements)- Specified by:
getExtensionAttributesin interfaceElement- Returns:
- The listing non-Atom attributes
-
getFactory
Deprecated.Description copied from interface:BaseGet the Factory used to create this Base- Specified by:
getFactoryin interfaceBase- Returns:
- The Factory used to create this object
-
getFirstChild
Deprecated.Description copied from interface:ElementGet the first child element- Specified by:
getFirstChildin interfaceElement- Returns:
- The first child
-
getFirstChild
Deprecated.Description copied from interface:ElementGet the first child element with the given QName- Specified by:
getFirstChildin interfaceElement- Parameters:
qname- The XML QName of the sibling to find- Returns:
- The matching element
-
getLanguage
Deprecated.Description copied from interface:ElementReturns the value of this elementsxml:langattribute or null ifxml:langis undefined.- Specified by:
getLanguagein interfaceElement- Returns:
- The xml:lang value
-
getLanguageTag
Deprecated.Description copied from interface:ElementReturns the value of the xml:lang attribute as a Lang object- Specified by:
getLanguageTagin interfaceElement
-
getLocale
Deprecated.Description copied from interface:ElementReturns a Locale object created from thexml:langattribute -
getNextSibling
Deprecated.Description copied from interface:ElementGet the element following this one- Specified by:
getNextSiblingin interfaceElement- Returns:
- The following sibling
-
getNextSibling
Deprecated.Description copied from interface:ElementGet the first following sibling with the specified QName- Specified by:
getNextSiblingin interfaceElement- Parameters:
qname- The XML QName of the sibling to find- Returns:
- The matching element
-
getParentElement
Deprecated.Description copied from interface:ElementReturn this Element's parent element or document- Specified by:
getParentElementin interfaceElement- Returns:
- The parent
-
getPreviousSibling
Deprecated.Description copied from interface:ElementGet the element preceding this one- Specified by:
getPreviousSiblingin interfaceElement- Returns:
- The preceding sibling
-
getPreviousSibling
Deprecated.Description copied from interface:ElementGet the first previous sibling with the specified QName- Specified by:
getPreviousSiblingin interfaceElement- Parameters:
qname- The XML QName of the sibling to find- Returns:
- The matching element
-
getQName
Deprecated.Description copied from interface:ElementReturn the XML QName of this element -
getResolvedBaseUri
Deprecated.Description copied from interface:ElementReturns the current in-scope, fully qualified Base URI for this element.- Specified by:
getResolvedBaseUriin interfaceElement
-
getText
Deprecated.Description copied from interface:ElementReturns the Text value of this element -
removeAttribute
Deprecated.Description copied from interface:ElementRemove the named Attribute- Specified by:
removeAttributein interfaceElement- Parameters:
qname- The XML QName of the attribute to remove
-
removeAttribute
Deprecated.Description copied from interface:ElementRemove the named attribute- Specified by:
removeAttributein interfaceElement- Parameters:
name- The name of the attribute to remove
-
setAttributeValue
Deprecated.Description copied from interface:ElementSets the value of the named attribute- Specified by:
setAttributeValuein interfaceElement- Parameters:
qname- The XML QName of the attributevalue- The value of the attribute
-
setAttributeValue
Deprecated.Description copied from interface:ElementSets the value of the named attribute- Specified by:
setAttributeValuein interfaceElement- Parameters:
name- The name of the attributevalue- The value of the attribute
-
setBaseUri
Deprecated.Description copied from interface:ElementSets the value of this element'sxml:baseattribute.- Specified by:
setBaseUriin interfaceElement- Parameters:
base- The IRI base value
-
setBaseUri
Deprecated.Description copied from interface:ElementSets the value of this element'sxml:baseattribute.- Specified by:
setBaseUriin interfaceElement- Parameters:
base- The Base IRI
-
setLanguage
Deprecated.Description copied from interface:ElementSets the value of this elementsxml:langattribute.- Specified by:
setLanguagein interfaceElement- Parameters:
language- the value of the xml:lang element
-
setParentElement
Deprecated.Description copied from interface:ElementSet this Element's parent element- Specified by:
setParentElementin interfaceElement- Parameters:
parent- The parent element
-
setText
Deprecated.Description copied from interface:ElementSet the Text value of this element -
setText
Deprecated.Description copied from interface:ElementSet the Text value of this element using the data handler -
writeTo
Deprecated.Description copied from interface:BaseSerializes the model component out to the specified stream- Specified by:
writeToin interfaceBase- Parameters:
out- The java.io.OutputStream to use when serializing the Base. The charset encoding specified for the document will be used- Throws:
IOException
-
writeTo
Deprecated.Description copied from interface:BaseSerializes the model component out to the specified writer- Specified by:
writeToin interfaceBase- Parameters:
writer- The java.io.Writer to use when serializing the Base- Throws:
IOException
-
equals
Deprecated. -
toString
Deprecated. -
hashCode
public int hashCode()Deprecated. -
getInternal
Deprecated. -
getElements
Deprecated.Description copied from interface:ElementReturn a listing of this elements child elements- Specified by:
getElementsin interfaceElement
-
getNamespaces
Deprecated.Description copied from interface:ElementReturn a map listing the xml namespaces declared for this element- Specified by:
getNamespacesin interfaceElement
-
getMustPreserveWhitespace
public boolean getMustPreserveWhitespace()Deprecated.Description copied from interface:ElementReturn true if insignificant whitespace must be preserved- Specified by:
getMustPreserveWhitespacein interfaceElement
-
setMustPreserveWhitespace
Deprecated.Description copied from interface:ElementSet to true to preserve insignificant whitespace- Specified by:
setMustPreserveWhitespacein interfaceElement
-
writeTo
Deprecated.Description copied from interface:BaseSerializes the model component out to the specified stream- Specified by:
writeToin interfaceBase- Parameters:
out- The target output streamoptions- The WriterOptions to use- Throws:
IOException
-
writeTo
Deprecated.Description copied from interface:BaseSerializes the model component out to the specified stream using the given abdera writer- Specified by:
writeToin interfaceBase- Parameters:
writer- The Abdera writer to useout- The target output streamoptions- The WriterOptions to use- Throws:
IOException
-
writeTo
Deprecated.Description copied from interface:BaseSerializes the model component out to the specified stream using the given Abdera writer- Specified by:
writeToin interfaceBase- Parameters:
writer- The Abdera writer to useout- The target output stream- Throws:
IOException
-
writeTo
Deprecated.Description copied from interface:BaseSerializes the model component out to the specified java.io.Writer using the given abdera writer- Specified by:
writeToin interfaceBase- Parameters:
writer- The Abdera writer to useout- The target output writeroptions- The WriterOptions to use- Throws:
IOException
-
writeTo
Deprecated.Description copied from interface:BaseSerializes the model component out to the specified java.io.Writer using the given Abdera writer- Specified by:
writeToin interfaceBase- Parameters:
writer- The Abdera writer to useout- The target output writer- Throws:
IOException
-
writeTo
Deprecated.Description copied from interface:BaseSerializes the model component out to the specified stream using the given abdera writer- Specified by:
writeToin interfaceBase- Parameters:
writer- The name of the Abdera writer to useout- The target output streamoptions- The WriterOptions to use- Throws:
IOException
-
writeTo
Deprecated.Description copied from interface:BaseSerializes the model component out to the specified stream using the given Abdera writer- Specified by:
writeToin interfaceBase- Parameters:
writer- The Abdera writer to useout- The target output stream- Throws:
IOException
-
writeTo
Deprecated.Description copied from interface:BaseSerializes the model component out to the specified java.io.Writer using the given abdera writer- Specified by:
writeToin interfaceBase- Parameters:
writer- The name of the Abdera writer to useout- The target output writeroptions- The WriterOptions to use- Throws:
IOException
-
writeTo
Deprecated.Description copied from interface:BaseSerializes the model component out to the specified java.io.Writer using the given Abdera writer- Specified by:
writeToin interfaceBase- Parameters:
writer- The Abdera writer to useout- The target output writer- Throws:
IOException
-
writeTo
Deprecated.Description copied from interface:BaseSerializes the model component out to the specified java.io.Writer- Specified by:
writeToin interfaceBase- Parameters:
out- The target output writeroptions- The WriterOptions to use- Throws:
IOException
-
getDefaultWriterOptions
Deprecated.Description copied from interface:BaseGet the default WriterOptions for this object- Specified by:
getDefaultWriterOptionsin interfaceBase
-
complete
Deprecated.Description copied from interface:BaseEnsure that the underlying streams are fully parsed. Calling complete on an Element does not necessarily mean that the underlying stream is fully consumed, only that that particular element has been completely parsed. -
iterator
Deprecated.
-