|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.abdera.model.ElementWrapper
public abstract class ElementWrapper
Constructor Summary | |
---|---|
protected |
ElementWrapper(Element internal)
|
protected |
ElementWrapper(Factory factory,
javax.xml.namespace.QName qname)
|
Method Summary | ||
---|---|---|
void |
addComment(java.lang.String value)
Add an XML comment to this Base |
|
java.lang.Object |
clone()
Clone this Base |
|
void |
declareNS(java.lang.String uri,
java.lang.String prefix)
Declare a namespace |
|
void |
discard()
Removes this element from its current document |
|
boolean |
equals(java.lang.Object other)
|
|
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) |
|
Factory |
getFactory()
Get the Factory used to create this Base |
|
|
getFirstChild()
Get the first child element |
|
|
getFirstChild(javax.xml.namespace.QName qname)
Get the first child element with the given QName |
|
Element |
getInternal()
|
|
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 |
|
int |
hashCode()
|
|
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 |
|
java.lang.String |
toString()
|
|
void |
writeTo(java.io.OutputStream out)
Serializes the model component out to the specified stream |
|
void |
writeTo(java.io.Writer writer)
Serializes the model component out to the specified writer |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
protected ElementWrapper(Element internal)
protected ElementWrapper(Factory factory, javax.xml.namespace.QName qname)
Method Detail |
---|
public void addComment(java.lang.String value)
Base
addComment
in interface Base
value
- The text value of the commentpublic java.lang.Object clone()
Base
clone
in interface Base
clone
in class java.lang.Object
public void declareNS(java.lang.String uri, java.lang.String prefix)
Element
declareNS
in interface Element
public void discard()
Element
discard
in interface Element
public java.util.List<javax.xml.namespace.QName> getAttributes()
Element
getAttributes
in interface Element
public java.lang.String getAttributeValue(javax.xml.namespace.QName qname)
Element
getAttributeValue
in interface Element
qname
- The XML QName of the attribute
public java.lang.String getAttributeValue(java.lang.String name)
Element
getAttributeValue
in interface Element
name
- The name of the attribute
public IRI getBaseUri() throws IRISyntaxException
Element
xml:base
attribute or
null if xml:base
is undefined.
getBaseUri
in interface Element
IRISyntaxException
- if the Base URI is malformedpublic <T extends Element> Document<T> getDocument()
Element
getDocument
in interface Element
public java.util.List<javax.xml.namespace.QName> getExtensionAttributes()
Element
getExtensionAttributes
in interface Element
public Factory getFactory()
Base
getFactory
in interface Base
public <T extends Element> T getFirstChild()
Element
getFirstChild
in interface Element
public <T extends Element> T getFirstChild(javax.xml.namespace.QName qname)
Element
getFirstChild
in interface Element
qname
- The XML QName of the sibling to find
public java.lang.String getLanguage()
Element
xml:lang
attribute or
null if xml:lang
is undefined.
getLanguage
in interface Element
public Lang getLanguageTag() throws InvalidLangTagSyntax
Element
getLanguageTag
in interface Element
InvalidLangTagSyntax
public java.util.Locale getLocale()
Element
xml:lang
attribute
getLocale
in interface Element
public <T extends Element> T getNextSibling()
Element
getNextSibling
in interface Element
public <T extends Element> T getNextSibling(javax.xml.namespace.QName qname)
Element
getNextSibling
in interface Element
qname
- The XML QName of the sibling to find
public <T extends Base> T getParentElement()
Element
getParentElement
in interface Element
public <T extends Element> T getPreviousSibling()
Element
getPreviousSibling
in interface Element
public <T extends Element> T getPreviousSibling(javax.xml.namespace.QName qname)
Element
getPreviousSibling
in interface Element
qname
- The XML QName of the sibling to find
public javax.xml.namespace.QName getQName()
Element
getQName
in interface Element
public IRI getResolvedBaseUri() throws IRISyntaxException
Element
getResolvedBaseUri
in interface Element
IRISyntaxException
- if the Base URI is malformedpublic java.lang.String getText()
Element
getText
in interface Element
public void removeAttribute(javax.xml.namespace.QName qname)
Element
removeAttribute
in interface Element
qname
- The XML QName of the attribute to removepublic void setAttributeValue(javax.xml.namespace.QName qname, java.lang.String value)
Element
setAttributeValue
in interface Element
qname
- The XML QName of the attributevalue
- The value of the attributepublic void setAttributeValue(java.lang.String name, java.lang.String value)
Element
setAttributeValue
in interface Element
name
- The name of the attributevalue
- The value of the attributepublic void setBaseUri(IRI base)
Element
xml:base
attribute.
setBaseUri
in interface Element
base
- The IRI base valuepublic void setBaseUri(java.lang.String base) throws IRISyntaxException
Element
xml:base
attribute.
setBaseUri
in interface Element
base
- The Base IRI
IRISyntaxException
- if the base URI is malformedpublic void setLanguage(java.lang.String language)
Element
xml:lang
attribute.
setLanguage
in interface Element
language
- the value of the xml:lang elementpublic void setParentElement(Element parent)
Element
setParentElement
in interface Element
parent
- The parent elementpublic void setText(java.lang.String text)
Element
setText
in interface Element
text
- The text valuepublic void writeTo(java.io.OutputStream out) throws java.io.IOException
Base
writeTo
in interface Base
out
- The java.io.OutputStream to use when serializing the Base. The charset encoding specified for the document will be used
java.io.IOException
public void writeTo(java.io.Writer writer) throws java.io.IOException
Base
writeTo
in interface Base
writer
- The java.io.Writer to use when serializing the Base
java.io.IOException
public boolean equals(java.lang.Object other)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Element getInternal()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |