|
||||||||||
| 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
Base implementation used for static extensions.
| Constructor Summary | |
|---|---|
protected |
ElementWrapper(Element internal)
|
protected |
ElementWrapper(Factory factory,
QName qname)
|
| Method Summary | ||
|---|---|---|
|
addComment(String value)
Add an XML comment to this Base |
|
Object |
clone()
Clone this Base |
|
|
complete()
Ensure that the underlying streams are fully parsed. |
|
|
declareNS(String uri,
String prefix)
Declare a namespace |
|
void |
discard()
Removes this element from its current document |
|
boolean |
equals(Object other)
|
|
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. |
|
WriterOptions |
getDefaultWriterOptions()
Get the default WriterOptions for this object |
|
|
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) |
|
Factory |
getFactory()
Get the Factory used to create this Base |
|
|
getFirstChild()
Get the first child element |
|
|
getFirstChild(QName qname)
Get the first child element with the given QName |
|
Element |
getInternal()
|
|
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 |
|
int |
hashCode()
|
|
Iterator<Element> |
iterator()
|
|
|
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 handler)
Set the Text value of this element using the data handler |
|
void |
setText(String text)
Set the Text value of this element |
|
String |
toString()
|
|
void |
writeTo(OutputStream out)
Serializes the model component out to the specified stream |
|
void |
writeTo(OutputStream out,
WriterOptions options)
Serializes the model component out to the specified stream |
|
void |
writeTo(String writer,
OutputStream out)
Serializes the model component out to the specified stream using the given Abdera writer |
|
void |
writeTo(String writer,
OutputStream out,
WriterOptions options)
Serializes the model component out to the specified stream using the given abdera writer |
|
void |
writeTo(String writer,
Writer out)
Serializes the model component out to the specified java.io.Writer using the given Abdera writer |
|
void |
writeTo(String writer,
Writer out,
WriterOptions options)
Serializes the model component out to the specified java.io.Writer using the given abdera writer |
|
void |
writeTo(Writer writer)
Serializes the model component out to the specified writer |
|
void |
writeTo(Writer writer,
OutputStream out)
Serializes the model component out to the specified stream using the given Abdera writer |
|
void |
writeTo(Writer writer,
OutputStream out,
WriterOptions options)
Serializes the model component out to the specified stream using the given abdera writer |
|
void |
writeTo(Writer writer,
Writer out)
Serializes the model component out to the specified java.io.Writer using the given Abdera writer |
|
void |
writeTo(Writer out,
WriterOptions options)
Serializes the model component out to the specified java.io.Writer |
|
void |
writeTo(Writer writer,
Writer out,
WriterOptions options)
Serializes the model component out to the specified java.io.Writer using the given abdera 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,
QName qname)
| Method Detail |
|---|
public <T extends Base> T addComment(String value)
Base
addComment in interface Basevalue - The text value of the commentpublic Object clone()
Base
clone in interface Baseclone in class Object
public <T extends Element> T declareNS(String uri,
String prefix)
Element
declareNS in interface Elementpublic void discard()
Element
discard in interface Elementpublic List<QName> getAttributes()
Element
getAttributes in interface Elementpublic String getAttributeValue(QName qname)
Element
getAttributeValue in interface Elementqname - The XML QName of the attribute
public String getAttributeValue(String name)
Element
getAttributeValue in interface Elementname - The name of the attribute
public IRI getBaseUri()
Elementxml:base attribute or null if xml:base is
undefined.
getBaseUri in interface Elementpublic <T extends Element> Document<T> getDocument()
Element
getDocument in interface Elementpublic List<QName> getExtensionAttributes()
Element
getExtensionAttributes in interface Elementpublic Factory getFactory()
Base
getFactory in interface Basepublic <T extends Element> T getFirstChild()
Element
getFirstChild in interface Elementpublic <T extends Element> T getFirstChild(QName qname)
Element
getFirstChild in interface Elementqname - The XML QName of the sibling to find
public String getLanguage()
Elementxml:lang attribute or null if xml:lang is undefined.
getLanguage in interface Elementpublic Lang getLanguageTag()
Element
getLanguageTag in interface Elementpublic Locale getLocale()
Elementxml:lang attribute
getLocale in interface Elementpublic <T extends Element> T getNextSibling()
Element
getNextSibling in interface Elementpublic <T extends Element> T getNextSibling(QName qname)
Element
getNextSibling in interface Elementqname - The XML QName of the sibling to find
public <T extends Base> T getParentElement()
Element
getParentElement in interface Elementpublic <T extends Element> T getPreviousSibling()
Element
getPreviousSibling in interface Elementpublic <T extends Element> T getPreviousSibling(QName qname)
Element
getPreviousSibling in interface Elementqname - The XML QName of the sibling to find
public QName getQName()
Element
getQName in interface Elementpublic IRI getResolvedBaseUri()
Element
getResolvedBaseUri in interface Elementpublic String getText()
Element
getText in interface Elementpublic <T extends Element> T removeAttribute(QName qname)
Element
removeAttribute in interface Elementqname - The XML QName of the attribute to removepublic <T extends Element> T removeAttribute(String name)
Element
removeAttribute in interface Elementname - The name of the attribute to remove
public <T extends Element> T setAttributeValue(QName qname,
String value)
Element
setAttributeValue in interface Elementqname - The XML QName of the attributevalue - The value of the attribute
public <T extends Element> T setAttributeValue(String name,
String value)
Element
setAttributeValue in interface Elementname - The name of the attributevalue - The value of the attributepublic <T extends Element> T setBaseUri(IRI base)
Elementxml:base attribute.
setBaseUri in interface Elementbase - The IRI base valuepublic <T extends Element> T setBaseUri(String base)
Elementxml:base attribute.
setBaseUri in interface Elementbase - The Base IRIpublic <T extends Element> T setLanguage(String language)
Elementxml:lang attribute.
setLanguage in interface Elementlanguage - the value of the xml:lang elementpublic <T extends Element> T setParentElement(Element parent)
Element
setParentElement in interface Elementparent - The parent elementpublic void setText(String text)
Element
setText in interface Elementtext - The text valuepublic <T extends Element> T setText(javax.activation.DataHandler handler)
Element
setText in interface Element
public void writeTo(OutputStream out)
throws IOException
Base
writeTo in interface Baseout - The java.io.OutputStream to use when serializing the Base. The charset encoding specified for the
document will be used
IOException
public void writeTo(Writer writer)
throws IOException
Base
writeTo in interface Basewriter - The java.io.Writer to use when serializing the Base
IOExceptionpublic boolean equals(Object other)
equals in class Objectpublic String toString()
toString in class Objectpublic int hashCode()
hashCode in class Objectpublic Element getInternal()
public <T extends Element> List<T> getElements()
Element
getElements in interface Elementpublic Map<String,String> getNamespaces()
Element
getNamespaces in interface Elementpublic boolean getMustPreserveWhitespace()
Element
getMustPreserveWhitespace in interface Elementpublic <T extends Element> T setMustPreserveWhitespace(boolean preserve)
Element
setMustPreserveWhitespace in interface Element
public void writeTo(OutputStream out,
WriterOptions options)
throws IOException
Base
writeTo in interface Baseout - The target output streamoptions - The WriterOptions to use
IOException
public void writeTo(Writer writer,
OutputStream out,
WriterOptions options)
throws IOException
Base
writeTo in interface Basewriter - The Abdera writer to useout - The target output streamoptions - The WriterOptions to use
IOException
public void writeTo(Writer writer,
OutputStream out)
throws IOException
Base
writeTo in interface Basewriter - The Abdera writer to useout - The target output stream
IOException
public void writeTo(Writer writer,
Writer out,
WriterOptions options)
throws IOException
Base
writeTo in interface Basewriter - The Abdera writer to useout - The target output writeroptions - The WriterOptions to use
IOException
public void writeTo(Writer writer,
Writer out)
throws IOException
Base
writeTo in interface Basewriter - The Abdera writer to useout - The target output writer
IOException
public void writeTo(String writer,
OutputStream out,
WriterOptions options)
throws IOException
Base
writeTo in interface Basewriter - The name of the Abdera writer to useout - The target output streamoptions - The WriterOptions to use
IOException
public void writeTo(String writer,
OutputStream out)
throws IOException
Base
writeTo in interface Basewriter - The Abdera writer to useout - The target output stream
IOException
public void writeTo(String writer,
Writer out,
WriterOptions options)
throws IOException
Base
writeTo in interface Basewriter - The name of the Abdera writer to useout - The target output writeroptions - The WriterOptions to use
IOException
public void writeTo(String writer,
Writer out)
throws IOException
Base
writeTo in interface Basewriter - The Abdera writer to useout - The target output writer
IOException
public void writeTo(Writer out,
WriterOptions options)
throws IOException
Base
writeTo in interface Baseout - The target output writeroptions - The WriterOptions to use
IOExceptionpublic WriterOptions getDefaultWriterOptions()
Base
getDefaultWriterOptions in interface Basepublic <T extends Base> T complete()
Base
complete in interface Basepublic Iterator<Element> iterator()
iterator in interface Iterable<Element>
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||