|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.planx.xmlstore.koala.nodes.NodeProxy
public abstract class NodeProxy
| Field Summary |
|---|
| Fields inherited from interface org.planx.xmlstore.Node |
|---|
BINARY, CHARDATA, ELEMENT |
| Method Summary | |
|---|---|
boolean |
contentEquals(Node n)
Returns true if and only if the specified node has the same
type, value, and attributes as this node, and their children recursively
satisfy the same predicate. |
boolean |
equals(Object o)
If the argument Node is also a NodeProxy,
attempts to compare the two nodes using references, otherwise the
proxied node is loaded and a structural comparison is (probably)
performed. |
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. |
byte[] |
getBytes()
Returns the value of this node as bytes. |
List<SystemNode> |
getChildren()
Returns the children of this Node. |
Locator |
getLocator()
|
String |
getNodeValue()
Returns the value of this Node. |
byte |
getType()
Returns the node type of this Node. |
ValueReference |
getValueReference()
|
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 |
setLocator(Locator l)
|
void |
setValueReference(ValueReference l)
|
String |
toString()
|
void |
unload()
Unload the proxied node from memory. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public boolean isMutable()
Nodetrue if this Node is mutable,
false otherwise.
isMutable in interface Nodetrue if mutable, false if immutable.public byte getType()
NodeNode.
getType in interface Nodepublic byte[] getBytes()
NodeBINARY nodes. For CHARDATA and
ELEMENT nodes the returned bytes will be
Node.getNodeValue() encoded as bytes using the default
character encoding.
getBytes in interface Nodepublic 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.
getNodeValue in interface Nodepublic List<SystemNode> getChildren()
NodeNode.
If the node represents character data the empty list is returned.
getChildren in interface SystemNodegetChildren in interface NodeNode.public List<Attribute> getAttributes()
NodeNode. In case
the node represents character data, the empty list is returned.
getAttributes in interface NodeNode.public String getAttribute(String attrName)
Node
getAttribute in interface Nodepublic String[] getAttributeNames()
NodeNode's attributes.
If the node represents character data the returned array is empty.
getAttributeNames in interface Nodepublic boolean isShared()
isShared in interface SystemNodepublic Locator getLocator()
getLocator in interface SystemNodepublic void setLocator(Locator l)
setLocator in interface SystemNodepublic ValueReference getValueReference()
getValueReference in interface SystemNodepublic void setValueReference(ValueReference l)
setValueReference in interface SystemNodepublic boolean equals(Object o)
Node is also a NodeProxy,
attempts to compare the two nodes using references, otherwise the
proxied node is loaded and a structural comparison is (probably)
performed.
equals in interface Nodeequals in class Objectpublic boolean contentEquals(Node n)
Nodetrue if and only if the specified node has the same
type, value, and attributes as this node, and their children recursively
satisfy the same predicate.
contentEquals in interface Nodepublic int hashCode()
Node
hashCode in interface NodehashCode in class Objectpublic String toString()
toString in class Objectpublic void unload()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||