|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.xmlstore.koala.nodes.AbstractDVMNode
org.planx.xmlstore.koala.nodes.DVMElementNode
public class DVMElementNode
An immutable ELEMENT node.
| Field Summary |
|---|
| Fields inherited from interface org.planx.xmlstore.Node |
|---|
BINARY, CHARDATA, ELEMENT |
| Constructor Summary | |
|---|---|
DVMElementNode(String value)
|
|
DVMElementNode(String value,
List<SystemNode> children,
List<Attribute> attrs)
|
|
DVMElementNode(String value,
SystemNode[] children,
Attribute[] attrs)
|
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Returns true if and only if the specified object is also a
Node, they have the same type, their node values are equal,
their attributes are equals as a set, and their children are recursively
equal according to this definition. |
String |
getAttribute(String attrName)
Returns the attribute with the given name. |
String[] |
getAttributeNames()
Returns the names of this Node's attributes. |
List<Attribute> |
getAttributes()
Returns the attributes of this Node. |
List<SystemNode> |
getChildren()
Returns the children of this Node. |
String |
getNodeValue()
Returns the value of this Node. |
int |
hashCode()
Recursively computes a hash code based on the node type, node value, attributes, and children. |
static DVMElementNode |
uncheckedNode(String value,
List<SystemNode> children,
List<Attribute> attrs,
Locator loc,
boolean isShared)
Returns a new DVMElementNode where the child and attribute
lists are not checked for immutability or copied during construction. |
| Methods inherited from class org.planx.xmlstore.koala.nodes.AbstractDVMNode |
|---|
contentEquals, getBytes, getLocator, getType, getValueReference, isMutable, isShared, setLocator, setValueReference, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DVMElementNode(String value)
public DVMElementNode(String value,
List<SystemNode> children,
List<Attribute> attrs)
public DVMElementNode(String value,
SystemNode[] children,
Attribute[] attrs)
| Method Detail |
|---|
public static DVMElementNode uncheckedNode(String value,
List<SystemNode> children,
List<Attribute> attrs,
Locator loc,
boolean isShared)
DVMElementNode where the child and attribute
lists are not checked for immutability or copied during construction.
This special way to construct an element node is provided for efficiency
in implementing system applications which may otherwise ensure that the
lists are immutable.
public String getNodeValue()
NodeNode. When the node represents
a character data node, the returned value will be the character data.
When the node represents an element node, the returned value will
by the tag name of the element. When the node represents binary data,
the returned value will be a base64 encoding of the data.
public List<SystemNode> getChildren()
NodeNode.
If the node represents character data the empty list is returned.
Node.public List<Attribute> getAttributes()
NodeNode. In case
the node represents character data, the empty list is returned.
Node.public String getAttribute(String attrName)
Node
public String[] getAttributeNames()
NodeNode's attributes.
If the node represents character data the returned array is empty.
public boolean equals(Object o)
Nodetrue if and only if the specified object is also a
Node, they have the same type, their node values are equal,
their attributes are equals as a set, and their children are recursively
equal according to this definition.
equals in interface Nodeequals in class Objectpublic int hashCode()
Node
hashCode in interface NodehashCode in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||