|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Interface OMElement
Field Summary |
Fields inherited from interface org.apache.axis2.om.OMNode |
CDATA_SECTION_NODE, COMMENT_NODE, DTD_NODE, ELEMENT_NODE, ENTITY_REFERENCE_NODE, PI_NODE, SPACE_NODE, TEXT_NODE |
Method Summary | |
OMAttribute |
addAttribute(OMAttribute attr)
This will insert attribute to this element. |
OMAttribute |
addAttribute(java.lang.String attributeName,
java.lang.String value,
OMNamespace ns)
|
void |
addChild(OMNode omNode)
This will add child to the element. |
OMNamespace |
declareNamespace(OMNamespace namespace)
|
OMNamespace |
declareNamespace(java.lang.String uri,
java.lang.String prefix)
THis will create a namespace in the current element scope |
OMNamespace |
findNamespace(java.lang.String uri,
java.lang.String prefix)
This will find a namespace with the given uri and prefix, in the scope of the hierarchy. |
java.util.Iterator |
getAllDeclaredNamespaces()
|
OMAttribute |
getAttribute(javax.xml.namespace.QName qname)
Return a named attribute if present |
java.util.Iterator |
getAttributes()
This will return a List of OMAttributes |
OMXMLParserWrapper |
getBuilder()
Method getBuilder |
java.util.Iterator |
getChildElements()
Returns a filtered list of children - just the elements. |
java.util.Iterator |
getChildren()
This returns a collection of this element. |
java.util.Iterator |
getChildrenWithName(javax.xml.namespace.QName elementQName)
This will search for children with a given QName and will return an iterator to traverse through the OMNodes. |
OMAttribute |
getFirstAttribute(javax.xml.namespace.QName qname)
This will help to search for an attribute with a given QName within this Element |
OMNode |
getFirstChild()
Get the first child |
OMElement |
getFirstChildWithName(javax.xml.namespace.QName elementQName)
This will return the first matched child, return null if none found |
OMElement |
getFirstElement()
Convenience extension of the getFirstChild |
java.lang.String |
getLocalName()
Method getLocalName |
OMNamespace |
getNamespace()
|
javax.xml.namespace.QName |
getQName()
Get the Qname of this node |
java.lang.String |
getText()
This will return the non-empty text children as a String |
XMLStreamReader |
getXMLStreamReader()
Returns the pull parser that will generate the pull events relevant to THIS element. |
XMLStreamReader |
getXMLStreamReaderWithoutCaching()
Returns the pull parser that will generate the pull events relevant to THIS element.caching is off |
void |
removeAttribute(OMAttribute attr)
Method removeAttribute |
void |
setBuilder(OMXMLParserWrapper wrapper)
Method setBuilder |
void |
setFirstChild(OMNode node)
Set the first child |
void |
setLocalName(java.lang.String localName)
Method setLocalName |
void |
setNamespace(OMNamespace namespace)
sets the Namespace |
void |
setText(java.lang.String text)
|
Methods inherited from interface org.apache.axis2.om.OMNode |
build, detach, discard, getNextSibling, getParent, getPreviousSibling, getType, insertSiblingAfter, insertSiblingBefore, isComplete, serialize, serializeWithCache |
Methods inherited from interface org.apache.axis2.om.OMContainer |
buildNext, isComplete |
Method Detail |
public void addChild(OMNode omNode)
addChild
in interface OMContainer
omNode
- public java.util.Iterator getChildrenWithName(javax.xml.namespace.QName elementQName) throws OMException
getChildrenWithName
in interface OMContainer
elementQName
-
OMException
public OMElement getFirstChildWithName(javax.xml.namespace.QName elementQName) throws OMException
getFirstChildWithName
in interface OMContainer
elementQName
-
OMException
public java.util.Iterator getChildren()
getChildren
in interface OMContainer
public java.util.Iterator getChildElements()
public OMNamespace declareNamespace(java.lang.String uri, java.lang.String prefix)
uri
- prefix
-
public OMNamespace declareNamespace(OMNamespace namespace)
namespace
-
public OMNamespace findNamespace(java.lang.String uri, java.lang.String prefix) throws OMException
uri
- prefix
-
OMException
public java.util.Iterator getAllDeclaredNamespaces() throws OMException
OMException
public OMAttribute getFirstAttribute(javax.xml.namespace.QName qname) throws OMException
qname
-
OMException
public java.util.Iterator getAttributes()
public OMAttribute getAttribute(javax.xml.namespace.QName qname)
qname
- the qualified name to search for
public OMAttribute addAttribute(OMAttribute attr)
attr
-
public OMAttribute addAttribute(java.lang.String attributeName, java.lang.String value, OMNamespace ns)
attributeName
- value
- ns
- - the namespace has to be one of the in scope namespace. i.e. the passed namespace
must be declared in the parent element of this attribute or ancestors of the parent element of the attribute
public void removeAttribute(OMAttribute attr)
attr
- public void setBuilder(OMXMLParserWrapper wrapper)
wrapper
- public OMXMLParserWrapper getBuilder()
public void setFirstChild(OMNode node)
node
- public OMNode getFirstChild()
getFirstChild
in interface OMContainer
public OMElement getFirstElement()
public XMLStreamReader getXMLStreamReader()
public XMLStreamReader getXMLStreamReaderWithoutCaching()
public void setText(java.lang.String text)
text
- public java.lang.String getText()
public java.lang.String getLocalName()
public void setLocalName(java.lang.String localName)
localName
- public OMNamespace getNamespace() throws OMException
OMException
public void setNamespace(OMNamespace namespace)
namespace
- public javax.xml.namespace.QName getQName()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |