|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.wso2.javascript.xmlimpl.AxiomNode
public class AxiomNode
value of type XML represents an XML element, attribute, comment, processing-instruction or text node. EcmaScript - 357 specification. But in axiom element,comment,processing-instruction and text node implement the OMNode interface. attribute implements OMAttribute interface. AxiomNode is written to wrap those two types into a one class.
Field Summary | |
---|---|
static int |
APPEND_CHILD
|
static String |
DESCENDEN_ATTRIBUTE_MATCHER
|
static String |
DESCENDENT_CHILDREN_MATCHER
|
static String |
INVALID_CHILD_INDEX
|
static HashMap |
matcherMap
|
static String |
NODE_MATCHER
|
static int |
PREPEND_CHILD
|
static String |
UNSUPPORTED_OP
|
Method Summary | |
---|---|
void |
addInScopeNamespace(Namespace value)
|
AxiomNode |
childAt(int index)
Retrieve the (index)th child of the current element and covered in an AxiomNode |
org.apache.axiom.om.OMNode |
cloneOMNode()
Clone this OMNode. |
boolean |
detach()
Detach this AxiomNode form the its Parent Elment |
XMLList |
getChildElements(XMLName xmlName,
XMLList xmlList)
|
int |
getChildIndex()
|
XML |
getElemetFromText(XMLLibImpl lib,
XMLName xmlName,
String value)
|
Object[] |
getInScopeNamespace(XMLLibImpl lib)
|
org.apache.axiom.om.OMAttribute |
getOMAttribute()
|
org.apache.axiom.om.OMComment |
getOMComment()
|
org.apache.axiom.om.OMElement |
getOMElement()
|
org.apache.axiom.om.OMFactory |
getOMFactory()
|
org.apache.axiom.om.OMNode |
getOMNode()
|
org.apache.axiom.om.OMProcessingInstruction |
getOMProcessingInstruction()
|
org.apache.axiom.om.OMText |
getOMText()
|
AxiomNode |
getParentNode()
|
javax.xml.namespace.QName |
getQName()
If this AxiomNode represents a Comment or a Text Node QName will be null; |
XML |
getXMLObject(XMLLibImpl lib)
|
void |
insertChild(AxiomNode refNode,
AxiomNode nodeToInsert,
int mode)
|
boolean |
isAttribute()
|
boolean |
isComment()
|
boolean |
isElement()
|
boolean |
isNull()
|
boolean |
isOMNode()
|
boolean |
isProcessingInstruction()
|
boolean |
isText()
|
XMLList |
matchNodes(XMLName xmlName,
XMLList xmlList,
int type)
|
void |
removeChild(AxiomNode axiomNode)
|
void |
setNodeMatcher(String matcherName)
Set the corresponding matcher inner class. |
void |
setParentNode(AxiomNode parentNode)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int APPEND_CHILD
public static final int PREPEND_CHILD
public static final String UNSUPPORTED_OP
public static final String INVALID_CHILD_INDEX
public static final String NODE_MATCHER
public static final String DESCENDENT_CHILDREN_MATCHER
public static final String DESCENDEN_ATTRIBUTE_MATCHER
public static final HashMap matcherMap
Method Detail |
---|
public void addInScopeNamespace(Namespace value)
public AxiomNode childAt(int index)
index
- (zero-based) of the child to retrieved
public org.apache.axiom.om.OMNode cloneOMNode()
public boolean detach()
public XMLList getChildElements(XMLName xmlName, XMLList xmlList)
public int getChildIndex()
public XML getElemetFromText(XMLLibImpl lib, XMLName xmlName, String value)
public Object[] getInScopeNamespace(XMLLibImpl lib)
public org.apache.axiom.om.OMAttribute getOMAttribute()
public org.apache.axiom.om.OMComment getOMComment()
public org.apache.axiom.om.OMElement getOMElement()
public org.apache.axiom.om.OMFactory getOMFactory()
public org.apache.axiom.om.OMNode getOMNode()
public org.apache.axiom.om.OMProcessingInstruction getOMProcessingInstruction()
public org.apache.axiom.om.OMText getOMText()
public AxiomNode getParentNode()
public javax.xml.namespace.QName getQName()
public XML getXMLObject(XMLLibImpl lib)
public void insertChild(AxiomNode refNode, AxiomNode nodeToInsert, int mode)
public boolean isAttribute()
public boolean isComment()
public boolean isElement()
public boolean isNull()
public boolean isOMNode()
public boolean isProcessingInstruction()
public boolean isText()
public XMLList matchNodes(XMLName xmlName, XMLList xmlList, int type)
public void removeChild(AxiomNode axiomNode)
public void setNodeMatcher(String matcherName)
matcherName
- public void setParentNode(AxiomNode parentNode)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |