|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axiom.om.impl.llom.OMNodeImpl
org.apache.axiom.om.impl.llom.OMElementImpl
org.apache.abdera.parser.stax.FOMElement
org.apache.abdera.parser.stax.FOMExtensibleElement
public class FOMExtensibleElement
Field Summary |
---|
Fields inherited from class org.apache.axiom.om.impl.llom.OMElementImpl |
---|
attributes, DEFAULT_DEFAULT_NS_OBJECT, firstChild, lastChild, localName, namespaces, noPrefixNamespaceCounter, ns, qName |
Fields inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl |
---|
builder, done, factory, nextSibling, nodeType, parent, previousSibling |
Fields inherited from interface org.apache.axiom.om.OMNode |
---|
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE |
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 |
Constructor Summary | |
---|---|
|
FOMExtensibleElement(QName qname)
|
protected |
FOMExtensibleElement(QName qname,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory)
|
protected |
FOMExtensibleElement(QName qname,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory,
org.apache.axiom.om.OMXMLParserWrapper builder)
|
protected |
FOMExtensibleElement(String name,
org.apache.axiom.om.OMNamespace namespace,
org.apache.axiom.om.OMContainer parent,
org.apache.axiom.om.OMFactory factory)
|
Method Summary | ||
---|---|---|
|
addExtension(Element extension)
Adds an individual extension element |
|
|
addExtension(Element extension,
Element before)
Adds an individual extension element before the specified element |
|
|
addExtension(QName qname)
Adds an individual extension element |
|
|
addExtension(QName qname,
QName before)
Adds an individual extension element |
|
|
addExtension(String namespace,
String localpart,
String prefix)
Adds an individual extension element |
|
void |
addExtensions(List<Element> extensions)
|
|
Element |
addSimpleExtension(QName qname,
String value)
Adds a simple extension (text content only) |
|
Element |
addSimpleExtension(String namespace,
String localPart,
String prefix,
String value)
Adds a simple extension (text content only) |
|
|
getExtension(Class<T> _class)
Trick using Generics to find an extension element without having to pass in it's QName |
|
|
getExtension(QName qname)
Returns the first extension element with the XML qualified name |
|
List<Element> |
getExtensions()
Returns the complete set of extension elements |
|
|
getExtensions(QName qname)
Returns the complete set of extension elements using the specified XML qualified name |
|
List<Element> |
getExtensions(String uri)
Returns the complete set of extension elements using the specified XML Namespace URI |
|
String |
getSimpleExtension(QName qname)
Gets the value of a simple extension |
|
String |
getSimpleExtension(String namespace,
String localPart,
String prefix)
Gets the value of a simple extension |
Methods inherited from class org.apache.axiom.om.impl.llom.OMElementImpl |
---|
addAttribute, addAttribute, addChild, build, buildNext, buildWithAttachments, cloneOMElement, declareDefaultNamespace, declareNamespace, declareNamespace, detach, discard, findNamespace, findNamespaceURI, getAllAttributes, getAllDeclaredNamespaces, getAttribute, getBuilder, getChildElements, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getDefaultNamespace, getFirstChildWithName, getFirstElement, getFirstOMChild, getLineNumber, getLocalName, getNamespace, getNextOMSibling, getQName, getTextAsQName, getTrimmedText, getType, getXMLStreamReader, getXMLStreamReaderWithoutCaching, internalSerialize, internalSerialize, internalSerializeAndConsume, isComplete, notifyChildComplete, removeAttribute, resolveQName, setBuilder, setFirstChild, setLastChild, setLineNumber, setLocalName, setNamespace, setNamespaceWithNoFindInCurrentScope, setText, toString, toStringWithConsume |
Methods inherited from class org.apache.axiom.om.impl.llom.OMNodeImpl |
---|
close, getOMFactory, getParent, getPreviousOMSibling, importNode, insertSiblingAfter, insertSiblingBefore, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, setComplete, setNextOMSibling, setParent, setPreviousOMSibling, setType |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.apache.abdera.model.Element |
---|
declareNS, discard, getAttributes, getAttributeValue, getAttributeValue, getBaseUri, getDocument, getElements, getExtensionAttributes, getFirstChild, getFirstChild, getLanguage, getLanguageTag, getLocale, getMustPreserveWhitespace, getNamespaces, getNextSibling, getNextSibling, getParentElement, getPreviousSibling, getPreviousSibling, getQName, getResolvedBaseUri, getText, removeAttribute, removeAttribute, setAttributeValue, setAttributeValue, setBaseUri, setBaseUri, setLanguage, setMustPreserveWhitespace, setParentElement, setText, setText |
Methods inherited from interface org.apache.abdera.model.Base |
---|
addComment, clone, complete, getDefaultWriterOptions, getFactory, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo, writeTo |
Methods inherited from interface java.lang.Iterable |
---|
iterator |
Methods inherited from interface org.apache.axiom.om.OMElement |
---|
addAttribute, 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, toStringWithConsume |
Methods inherited from interface org.apache.axiom.om.OMNode |
---|
build, buildWithAttachments, close, detach, discard, getNextOMSibling, getOMFactory, getParent, getPreviousOMSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serialize, serialize, serialize, serialize, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume, serializeAndConsume |
Methods inherited from interface org.apache.axiom.om.OMContainer |
---|
addChild, buildNext, getChildren, getChildrenWithLocalName, getChildrenWithName, getChildrenWithNamespaceURI, getFirstChildWithName, getFirstOMChild, isComplete |
Methods inherited from interface org.apache.axiom.om.impl.OMContainerEx |
---|
setComplete |
Constructor Detail |
---|
public FOMExtensibleElement(QName qname)
protected FOMExtensibleElement(String name, org.apache.axiom.om.OMNamespace namespace, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMFactory factory) throws org.apache.axiom.om.OMException
org.apache.axiom.om.OMException
protected FOMExtensibleElement(QName qname, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMFactory factory) throws org.apache.axiom.om.OMException
org.apache.axiom.om.OMException
protected FOMExtensibleElement(QName qname, org.apache.axiom.om.OMContainer parent, org.apache.axiom.om.OMFactory factory, org.apache.axiom.om.OMXMLParserWrapper builder) throws org.apache.axiom.om.OMException
org.apache.axiom.om.OMException
Method Detail |
---|
public List<Element> getExtensions()
ExtensibleElement
getExtensions
in interface ExtensibleElement
public List<Element> getExtensions(String uri)
ExtensibleElement
getExtensions
in interface ExtensibleElement
uri
- A namespace URI
public <T extends Element> List<T> getExtensions(QName qname)
ExtensibleElement
getExtensions
in interface ExtensibleElement
qname
- An XML QName
public <T extends Element> T getExtension(QName qname)
ExtensibleElement
getExtension
in interface ExtensibleElement
qname
- An XML QName
public <T extends ExtensibleElement> T addExtension(Element extension)
ExtensibleElement
addExtension
in interface ExtensibleElement
extension
- An extension element to addpublic <T extends Element> T addExtension(QName qname)
ExtensibleElement
addExtension
in interface ExtensibleElement
qname
- An extension element to create
public <T extends Element> T addExtension(String namespace, String localpart, String prefix)
ExtensibleElement
addExtension
in interface ExtensibleElement
namespace
- An XML namespacelocalpart
- A localnameprefix
- A XML namespace prefix
public Element addSimpleExtension(QName qname, String value)
ExtensibleElement
addSimpleExtension
in interface ExtensibleElement
qname
- An XML QNamevalue
- The simple text value of the element
public Element addSimpleExtension(String namespace, String localPart, String prefix, String value)
ExtensibleElement
addSimpleExtension
in interface ExtensibleElement
namespace
- An XML namespacelocalPart
- A local nameprefix
- A namespace prefixvalue
- The simple text value
public String getSimpleExtension(QName qname)
ExtensibleElement
getSimpleExtension
in interface ExtensibleElement
qname
- An XML QName
public String getSimpleExtension(String namespace, String localPart, String prefix)
ExtensibleElement
getSimpleExtension
in interface ExtensibleElement
namespace
- An XML namespacelocalPart
- A localnameprefix
- A namespace prefix
public void addExtensions(List<Element> extensions)
public <T extends Element> T getExtension(Class<T> _class)
getExtension
in interface ExtensibleElement
_class
- The implementation class of the extension
public <T extends ExtensibleElement> T addExtension(Element extension, Element before)
ExtensibleElement
addExtension
in interface ExtensibleElement
public <T extends Element> T addExtension(QName qname, QName before)
ExtensibleElement
addExtension
in interface ExtensibleElement
qname
- An extension element to create
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |