public class FOMElement extends org.apache.axiom.om.impl.llom.OMElementImpl implements Element, org.apache.axiom.om.OMElement, Constants
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODEACCEPT, AID, ALTERNATE, APP_MEDIA_TYPE, APP_NS, APP_NS_PRE_RFC, APP_PREFIX, ATITLE, ATOM_MEDIA_TYPE, ATOM_NS, AURI, AUTHOR, BASE, CAT_MEDIA_TYPE, CATEGORIES, CATEGORY, CLASS, COLLECTION, CONFIG_FACTORY, CONFIG_PARSER, CONFIG_PARSERFACTORY, CONFIG_STREAMWRITER, CONFIG_WRITER, CONFIG_WRITERFACTORY, CONFIG_XPATH, CONTENT, CONTRIBUTOR, CONTROL, CONTROL_NS, CONTROL_PREFIX, DEFAULT_FACTORY, DEFAULT_PARSER, DEFAULT_PARSERFACTORY, DEFAULT_STREAMWRITER, DEFAULT_WRITER, DEFAULT_WRITERFACTORY, DEFAULT_XPATH, DIV, DRAFT, EDITED, EMAIL, ENTRY, ENTRY_MEDIA_TYPE, FEED, FEED_MEDIA_TYPE, FIXED, GENERATOR, HREF, HREFLANG, HTML, ICON, ID, LABEL, LANG, LENGTH, LINK, LN_ACCEPT, LN_ALTERNATE, LN_ALTERNATE_MULTIPART_RELATED, LN_AUTHOR, LN_BASE, LN_CATEGORIES, LN_CATEGORY, LN_CLASS, LN_COLLECTION, LN_CONTENT, LN_CONTRIBUTOR, LN_CONTROL, LN_DIV, LN_DRAFT, LN_EDITED, LN_EMAIL, LN_ENTRY, LN_FEED, LN_FIXED, LN_GENERATOR, LN_HREF, LN_HREFLANG, LN_ICON, LN_ID, LN_LABEL, LN_LANG, LN_LENGTH, LN_LINK, LN_LOGO, LN_NAME, LN_PUBLISHED, LN_REL, LN_RIGHTS, LN_SCHEME, LN_SERVICE, LN_SOURCE, LN_SPACE, LN_SRC, LN_SUBTITLE, LN_SUMMARY, LN_TERM, LN_TITLE, LN_TYPE, LN_UPDATED, LN_URI, LN_VERSION, LN_WORKSPACE, LOGO, MULTIPART_RELATED_TYPE, NAME, NAMED_PARSER, NAMED_WRITER, NO, PRE_RFC_ACCEPT, PRE_RFC_CATEGORIES, PRE_RFC_COLLECTION, PRE_RFC_CONTROL, PRE_RFC_DRAFT, PRE_RFC_EDITED, PRE_RFC_SERVICE, PRE_RFC_WORKSPACE, PREFIX, PREFIXED_TITLE, PUBLISHED, REL, RIGHTS, SCHEME, SERVICE, SOURCE, SPACE, SRC, STREAM_WRITER, SUBTITLE, SUMMARY, TERM, TEXT, TITLE, TYPE, UPDATED, URI, VERSION, WORKSPACE, XHTML, XHTML_NS, XML, XML_MEDIA_TYPE, XML_NS, YESARRAY_ITEM_LOCALNAME, ARRAY_ITEM_NS_PREFIX, ARRAY_ITEM_NSURI, ARRAY_ITEM_QNAME, DATA_HANDLER, DEFAULT_CHAR_SET_ENCODING, DEFAULT_DEFAULT_NAMESPACE, DEFAULT_XML_VERSION, IS_BINARY, IS_DATA_HANDLERS_AWARE, PULL_TYPE_BUILDER, PUSH_TYPE_BUILDER, XMLNS_NS_PREFIX, XMLNS_NS_URI, XMLNS_PREFIX, XMLNS_URI| Constructor and Description |
|---|
FOMElement(javax.xml.namespace.QName qname) |
| Modifier and Type | Method and Description |
|---|---|
<T extends Base> |
addComment(java.lang.String value)
Add an XML comment to this Base
|
java.lang.Object |
clone()
Clone this Base
|
<T extends Base> |
complete()
Ensure that the underlying streams are fully parsed.
|
<T extends Element> |
declareNS(java.lang.String uri,
java.lang.String prefix)
Declare a namespace
|
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. |
WriterOptions |
getDefaultWriterOptions()
Get the default WriterOptions for this object
|
<T extends Element> |
getDocument()
Returns the document to which this element belongs
|
<T extends Element> |
getElements()
Return a listing of this elements child elements
|
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
|
<T extends Element> |
getFirstChild()
Get the first child element
|
<T extends 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 |
boolean |
getMustPreserveWhitespace()
Return true if insignificant whitespace must be preserved
|
java.util.Map<java.lang.String,java.lang.String> |
getNamespaces()
Return a map listing the xml namespaces declared for this element
|
<T extends Element> |
getNextSibling()
Get the element following this one
|
<T extends Element> |
getNextSibling(javax.xml.namespace.QName qname)
Get the first following sibling with the specified QName
|
<T extends Base> |
getParentElement()
Return this Element's parent element or document
|
<T extends Element> |
getPreviousSibling()
Get the element preceding this one
|
<T extends Element> |
getPreviousSibling(javax.xml.namespace.QName qname)
Get the first previous sibling with the specified QName
|
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
|
java.util.Iterator<Element> |
iterator()
Iterate over all child elements
|
<T extends Element> |
removeAttribute(javax.xml.namespace.QName qname)
Remove the named Attribute
|
<T extends Element> |
removeAttribute(java.lang.String name)
Remove the named attribute
|
<T extends Element> |
setAttributeValue(javax.xml.namespace.QName qname,
java.lang.String value)
Sets the value of the named attribute
|
<T extends Element> |
setAttributeValue(java.lang.String name,
java.lang.String value)
Sets the value of the named attribute
|
<T extends Element> |
setBaseUri(IRI base)
Sets the value of this element's
xml:base attribute. |
<T extends Element> |
setBaseUri(java.lang.String base)
Sets the value of this element's
xml:base attribute. |
<T extends Element> |
setLanguage(java.lang.String language)
Sets the value of this elements
xml:lang attribute. |
<T extends Element> |
setMustPreserveWhitespace(boolean preserve)
Set to true to preserve insignificant whitespace
|
<T extends Element> |
setParentElement(Element parent)
Set this Element's parent element
|
<T extends Element> |
setText(javax.activation.DataHandler handler)
Set the Text value of this element using the data handler
|
void |
setText(java.lang.String text)
Set the Text value of this element
|
java.lang.String |
toFormattedString() |
void |
writeTo(java.io.OutputStream out)
Serializes the model component out to the specified stream
|
void |
writeTo(java.io.OutputStream out,
WriterOptions options)
Serializes the model component out to the specified stream
|
void |
writeTo(java.lang.String writer,
java.io.OutputStream out)
Serializes the model component out to the specified stream using the given Abdera writer
|
void |
writeTo(java.lang.String writer,
java.io.OutputStream out,
WriterOptions options)
Serializes the model component out to the specified stream using the
given abdera writer
|
void |
writeTo(java.lang.String writer,
java.io.Writer out)
Serializes the model component out to the specified java.io.Writer using the
given Abdera writer
|
void |
writeTo(java.lang.String writer,
java.io.Writer out,
WriterOptions options)
Serializes the model component out to the specified java.io.Writer using the
given abdera writer
|
void |
writeTo(java.io.Writer writer)
Serializes the model component out to the specified writer
|
void |
writeTo(Writer writer,
java.io.OutputStream out)
Serializes the model component out to the specified stream using the given Abdera writer
|
void |
writeTo(Writer writer,
java.io.OutputStream out,
WriterOptions options)
Serializes the model component out to the specified stream using the
given abdera writer
|
void |
writeTo(Writer writer,
java.io.Writer out)
Serializes the model component out to the specified java.io.Writer using the
given Abdera writer
|
void |
writeTo(java.io.Writer out,
WriterOptions options)
Serializes the model component out to the specified java.io.Writer
|
void |
writeTo(Writer writer,
java.io.Writer out,
WriterOptions options)
Serializes the model component out to the specified java.io.Writer using the
given abdera writer
|
addAttribute, addAttribute, addChild, build, buildNext, buildWithAttachments, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, detach, discard, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getBuilder, getChildElements, getChildren, getChildrenWithName, getDefaultNamespace, getFirstChildWithName, getFirstElement, getFirstOMChild, getLineNumber, getLocalName, getNamespace, getNextOMSibling, getQName, getTextAsQName, getTrimmedText, getType, getXMLStreamReader, getXMLStreamReaderWithoutCaching, internalSerialize, internalSerializeAndConsume, isComplete, removeAttribute, resolveQName, setBuilder, setFirstChild, setLineNumber, setLocalName, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, toString, toStringWithConsumegetOMFactory, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNextOMSibling, setParent, setPreviousOMSibling, setTypeequals, getClass, hashCode, notify, notifyAll, wait, wait, waitaddAttribute, addAttribute, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getBuilder, getChildElements, getDefaultNamespace, getFirstElement, getLineNumber, getLocalName, getNamespace, getQName, getTextAsQName, getXMLStreamReader, getXMLStreamReaderWithoutCaching, removeAttribute, resolveQName, setBuilder, setFirstChild, setLineNumber, setLocalName, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, toString, toStringWithConsumebuild, buildWithAttachments, detach, discard, getNextOMSibling, getOMFactory, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsumepublic <T extends Base> T getParentElement()
ElementgetParentElement in interface Elementpublic <T extends Element> T setParentElement(Element parent)
ElementsetParentElement in interface Elementparent - The parent elementpublic <T extends Element> T getPreviousSibling()
ElementgetPreviousSibling in interface Elementpublic <T extends Element> T getNextSibling()
ElementgetNextSibling in interface Elementpublic <T extends Element> T getFirstChild()
ElementgetFirstChild in interface Elementpublic <T extends Element> T getPreviousSibling(javax.xml.namespace.QName qname)
ElementgetPreviousSibling in interface Elementqname - The XML QName of the sibling to findpublic <T extends Element> T getNextSibling(javax.xml.namespace.QName qname)
ElementgetNextSibling in interface Elementqname - The XML QName of the sibling to findpublic <T extends Element> T getFirstChild(javax.xml.namespace.QName qname)
ElementgetFirstChild in interface Elementqname - The XML QName of the sibling to findpublic Lang getLanguageTag()
ElementgetLanguageTag in interface Elementpublic java.lang.String getLanguage()
Elementxml:lang attribute or
null if xml:lang is undefined.getLanguage in interface Elementpublic <T extends Element> T setLanguage(java.lang.String language)
Elementxml:lang attribute.setLanguage in interface Elementlanguage - the value of the xml:lang elementpublic IRI getBaseUri()
Elementxml:base attribute or
null if xml:base is undefined.getBaseUri in interface Elementpublic IRI getResolvedBaseUri()
ElementgetResolvedBaseUri in interface Elementpublic <T extends Element> T setBaseUri(IRI base)
Elementxml:base attribute.setBaseUri in interface Elementbase - The IRI base valuepublic <T extends Element> T setBaseUri(java.lang.String base)
Elementxml:base attribute.setBaseUri in interface Elementbase - The Base IRIpublic java.lang.String getAttributeValue(javax.xml.namespace.QName qname)
ElementgetAttributeValue in interface ElementgetAttributeValue in interface org.apache.axiom.om.OMElementgetAttributeValue in class org.apache.axiom.om.impl.llom.OMElementImplqname - The XML QName of the attributepublic <T extends Element> T setAttributeValue(javax.xml.namespace.QName qname, java.lang.String value)
ElementsetAttributeValue in interface Elementqname - The XML QName of the attributevalue - The value of the attributepublic void writeTo(java.io.OutputStream out,
WriterOptions options)
throws java.io.IOException
Basepublic void writeTo(java.io.Writer out,
WriterOptions options)
throws java.io.IOException
Basepublic void writeTo(Writer writer, java.io.OutputStream out) throws java.io.IOException
Basepublic void writeTo(Writer writer, java.io.Writer out) throws java.io.IOException
Basepublic void writeTo(Writer writer, java.io.OutputStream out, WriterOptions options) throws java.io.IOException
Basepublic void writeTo(Writer writer, java.io.Writer out, WriterOptions options) throws java.io.IOException
Basepublic void writeTo(java.io.OutputStream out)
throws java.io.IOException
Basepublic void writeTo(java.io.Writer writer)
throws java.io.IOException
Basepublic <T extends Element> Document<T> getDocument()
ElementgetDocument in interface Elementpublic java.lang.String getAttributeValue(java.lang.String name)
ElementgetAttributeValue in interface Elementname - The name of the attributepublic <T extends Element> T setAttributeValue(java.lang.String name, java.lang.String value)
ElementsetAttributeValue in interface Elementname - The name of the attributevalue - The value of the attributepublic void setText(java.lang.String text)
Elementpublic java.lang.String getText()
Elementpublic java.util.List<javax.xml.namespace.QName> getAttributes()
ElementgetAttributes in interface Elementpublic java.util.List<javax.xml.namespace.QName> getExtensionAttributes()
ElementgetExtensionAttributes in interface Elementpublic <T extends Element> T removeAttribute(javax.xml.namespace.QName qname)
ElementremoveAttribute in interface Elementqname - The XML QName of the attribute to removepublic <T extends Element> T removeAttribute(java.lang.String name)
ElementremoveAttribute in interface Elementname - The name of the attribute to removepublic java.lang.Object clone()
Basepublic Factory getFactory()
BasegetFactory in interface Basepublic <T extends Base> T addComment(java.lang.String value)
BaseaddComment in interface Basevalue - The text value of the commentpublic java.util.Locale getLocale()
Elementxml:lang attributepublic <T extends Element> T declareNS(java.lang.String uri, java.lang.String prefix)
Elementpublic java.util.Map<java.lang.String,java.lang.String> getNamespaces()
ElementgetNamespaces in interface Elementpublic <T extends Element> java.util.List<T> getElements()
ElementgetElements in interface Elementpublic boolean getMustPreserveWhitespace()
ElementgetMustPreserveWhitespace in interface Elementpublic <T extends Element> T setMustPreserveWhitespace(boolean preserve)
ElementsetMustPreserveWhitespace in interface Elementpublic <T extends Element> T setText(javax.activation.DataHandler handler)
Elementpublic WriterOptions getDefaultWriterOptions()
BasegetDefaultWriterOptions in interface Basepublic <T extends Base> T complete()
public java.util.Iterator<Element> iterator()
iterator in interface java.lang.Iterable<Element>public void writeTo(java.lang.String writer,
java.io.OutputStream out)
throws java.io.IOException
Basepublic void writeTo(java.lang.String writer,
java.io.Writer out)
throws java.io.IOException
Basepublic void writeTo(java.lang.String writer,
java.io.OutputStream out,
WriterOptions options)
throws java.io.IOException
Basepublic void writeTo(java.lang.String writer,
java.io.Writer out,
WriterOptions options)
throws java.io.IOException
Basepublic java.lang.String toFormattedString()
Copyright © 2010 - 2020 Adobe. All Rights Reserved