|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Element
Root interface for all elements in the Feed Object Model
Method Summary | ||
---|---|---|
|
declareNS(String uri,
String prefix)
Declare a namespace |
|
void |
discard()
Removes this element from its current document |
|
List<QName> |
getAttributes()
Returns a listing of all attributes on this element |
|
String |
getAttributeValue(QName qname)
Returns the value of the named attribute |
|
String |
getAttributeValue(String name)
Returns the value of the named attribute |
|
IRI |
getBaseUri()
Returns the value of this element's xml:base attribute or null if xml:base is
undefined. |
|
|
getDocument()
Returns the document to which this element belongs |
|
|
getElements()
Return a listing of this elements child elements |
|
List<QName> |
getExtensionAttributes()
Returns a listing of extension attributes on this element (extension attributes are attributes whose namespace URI is different than the elements) |
|
|
getFirstChild()
Get the first child element |
|
|
getFirstChild(QName qname)
Get the first child element with the given QName |
|
String |
getLanguage()
Returns the value of this elements xml:lang attribute or null if xml:lang is undefined. |
|
Lang |
getLanguageTag()
Returns the value of the xml:lang attribute as a Lang object |
|
Locale |
getLocale()
Returns a Locale object created from the xml:lang attribute |
|
boolean |
getMustPreserveWhitespace()
Return true if insignificant whitespace must be preserved |
|
Map<String,String> |
getNamespaces()
Return a map listing the xml namespaces declared for this element |
|
|
getNextSibling()
Get the element following this one |
|
|
getNextSibling(QName qname)
Get the first following sibling with the specified QName |
|
|
getParentElement()
Return this Element's parent element or document |
|
|
getPreviousSibling()
Get the element preceding this one |
|
|
getPreviousSibling(QName qname)
Get the first previous sibling with the specified QName |
|
QName |
getQName()
Return the XML QName of this element |
|
IRI |
getResolvedBaseUri()
Returns the current in-scope, fully qualified Base URI for this element. |
|
String |
getText()
Returns the Text value of this element |
|
|
removeAttribute(QName qname)
Remove the named Attribute |
|
|
removeAttribute(String name)
Remove the named attribute |
|
|
setAttributeValue(QName qname,
String value)
Sets the value of the named attribute |
|
|
setAttributeValue(String name,
String value)
Sets the value of the named attribute |
|
|
setBaseUri(IRI base)
Sets the value of this element's xml:base attribute. |
|
|
setBaseUri(String base)
Sets the value of this element's xml:base attribute. |
|
|
setLanguage(String language)
Sets the value of this elements xml:lang attribute. |
|
|
setMustPreserveWhitespace(boolean preserve)
Set to true to preserve insignificant whitespace |
|
|
setParentElement(Element parent)
Set this Element's parent element |
|
|
setText(javax.activation.DataHandler dataHandler)
Set the Text value of this element using the data handler |
|
void |
setText(String text)
Set the Text value of this element |
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 java.lang.Iterable |
---|
iterator |
Method Detail |
---|
<T extends Base> T getParentElement()
<T extends Element> T setParentElement(Element parent)
parent
- The parent element<T extends Element> T getPreviousSibling()
<T extends Element> T getNextSibling()
<T extends Element> T getFirstChild()
<T extends Element> T getPreviousSibling(QName qname)
qname
- The XML QName of the sibling to find
<T extends Element> T getNextSibling(QName qname)
qname
- The XML QName of the sibling to find
<T extends Element> T getFirstChild(QName qname)
qname
- The XML QName of the sibling to find
QName getQName()
String getLanguage()
xml:lang
attribute or null if xml:lang
is undefined.
Lang getLanguageTag()
Locale getLocale()
xml:lang
attribute
<T extends Element> T setLanguage(String language)
xml:lang
attribute.
language
- the value of the xml:lang elementIRI getBaseUri()
xml:base
attribute or null if xml:base
is
undefined.
IRISyntaxException
- if the Base URI is malformedIRI getResolvedBaseUri()
IRISyntaxException
- if the Base URI is malformed<T extends Element> T setBaseUri(IRI base)
xml:base
attribute.
base
- The IRI base value<T extends Element> T setBaseUri(String base)
xml:base
attribute.
base
- The Base IRI
IRISyntaxException
- if the base URI is malformed<T extends Element> Document<T> getDocument()
String getAttributeValue(String name)
name
- The name of the attribute
String getAttributeValue(QName qname)
qname
- The XML QName of the attribute
List<QName> getAttributes()
List<QName> getExtensionAttributes()
<T extends Element> T removeAttribute(QName qname)
qname
- The XML QName of the attribute to remove<T extends Element> T removeAttribute(String name)
name
- The name of the attribute to remove<T extends Element> T setAttributeValue(String name, String value)
name
- The name of the attributevalue
- The value of the attribute<T extends Element> T setAttributeValue(QName qname, String value)
qname
- The XML QName of the attributevalue
- The value of the attributevoid discard()
String getText()
void setText(String text)
text
- The text value<T extends Element> T setText(javax.activation.DataHandler dataHandler)
<T extends Element> T declareNS(String uri, String prefix)
Map<String,String> getNamespaces()
<T extends Element> List<T> getElements()
boolean getMustPreserveWhitespace()
<T extends Element> T setMustPreserveWhitespace(boolean preserve)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |