Package org.apache.abdera.parser.stax
Class FOMElement
- java.lang.Object
-
- org.apache.axiom.om.impl.llom.OMSerializableImpl
-
- org.apache.axiom.om.impl.llom.OMNodeImpl
-
- org.apache.axiom.om.impl.llom.OMElementImpl
-
- org.apache.abdera.parser.stax.FOMElement
-
- All Implemented Interfaces:
Cloneable,Iterable<org.apache.abdera.model.Element>,org.apache.abdera.model.Base,org.apache.abdera.model.Element,org.apache.abdera.util.Constants,org.apache.axiom.om.impl.llom.IChildNode,org.apache.axiom.om.impl.llom.IContainer,org.apache.axiom.om.impl.llom.IElement,org.apache.axiom.om.impl.llom.IParentNode,org.apache.axiom.om.impl.OMContainerEx,org.apache.axiom.om.impl.OMElementEx,org.apache.axiom.om.impl.OMNodeEx,org.apache.axiom.om.OMConstants,org.apache.axiom.om.OMContainer,org.apache.axiom.om.OMElement,org.apache.axiom.om.OMInformationItem,org.apache.axiom.om.OMNamedInformationItem,org.apache.axiom.om.OMNode,org.apache.axiom.om.OMSerializable
- Direct Known Subclasses:
FOMDateTime,FOMExtensibleElement,FOMGenerator,FOMIRI,FOMText
@Deprecated public class FOMElement extends org.apache.axiom.om.impl.llom.OMElementImpl implements org.apache.abdera.model.Element, org.apache.axiom.om.OMElement, org.apache.abdera.util.Constants
Deprecated.
-
-
Field Summary
-
Fields inherited from interface org.apache.abdera.util.Constants
ACCEPT, 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, YES
-
Fields inherited from interface org.apache.axiom.om.impl.llom.IParentNode
COMPLETE, DISCARDED, INCOMPLETE
-
Fields inherited from interface org.apache.axiom.om.OMConstants
ARRAY_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, XMLATTRTYPE_CDATA, XMLATTRTYPE_ENTITIES, XMLATTRTYPE_ENTITY, XMLATTRTYPE_ID, XMLATTRTYPE_IDREF, XMLATTRTYPE_IDREFS, XMLATTRTYPE_NMTOKEN, XMLATTRTYPE_NMTOKENS, XMLATTRTYPE_NOTATION, XMLNS_NS_PREFIX, XMLNS_NS_URI, XMLNS_PREFIX, XMLNS_URI
-
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description <T extends org.apache.abdera.model.Base>
TaddComment(String value)Deprecated.Objectclone()Deprecated.<T extends org.apache.abdera.model.Base>
Tcomplete()Deprecated.Ensure that the underlying streams are fully parsed.<T extends org.apache.abdera.model.Element>
TdeclareNS(String uri, String prefix)Deprecated.List<QName>getAttributes()Deprecated.StringgetAttributeValue(String name)Deprecated.StringgetAttributeValue(QName qname)Deprecated.org.apache.abdera.i18n.iri.IRIgetBaseUri()Deprecated.org.apache.abdera.writer.WriterOptionsgetDefaultWriterOptions()Deprecated.<T extends org.apache.abdera.model.Element>
org.apache.abdera.model.Document<T>getDocument()Deprecated.<T extends org.apache.abdera.model.Element>
List<T>getElements()Deprecated.List<QName>getExtensionAttributes()Deprecated.org.apache.abdera.factory.FactorygetFactory()Deprecated.<T extends org.apache.abdera.model.Element>
TgetFirstChild()Deprecated.<T extends org.apache.abdera.model.Element>
TgetFirstChild(QName qname)Deprecated.StringgetLanguage()Deprecated.org.apache.abdera.i18n.rfc4646.LanggetLanguageTag()Deprecated.LocalegetLocale()Deprecated.booleangetMustPreserveWhitespace()Deprecated.Map<String,String>getNamespaces()Deprecated.<T extends org.apache.abdera.model.Element>
TgetNextSibling()Deprecated.<T extends org.apache.abdera.model.Element>
TgetNextSibling(QName qname)Deprecated.<T extends org.apache.abdera.model.Base>
TgetParentElement()Deprecated.<T extends org.apache.abdera.model.Element>
TgetPreviousSibling()Deprecated.<T extends org.apache.abdera.model.Element>
TgetPreviousSibling(QName qname)Deprecated.org.apache.abdera.i18n.iri.IRIgetResolvedBaseUri()Deprecated.StringgetText()Deprecated.Iterator<org.apache.abdera.model.Element>iterator()Deprecated.Iterate over all child elements<T extends org.apache.abdera.model.Element>
TremoveAttribute(String name)Deprecated.<T extends org.apache.abdera.model.Element>
TremoveAttribute(QName qname)Deprecated.<T extends org.apache.abdera.model.Element>
TsetAttributeValue(String name, String value)Deprecated.<T extends org.apache.abdera.model.Element>
TsetAttributeValue(QName qname, String value)Deprecated.<T extends org.apache.abdera.model.Element>
TsetBaseUri(String base)Deprecated.<T extends org.apache.abdera.model.Element>
TsetBaseUri(org.apache.abdera.i18n.iri.IRI base)Deprecated.<T extends org.apache.abdera.model.Element>
TsetLanguage(String language)Deprecated.<T extends org.apache.abdera.model.Element>
TsetMustPreserveWhitespace(boolean preserve)Deprecated.<T extends org.apache.abdera.model.Element>
TsetParentElement(org.apache.abdera.model.Element parent)Deprecated.voidsetText(String text)Deprecated.<T extends org.apache.abdera.model.Element>
TsetText(DataHandler handler)Deprecated.StringtoFormattedString()Deprecated.voidwriteTo(OutputStream out)Deprecated.voidwriteTo(OutputStream out, org.apache.abdera.writer.WriterOptions options)Deprecated.voidwriteTo(Writer writer)Deprecated.voidwriteTo(Writer out, org.apache.abdera.writer.WriterOptions options)Deprecated.voidwriteTo(String writer, OutputStream out)Deprecated.voidwriteTo(String writer, OutputStream out, org.apache.abdera.writer.WriterOptions options)Deprecated.voidwriteTo(String writer, Writer out)Deprecated.voidwriteTo(String writer, Writer out, org.apache.abdera.writer.WriterOptions options)Deprecated.voidwriteTo(org.apache.abdera.writer.Writer writer, OutputStream out)Deprecated.voidwriteTo(org.apache.abdera.writer.Writer writer, OutputStream out, org.apache.abdera.writer.WriterOptions options)Deprecated.voidwriteTo(org.apache.abdera.writer.Writer writer, Writer out)Deprecated.voidwriteTo(org.apache.abdera.writer.Writer writer, Writer out, org.apache.abdera.writer.WriterOptions options)Deprecated.-
Methods inherited from class org.apache.axiom.om.impl.llom.OMElementImpl
addAttribute, addAttribute, addChild, addChild, addNamespaceDeclaration, build, buildWithAttachments, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, detach, discard, discarded, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getBuilder, getChildElements, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getDefaultNamespace, getDescendants, getFirstChildWithName, getFirstElement, getFirstOMChild, getFirstOMChildIfAvailable, getLastKnownOMChild, getLineNumber, getLocalName, getNamespace, getNamespaceContext, getNamespacesInScope, getNamespaceURI, getPrefix, getQName, getSAXSource, getState, getTextAsQName, getTextAsStream, getType, getXMLStreamReader, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching, internalSerialize, isComplete, removeAttribute, removeChildren, resolveQName, setBuilder, setComplete, setFirstChild, setLastChild, setLineNumber, setLocalName, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, toString, toStringWithConsume, undeclarePrefix, writeTextTo
-
Methods inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl
clone, getIParentNode, getNextOMSibling, getNextOMSiblingIfAvailable, getParent, getPreviousOMSibling, insertSiblingAfter, insertSiblingBefore, internalSerialize, internalSerializeAndConsume, setNextOMSibling, setParent, setPreviousOMSibling
-
Methods inherited from class org.apache.axiom.om.impl.llom.OMSerializableImpl
close, getOMFactory, serialize, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Methods inherited from interface org.apache.axiom.om.OMContainer
addChild, getBuilder, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getDescendants, getFirstChildWithName, getFirstOMChild, getSAXSource, getXMLStreamReader, getXMLStreamReader, getXMLStreamReader, getXMLStreamReaderWithoutCaching, removeChildren, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume
-
Methods inherited from interface org.apache.axiom.om.OMElement
addAttribute, addAttribute, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getChildElements, getDefaultNamespace, getFirstElement, getLineNumber, getNamespaceContext, getNamespacesInScope, getTextAsQName, getTextAsStream, removeAttribute, resolveQName, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setBuilder, setLineNumber, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, toString, toStringWithConsume, undeclarePrefix, writeTextTo
-
Methods inherited from interface org.apache.axiom.om.OMNamedInformationItem
getLocalName, getNamespace, getNamespaceURI, getPrefix, getQName, setLocalName
-
Methods inherited from interface org.apache.axiom.om.OMNode
buildWithAttachments, detach, discard, getNextOMSibling, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore
-
-
-
-
Method Detail
-
getParentElement
public <T extends org.apache.abdera.model.Base> T getParentElement()
Deprecated.- Specified by:
getParentElementin interfaceorg.apache.abdera.model.Element
-
setParentElement
public <T extends org.apache.abdera.model.Element> T setParentElement(org.apache.abdera.model.Element parent)
Deprecated.- Specified by:
setParentElementin interfaceorg.apache.abdera.model.Element
-
getPreviousSibling
public <T extends org.apache.abdera.model.Element> T getPreviousSibling()
Deprecated.- Specified by:
getPreviousSiblingin interfaceorg.apache.abdera.model.Element
-
getNextSibling
public <T extends org.apache.abdera.model.Element> T getNextSibling()
Deprecated.- Specified by:
getNextSiblingin interfaceorg.apache.abdera.model.Element
-
getFirstChild
public <T extends org.apache.abdera.model.Element> T getFirstChild()
Deprecated.- Specified by:
getFirstChildin interfaceorg.apache.abdera.model.Element
-
getPreviousSibling
public <T extends org.apache.abdera.model.Element> T getPreviousSibling(QName qname)
Deprecated.- Specified by:
getPreviousSiblingin interfaceorg.apache.abdera.model.Element
-
getNextSibling
public <T extends org.apache.abdera.model.Element> T getNextSibling(QName qname)
Deprecated.- Specified by:
getNextSiblingin interfaceorg.apache.abdera.model.Element
-
getFirstChild
public <T extends org.apache.abdera.model.Element> T getFirstChild(QName qname)
Deprecated.- Specified by:
getFirstChildin interfaceorg.apache.abdera.model.Element
-
getLanguageTag
public org.apache.abdera.i18n.rfc4646.Lang getLanguageTag()
Deprecated.- Specified by:
getLanguageTagin interfaceorg.apache.abdera.model.Element
-
getLanguage
public String getLanguage()
Deprecated.- Specified by:
getLanguagein interfaceorg.apache.abdera.model.Element
-
setLanguage
public <T extends org.apache.abdera.model.Element> T setLanguage(String language)
Deprecated.- Specified by:
setLanguagein interfaceorg.apache.abdera.model.Element
-
getBaseUri
public org.apache.abdera.i18n.iri.IRI getBaseUri()
Deprecated.- Specified by:
getBaseUriin interfaceorg.apache.abdera.model.Element
-
getResolvedBaseUri
public org.apache.abdera.i18n.iri.IRI getResolvedBaseUri()
Deprecated.- Specified by:
getResolvedBaseUriin interfaceorg.apache.abdera.model.Element
-
setBaseUri
public <T extends org.apache.abdera.model.Element> T setBaseUri(org.apache.abdera.i18n.iri.IRI base)
Deprecated.- Specified by:
setBaseUriin interfaceorg.apache.abdera.model.Element
-
setBaseUri
public <T extends org.apache.abdera.model.Element> T setBaseUri(String base)
Deprecated.- Specified by:
setBaseUriin interfaceorg.apache.abdera.model.Element
-
getAttributeValue
public String getAttributeValue(QName qname)
Deprecated.- Specified by:
getAttributeValuein interfaceorg.apache.abdera.model.Element- Specified by:
getAttributeValuein interfaceorg.apache.axiom.om.OMElement- Overrides:
getAttributeValuein classorg.apache.axiom.om.impl.llom.OMElementImpl
-
setAttributeValue
public <T extends org.apache.abdera.model.Element> T setAttributeValue(QName qname, String value)
Deprecated.- Specified by:
setAttributeValuein interfaceorg.apache.abdera.model.Element
-
writeTo
public void writeTo(OutputStream out, org.apache.abdera.writer.WriterOptions options) throws IOException
Deprecated.- Specified by:
writeToin interfaceorg.apache.abdera.model.Base- Throws:
IOException
-
writeTo
public void writeTo(Writer out, org.apache.abdera.writer.WriterOptions options) throws IOException
Deprecated.- Specified by:
writeToin interfaceorg.apache.abdera.model.Base- Throws:
IOException
-
writeTo
public void writeTo(org.apache.abdera.writer.Writer writer, OutputStream out) throws IOExceptionDeprecated.- Specified by:
writeToin interfaceorg.apache.abdera.model.Base- Throws:
IOException
-
writeTo
public void writeTo(org.apache.abdera.writer.Writer writer, Writer out) throws IOExceptionDeprecated.- Specified by:
writeToin interfaceorg.apache.abdera.model.Base- Throws:
IOException
-
writeTo
public void writeTo(org.apache.abdera.writer.Writer writer, OutputStream out, org.apache.abdera.writer.WriterOptions options) throws IOExceptionDeprecated.- Specified by:
writeToin interfaceorg.apache.abdera.model.Base- Throws:
IOException
-
writeTo
public void writeTo(org.apache.abdera.writer.Writer writer, Writer out, org.apache.abdera.writer.WriterOptions options) throws IOExceptionDeprecated.- Specified by:
writeToin interfaceorg.apache.abdera.model.Base- Throws:
IOException
-
writeTo
public void writeTo(OutputStream out) throws IOException
Deprecated.- Specified by:
writeToin interfaceorg.apache.abdera.model.Base- Throws:
IOException
-
writeTo
public void writeTo(Writer writer) throws IOException
Deprecated.- Specified by:
writeToin interfaceorg.apache.abdera.model.Base- Throws:
IOException
-
getDocument
public <T extends org.apache.abdera.model.Element> org.apache.abdera.model.Document<T> getDocument()
Deprecated.- Specified by:
getDocumentin interfaceorg.apache.abdera.model.Element
-
getAttributeValue
public String getAttributeValue(String name)
Deprecated.- Specified by:
getAttributeValuein interfaceorg.apache.abdera.model.Element
-
setAttributeValue
public <T extends org.apache.abdera.model.Element> T setAttributeValue(String name, String value)
Deprecated.- Specified by:
setAttributeValuein interfaceorg.apache.abdera.model.Element
-
setText
public void setText(String text)
Deprecated.- Specified by:
setTextin interfaceorg.apache.abdera.model.Element- Specified by:
setTextin interfaceorg.apache.axiom.om.OMElement- Overrides:
setTextin classorg.apache.axiom.om.impl.llom.OMElementImpl
-
getText
public String getText()
Deprecated.- Specified by:
getTextin interfaceorg.apache.abdera.model.Element- Specified by:
getTextin interfaceorg.apache.axiom.om.OMElement- Overrides:
getTextin classorg.apache.axiom.om.impl.llom.OMElementImpl
-
getAttributes
public List<QName> getAttributes()
Deprecated.- Specified by:
getAttributesin interfaceorg.apache.abdera.model.Element
-
getExtensionAttributes
public List<QName> getExtensionAttributes()
Deprecated.- Specified by:
getExtensionAttributesin interfaceorg.apache.abdera.model.Element
-
removeAttribute
public <T extends org.apache.abdera.model.Element> T removeAttribute(QName qname)
Deprecated.- Specified by:
removeAttributein interfaceorg.apache.abdera.model.Element
-
removeAttribute
public <T extends org.apache.abdera.model.Element> T removeAttribute(String name)
Deprecated.- Specified by:
removeAttributein interfaceorg.apache.abdera.model.Element
-
clone
public Object clone()
Deprecated.- Specified by:
clonein interfaceorg.apache.abdera.model.Base
-
getFactory
public org.apache.abdera.factory.Factory getFactory()
Deprecated.- Specified by:
getFactoryin interfaceorg.apache.abdera.model.Base
-
addComment
public <T extends org.apache.abdera.model.Base> T addComment(String value)
Deprecated.- Specified by:
addCommentin interfaceorg.apache.abdera.model.Base
-
getLocale
public Locale getLocale()
Deprecated.- Specified by:
getLocalein interfaceorg.apache.abdera.model.Element
-
declareNS
public <T extends org.apache.abdera.model.Element> T declareNS(String uri, String prefix)
Deprecated.- Specified by:
declareNSin interfaceorg.apache.abdera.model.Element
-
getNamespaces
public Map<String,String> getNamespaces()
Deprecated.- Specified by:
getNamespacesin interfaceorg.apache.abdera.model.Element
-
getElements
public <T extends org.apache.abdera.model.Element> List<T> getElements()
Deprecated.- Specified by:
getElementsin interfaceorg.apache.abdera.model.Element
-
getMustPreserveWhitespace
public boolean getMustPreserveWhitespace()
Deprecated.- Specified by:
getMustPreserveWhitespacein interfaceorg.apache.abdera.model.Element
-
setMustPreserveWhitespace
public <T extends org.apache.abdera.model.Element> T setMustPreserveWhitespace(boolean preserve)
Deprecated.- Specified by:
setMustPreserveWhitespacein interfaceorg.apache.abdera.model.Element
-
setText
public <T extends org.apache.abdera.model.Element> T setText(DataHandler handler)
Deprecated.- Specified by:
setTextin interfaceorg.apache.abdera.model.Element
-
getDefaultWriterOptions
public org.apache.abdera.writer.WriterOptions getDefaultWriterOptions()
Deprecated.- Specified by:
getDefaultWriterOptionsin interfaceorg.apache.abdera.model.Base
-
complete
public <T extends org.apache.abdera.model.Base> T complete()
Deprecated.Ensure that the underlying streams are fully parsed. We might eventually need to find a more efficient way of doing this, but for now, calling toString() will ensure that this particular object is fully parsed and ready to be modified. Calling complete on an Element does not necessarily mean that the underlying stream is fully consumed, only that that particular element has been completely parsed.- Specified by:
completein interfaceorg.apache.abdera.model.Base
-
iterator
public Iterator<org.apache.abdera.model.Element> iterator()
Deprecated.Iterate over all child elements
-
writeTo
public void writeTo(String writer, OutputStream out) throws IOException
Deprecated.- Specified by:
writeToin interfaceorg.apache.abdera.model.Base- Throws:
IOException
-
writeTo
public void writeTo(String writer, Writer out) throws IOException
Deprecated.- Specified by:
writeToin interfaceorg.apache.abdera.model.Base- Throws:
IOException
-
writeTo
public void writeTo(String writer, OutputStream out, org.apache.abdera.writer.WriterOptions options) throws IOException
Deprecated.- Specified by:
writeToin interfaceorg.apache.abdera.model.Base- Throws:
IOException
-
writeTo
public void writeTo(String writer, Writer out, org.apache.abdera.writer.WriterOptions options) throws IOException
Deprecated.- Specified by:
writeToin interfaceorg.apache.abdera.model.Base- Throws:
IOException
-
toFormattedString
public String toFormattedString()
Deprecated.
-
-