|
||||||||||
| 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.DVMBinaryNode
public class DVMBinaryNode
An immutable BINARY node.
| Field Summary |
|---|
| Fields inherited from interface org.planx.xmlstore.Node |
|---|
BINARY, CHARDATA, ELEMENT |
| Constructor Summary | |
|---|---|
DVMBinaryNode(byte[] value)
Creates a BINARY node with the specified value. |
|
DVMBinaryNode(byte[] value,
Locator loc,
boolean isShared)
Creates a BINARY 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. |
byte[] |
getBytes()
Returns the data of this BINARY node. |
List<SystemNode> |
getChildren()
Empty list. |
String |
getNodeValue()
Returns the data of this BINARY node encoded as base64. |
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 BINARY
nodes cannot have children. |
| Methods inherited from class org.planx.xmlstore.koala.nodes.AbstractDVMNode |
|---|
contentEquals, getLocator, getType, getValueReference, isMutable, isShared, setLocator, setValueReference, toString |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DVMBinaryNode(byte[] value)
BINARY node with the specified value.
public DVMBinaryNode(byte[] value,
Locator loc,
boolean isShared)
BINARY node and sets its associated locator and
isShared status.
| Method Detail |
|---|
public String getNodeValue()
BINARY node encoded as base64.
public byte[] getBytes()
BINARY node.
getBytes in interface NodegetBytes in class AbstractDVMNodepublic 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 BINARY
nodes cannot have children.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||