Package org.apache.abdera.model
Interface Element
- All Known Subinterfaces:
Categories,Category,Collection,Content,Control,DateTime,Div,Entry,ExtensibleElement,Feed,Generator,IRIElement,Link,Person,Service,Source,Text,Workspace
- All Known Implementing Classes:
DateTimeWrapper,ElementWrapper,ExtensibleElementWrapper,MediaAdult,MediaCategory,MediaContent,MediaCopyright,MediaCredit,MediaDescription,MediaGroup,MediaHash,MediaKeywords,MediaPlayer,MediaRating,MediaRestriction,MediaText,MediaThumbnail,MediaTitle,PersonWrapper
Deprecated.
This API is deprecated as Apache Abdera is a retired project since 2017.
Root interface for all elements in the Feed Object Model
-
Method Summary
Modifier and TypeMethodDescription<T extends Element>
TDeprecated.Declare a namespacevoiddiscard()Deprecated.Removes this element from its current documentDeprecated.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.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)<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.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 element<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 dataHandler) Deprecated.Set the Text value of this element using the data handlerMethods 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 java.lang.Iterable
forEach, iterator, spliterator
-
Method Details
-
getParentElement
Deprecated.Return this Element's parent element or document- Returns:
- The parent
-
setParentElement
Deprecated.Set this Element's parent element- Parameters:
parent- The parent element
-
getPreviousSibling
Deprecated.Get the element preceding this one- Returns:
- The preceding sibling
-
getNextSibling
Deprecated.Get the element following this one- Returns:
- The following sibling
-
getFirstChild
Deprecated.Get the first child element- Returns:
- The first child
-
getPreviousSibling
Deprecated.Get the first previous sibling with the specified QName- Parameters:
qname- The XML QName of the sibling to find- Returns:
- The matching element
-
getNextSibling
Deprecated.Get the first following sibling with the specified QName- Parameters:
qname- The XML QName of the sibling to find- Returns:
- The matching element
-
getFirstChild
Deprecated.Get the first child element with the given QName- Parameters:
qname- The XML QName of the sibling to find- Returns:
- The matching element
-
getQName
QName getQName()Deprecated.Return the XML QName of this element- Returns:
- The QName of the element
-
getLanguage
String getLanguage()Deprecated.Returns the value of this elementsxml:langattribute or null ifxml:langis undefined.- Returns:
- The xml:lang value
-
getLanguageTag
Lang getLanguageTag()Deprecated.Returns the value of the xml:lang attribute as a Lang object -
getLocale
Locale getLocale()Deprecated.Returns a Locale object created from thexml:langattribute- Returns:
- A Locale appropriate for the Language (xml:lang)
-
setLanguage
Deprecated.Sets the value of this elementsxml:langattribute.- Parameters:
language- the value of the xml:lang element
-
getBaseUri
IRI getBaseUri()Deprecated.Returns the value of this element'sxml:baseattribute or null ifxml:baseis undefined.- Returns:
- The Base URI
- Throws:
IRISyntaxException- if the Base URI is malformed
-
getResolvedBaseUri
IRI getResolvedBaseUri()Deprecated.Returns the current in-scope, fully qualified Base URI for this element.- Throws:
IRISyntaxException- if the Base URI is malformed
-
setBaseUri
Deprecated.Sets the value of this element'sxml:baseattribute.- Parameters:
base- The IRI base value
-
setBaseUri
Deprecated.Sets the value of this element'sxml:baseattribute.- Parameters:
base- The Base IRI- Throws:
IRISyntaxException- if the base URI is malformed
-
getDocument
Deprecated.Returns the document to which this element belongs- Returns:
- The Document to which this element belongs
-
getAttributeValue
Deprecated.Returns the value of the named attribute- Parameters:
name- The name of the attribute- Returns:
- The value of the attribute
-
getAttributeValue
Deprecated.Returns the value of the named attribute- Parameters:
qname- The XML QName of the attribute- Returns:
- The value of the attribute
-
getAttributes
Deprecated.Returns a listing of all attributes on this element- Returns:
- The listing of attributes for this element
-
getExtensionAttributes
Deprecated.Returns a listing of extension attributes on this element (extension attributes are attributes whose namespace URI is different than the elements)- Returns:
- The listing non-Atom attributes
-
removeAttribute
Deprecated.Remove the named Attribute- Parameters:
qname- The XML QName of the attribute to remove
-
removeAttribute
Deprecated.Remove the named attribute- Parameters:
name- The name of the attribute to remove
-
setAttributeValue
Deprecated.Sets the value of the named attribute- Parameters:
name- The name of the attributevalue- The value of the attribute
-
setAttributeValue
Deprecated.Sets the value of the named attribute- Parameters:
qname- The XML QName of the attributevalue- The value of the attribute
-
discard
void discard()Deprecated.Removes this element from its current document -
getText
String getText()Deprecated.Returns the Text value of this element- Returns:
- The text value
-
setText
Deprecated.Set the Text value of this element- Parameters:
text- The text value
-
setText
Deprecated.Set the Text value of this element using the data handler -
declareNS
Deprecated.Declare a namespace -
getNamespaces
Deprecated.Return a map listing the xml namespaces declared for this element -
getElements
Deprecated.Return a listing of this elements child elements -
getMustPreserveWhitespace
boolean getMustPreserveWhitespace()Deprecated.Return true if insignificant whitespace must be preserved -
setMustPreserveWhitespace
Deprecated.Set to true to preserve insignificant whitespace
-