org.apache.abdera.model
Interface Element

All Superinterfaces:
Base, java.lang.Cloneable, java.io.Serializable
All Known Subinterfaces:
Category, Collection, Content, Control, DateTime, Div, Entry, ExtensibleElement, Feed, Generator, InReplyTo, IRI, ItemsPerPage, Link, Person, Service, Source, StartIndex, Text, Total, TotalResults, Workspace

public interface Element
extends Base, java.io.Serializable

Root interface for all elements in the Feed Object Model


Method Summary
 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
 java.net.URI getBaseUri()
          Returns the value of this element's xml:base attribute or null if xml:base is undefined.
<T extends Element>
Document<T>
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)
<T extends Element>
T
getFirstChild()
           
<T extends Element>
T
getFirstChild(javax.xml.namespace.QName qname)
           
 java.lang.String getLanguage()
          Returns the value of this elements xml:lang attribute or null if xml:lang is undefined.
<T extends Element>
T
getNextSibling()
           
<T extends Element>
T
getNextSibling(javax.xml.namespace.QName qname)
           
<T extends Base>
T
getParentElement()
           
<T extends Element>
T
getPreviousSibling()
           
<T extends Element>
T
getPreviousSibling(javax.xml.namespace.QName qname)
           
 javax.xml.namespace.QName getQName()
           
 java.net.URI getResolvedBaseUri()
          Returns the current in-scope, fully qualified Base URI for this element.
 java.lang.String getText()
           
 void removeAttribute(javax.xml.namespace.QName qname)
           
 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(java.lang.String base)
          Sets the value of this element's xml:base attribute.
 void setBaseUri(java.net.URI 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)
           
 void setText(java.lang.String text)
           
 
Methods inherited from interface org.apache.abdera.model.Base
clone, getFactory, writeTo, writeTo
 

Method Detail

getParentElement

<T extends Base> T getParentElement()

setParentElement

void setParentElement(Element parent)

getPreviousSibling

<T extends Element> T getPreviousSibling()

getNextSibling

<T extends Element> T getNextSibling()

getFirstChild

<T extends Element> T getFirstChild()

getPreviousSibling

<T extends Element> T getPreviousSibling(javax.xml.namespace.QName qname)

getNextSibling

<T extends Element> T getNextSibling(javax.xml.namespace.QName qname)

getFirstChild

<T extends Element> T getFirstChild(javax.xml.namespace.QName qname)

getQName

javax.xml.namespace.QName getQName()

getLanguage

java.lang.String getLanguage()
Returns the value of this elements xml:lang attribute or null if xml:lang is undefined.


setLanguage

void setLanguage(java.lang.String language)
Sets the value of this elements xml:lang attribute.


getBaseUri

java.net.URI getBaseUri()
                        throws java.net.URISyntaxException
Returns the value of this element's xml:base attribute or null if xml:base is undefined.

Throws:
java.net.URISyntaxException

getResolvedBaseUri

java.net.URI getResolvedBaseUri()
                                throws java.net.URISyntaxException
Returns the current in-scope, fully qualified Base URI for this element.

Throws:
java.net.URISyntaxException

setBaseUri

void setBaseUri(java.net.URI base)
Sets the value of this element's xml:base attribute.


setBaseUri

void setBaseUri(java.lang.String base)
                throws java.net.URISyntaxException
Sets the value of this element's xml:base attribute.

Throws:
java.net.URISyntaxException

getDocument

<T extends Element> Document<T> getDocument()
Returns the document to which this element belongs


getAttributeValue

java.lang.String getAttributeValue(java.lang.String name)
Returns the value of the named attribute


getAttributeValue

java.lang.String getAttributeValue(javax.xml.namespace.QName qname)
Returns the value of the named attribute


getAttributes

java.util.List<javax.xml.namespace.QName> getAttributes()
Returns a listing of all attributes on this element


getExtensionAttributes

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)


removeAttribute

void removeAttribute(javax.xml.namespace.QName qname)

setAttributeValue

void setAttributeValue(java.lang.String name,
                       java.lang.String value)
Sets the value of the named attribute


setAttributeValue

void setAttributeValue(javax.xml.namespace.QName qname,
                       java.lang.String value)
Sets the value of the named attribute


discard

void discard()
Removes this element from its current document


getText

java.lang.String getText()

setText

void setText(java.lang.String text)