|
|||||||||
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 | ||
---|---|---|
void |
declareNS(java.lang.String uri,
java.lang.String prefix)
Declare a namespace |
|
void |
discard()
Removes this element from its current document |
|
java.util.List<javax.xml.namespace.QName> |
getAttributes()
Returns a listing of all attributes on this element |
|
java.lang.String |
getAttributeValue(javax.xml.namespace.QName qname)
Returns the value of the named attribute |
|
java.lang.String |
getAttributeValue(java.lang.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 |
|
java.util.List<javax.xml.namespace.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(javax.xml.namespace.QName qname)
Get the first child element with the given QName |
|
java.lang.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 |
|
java.util.Locale |
getLocale()
Returns a Locale object created from the xml:lang attribute |
|
|
getNextSibling()
Get the element following this one |
|
|
getNextSibling(javax.xml.namespace.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(javax.xml.namespace.QName qname)
Get the first previous sibling with the specified QName |
|
javax.xml.namespace.QName |
getQName()
Return the XML QName of this element |
|
IRI |
getResolvedBaseUri()
Returns the current in-scope, fully qualified Base URI for this element. |
|
java.lang.String |
getText()
Returns the Text value of this element |
|
void |
removeAttribute(javax.xml.namespace.QName qname)
Remove the named Attribute |
|
void |
setAttributeValue(javax.xml.namespace.QName qname,
java.lang.String value)
Sets the value of the named attribute |
|
void |
setAttributeValue(java.lang.String name,
java.lang.String value)
Sets the value of the named attribute |
|
void |
setBaseUri(IRI base)
Sets the value of this element's xml:base attribute. |
|
void |
setBaseUri(java.lang.String base)
Sets the value of this element's xml:base attribute. |
|
void |
setLanguage(java.lang.String language)
Sets the value of this elements xml:lang attribute. |
|
void |
setParentElement(Element parent)
Set this Element's parent element |
|
void |
setText(java.lang.String text)
Set the Text value of this element |
Methods inherited from interface org.apache.abdera.model.Base |
---|
addComment, clone, getFactory, writeTo, writeTo |
Method Detail |
---|
<T extends Base> T getParentElement()
void 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(javax.xml.namespace.QName qname)
qname
- The XML QName of the sibling to find
<T extends Element> T getNextSibling(javax.xml.namespace.QName qname)
qname
- The XML QName of the sibling to find
<T extends Element> T getFirstChild(javax.xml.namespace.QName qname)
qname
- The XML QName of the sibling to find
javax.xml.namespace.QName getQName()
java.lang.String getLanguage()
xml:lang
attribute or
null if xml:lang
is undefined.
Lang getLanguageTag() throws InvalidLangTagSyntax
InvalidLangTagSyntax
java.util.Locale getLocale()
xml:lang
attribute
void setLanguage(java.lang.String language)
xml:lang
attribute.
language
- the value of the xml:lang elementIRI getBaseUri() throws IRISyntaxException
xml:base
attribute or
null if xml:base
is undefined.
IRISyntaxException
- if the Base URI is malformedIRI getResolvedBaseUri() throws IRISyntaxException
IRISyntaxException
- if the Base URI is malformedvoid setBaseUri(IRI base)
xml:base
attribute.
base
- The IRI base valuevoid setBaseUri(java.lang.String base) throws IRISyntaxException
xml:base
attribute.
base
- The Base IRI
IRISyntaxException
- if the base URI is malformed<T extends Element> Document<T> getDocument()
java.lang.String getAttributeValue(java.lang.String name)
name
- The name of the attribute
java.lang.String getAttributeValue(javax.xml.namespace.QName qname)
qname
- The XML QName of the attribute
java.util.List<javax.xml.namespace.QName> getAttributes()
java.util.List<javax.xml.namespace.QName> getExtensionAttributes()
void removeAttribute(javax.xml.namespace.QName qname)
qname
- The XML QName of the attribute to removevoid setAttributeValue(java.lang.String name, java.lang.String value)
name
- The name of the attributevalue
- The value of the attributevoid setAttributeValue(javax.xml.namespace.QName qname, java.lang.String value)
qname
- The XML QName of the attributevalue
- The value of the attributevoid discard()
java.lang.String getText()
void setText(java.lang.String text)
text
- The text valuevoid declareNS(java.lang.String uri, java.lang.String prefix)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |