|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.pega.pegarules.parserule.XMLNode
public class XMLNode
Field Summary | |
---|---|
static java.lang.String |
COPYRIGHT
|
static java.lang.String |
VERSION
|
Constructor Summary | |
---|---|
XMLNode()
|
|
XMLNode(java.lang.String name)
Method XMLNode create the object with name. |
|
XMLNode(java.lang.String name,
org.xml.sax.Attributes attributes)
Method XMLNode create the object with name and attributes. |
|
XMLNode(java.lang.String name,
java.lang.String value)
Method XMLNode create the object with name and value. |
|
XMLNode(java.lang.String name,
java.lang.String value,
org.xml.sax.Attributes attributes)
Method XMLNode create the object with name, value and attributes. |
|
XMLNode(java.lang.String name,
java.lang.String value,
org.xml.sax.Attributes attributes,
java.lang.String path)
Method XMLNode create the object with name, value, attributes and path. |
Method Summary | |
---|---|
XMLNode |
appendChild(XMLNode child)
|
void |
appendToNodeValue(java.lang.String value)
Method appendToNodeValue to append to the node value. |
XMLNode |
getAttributeNode(java.lang.String name)
Method getAttributeNode to create a new XMLNode with name and value given the attribute name. |
org.xml.sax.Attributes |
getAttributes()
Method getAttributes return the attributes. |
java.lang.String |
getAttributeValue(java.lang.String name)
Method getAttributeValue finds the attribute with name and returns its value. |
XMLNodeList |
getChildNodes()
|
XMLNode |
getFirstChild()
|
XMLNode |
getLastChild()
|
java.lang.String |
getNodeName()
Method getNodeName returns the node name. |
java.lang.String |
getNodeValue()
Method getNodeValue returns the node value. |
XMLNode |
getParentNode()
|
java.lang.String |
getPath()
Method getPath will return the path of the node. |
boolean |
hasChildNodes()
|
void |
setAttributes(org.xml.sax.Attributes attributes)
Method setAttributes sets the attributes of the node. |
void |
setNodeName(java.lang.String name)
Method setNodeName sets the node name. |
void |
setNodeValue(java.lang.String value)
Method setNodeValue to set the node value. |
void |
setParentNode(XMLNode parent)
|
void |
setPath(java.lang.String path)
Method setPath sets the path of the node. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String COPYRIGHT
public static final java.lang.String VERSION
Constructor Detail |
---|
public XMLNode()
public XMLNode(java.lang.String name)
name
- is the node namepublic XMLNode(java.lang.String name, java.lang.String value)
name
- is the node namevalue
- is the node valuepublic XMLNode(java.lang.String name, org.xml.sax.Attributes attributes)
name
- is the node nameattributes
- associated with nodepublic XMLNode(java.lang.String name, java.lang.String value, org.xml.sax.Attributes attributes)
name
- is the node namevalue
- is the node valueattributes
- associated with node.public XMLNode(java.lang.String name, java.lang.String value, org.xml.sax.Attributes attributes, java.lang.String path)
name
- is the node namevalue
- is the node valueattributes
- associated with node.path
- is the path of the current node from root tagMethod Detail |
---|
public void setNodeName(java.lang.String name)
name
- is the node namepublic java.lang.String getNodeName()
public java.lang.String getNodeValue()
public void setNodeValue(java.lang.String value)
value
- public void appendToNodeValue(java.lang.String value)
value
- public void setAttributes(org.xml.sax.Attributes attributes)
attributes
- public org.xml.sax.Attributes getAttributes()
public java.lang.String getPath()
public void setPath(java.lang.String path)
path
- public java.lang.String getAttributeValue(java.lang.String name)
name
- is the attribute name to find its value
public XMLNode getAttributeNode(java.lang.String name)
name
- is the attribute name.
public XMLNode appendChild(XMLNode child)
public XMLNodeList getChildNodes()
public XMLNode getFirstChild()
public XMLNode getLastChild()
public XMLNode getParentNode()
public boolean hasChildNodes()
public void setParentNode(XMLNode parent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |