|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.xmlstore.nodes.AbstractNode
org.planx.xmlstore.nodes.DVMNode
public class DVMNode
Standard implementation of an immutable Node.
| Field Summary |
|---|
| Fields inherited from class org.planx.xmlstore.nodes.AbstractNode |
|---|
eqCls, ref, visitToken |
| Fields inherited from interface org.planx.xmlstore.Node |
|---|
CHARDATA, ELEMENT |
| Constructor Summary | |
|---|---|
DVMNode(byte type,
String value)
|
|
DVMNode(byte type,
String value,
List<SystemNode> children,
List<Attribute> attrs)
|
|
DVMNode(byte type,
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. |
SystemNode |
get()
Resolves the node if it is a proxy and guarantees to return a 'real' node. |
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. |
int |
getHeight()
|
LocalLocator |
getLocator()
|
String |
getNodeValue()
Returns the value of this Node. |
byte |
getType()
Returns the node type of this Node. |
int |
hashCode()
Recursively computes a hash code based on the node type, node value, attributes, and children. |
boolean |
isMutable()
Returns true if this Node is mutable,
false otherwise. |
boolean |
isShared()
|
void |
setChild(int index,
SystemNode child)
|
void |
setHeight(int height)
|
void |
setLocator(LocalLocator loc)
|
void |
setShared(boolean isShared)
|
String |
toString()
|
| Methods inherited from class org.planx.xmlstore.nodes.AbstractNode |
|---|
getEquivalenceClass, getReference, getVisitToken, setEquivalenceClass, setReference, setVisitToken |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DVMNode(byte type,
String value)
public DVMNode(byte type,
String value,
List<SystemNode> children,
List<Attribute> attrs)
public DVMNode(byte type,
String value,
SystemNode[] children,
Attribute[] attrs)
| Method Detail |
|---|
public boolean isMutable()
Nodetrue if this Node is mutable,
false otherwise.
isMutable in interface NodeisMutable in class AbstractNodetrue if mutable, false if immutable.public byte getType()
NodeNode.
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.
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 Objectpublic String toString()
toString in class Objectpublic SystemNode get()
SystemNode
get in interface SystemNodeget in class AbstractNodepublic boolean isShared()
public void setShared(boolean isShared)
public int getHeight()
public void setHeight(int height)
public void setChild(int index,
SystemNode child)
public LocalLocator getLocator()
public void setLocator(LocalLocator loc)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||