|
||||||||||
| 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.DVMCharDataNode
public class DVMCharDataNode
An immutable CHARDATA node.
| Field Summary |
|---|
| Fields inherited from interface org.planx.xmlstore.Node |
|---|
BINARY, CHARDATA, ELEMENT |
| Constructor Summary | |
|---|---|
DVMCharDataNode(String value)
Creates a CHARDATA node with the specified value. |
|
DVMCharDataNode(String value,
Locator loc,
boolean isShared)
Creates a CHARDATA node and sets its associated locator and
isShared status. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object o)
Only equal if object is a Node with the same type and same
value. |
String |
getAttribute(String attrName)
Always null. |
String[] |
getAttributeNames()
Empty array. |
List<Attribute> |
getAttributes()
Empty list. |
List<SystemNode> |
getChildren()
Empty list. |
String |
getNodeValue()
Returns the character data of this CHARDATA node. |
int |
hashCode()
Recursively computes a hash code based on the node type, node value, attributes, and children. |
void |
setChild(int index,
SystemNode child)
Throws an IllegalArgumentException since CHARDATA
nodes cannot have children. |
| 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 DVMCharDataNode(String value)
CHARDATA node with the specified value.
public DVMCharDataNode(String value,
Locator loc,
boolean isShared)
CHARDATA node and sets its associated locator and
isShared status.
| Method Detail |
|---|
public String getNodeValue()
CHARDATA node.
public List<SystemNode> getChildren()
Node.public List<Attribute> getAttributes()
Node.public String getAttribute(String attrName)
null.
public String[] getAttributeNames()
public boolean equals(Object o)
Node with the same type and same
value.
equals in interface Nodeequals in class Objectpublic int hashCode()
Node
hashCode in interface NodehashCode in class Object
public void setChild(int index,
SystemNode child)
IllegalArgumentException since CHARDATA
nodes cannot have children.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||