org.planx.xmlstore.koala.nodes
Class AbstractDVMNode

java.lang.Object
  extended by org.planx.xmlstore.koala.nodes.AbstractDVMNode
All Implemented Interfaces:
SystemNode, Node
Direct Known Subclasses:
DVMBinaryNode, DVMCharDataNode, DVMElementNode

public abstract class AbstractDVMNode
extends Object
implements SystemNode

Skeletal implementation of a concrete SystemNode.

Author:
Thomas Ambus

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.
 byte[] getBytes()
          Convenience implementation that simply returns the bytes of the string returned by getNodeValue using the default character encoding.
 Locator getLocator()
           
 byte getType()
          Returns the node type of this Node.
 ValueReference getValueReference()
           
 boolean isMutable()
          Returns false.
 boolean isShared()
           
 void setLocator(Locator loc)
           
 void setValueReference(ValueReference vref)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.planx.xmlstore.koala.nodes.SystemNode
getChildren
 
Methods inherited from interface org.planx.xmlstore.Node
equals, getAttribute, getAttributeNames, getAttributes, getNodeValue, hashCode
 

Method Detail

isMutable

public boolean isMutable()
Returns false.

Specified by:
isMutable in interface Node
Returns:
true if mutable, false if immutable.

getType

public byte getType()
Description copied from interface: Node
Returns the node type of this Node.

Specified by:
getType in interface Node
Returns:
The node type

isShared

public boolean isShared()
Specified by:
isShared in interface SystemNode

getLocator

public Locator getLocator()
Specified by:
getLocator in interface SystemNode

setLocator

public void setLocator(Locator loc)
Specified by:
setLocator in interface SystemNode

getValueReference

public ValueReference getValueReference()
Specified by:
getValueReference in interface SystemNode

setValueReference

public void setValueReference(ValueReference vref)
Specified by:
setValueReference in interface SystemNode

getBytes

public byte[] getBytes()
Convenience implementation that simply returns the bytes of the string returned by getNodeValue using the default character encoding.

Specified by:
getBytes in interface Node

toString

public String toString()
Overrides:
toString in class Object

contentEquals

public boolean contentEquals(Node n)
Description copied from interface: Node
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.

Specified by:
contentEquals in interface Node


Copyright © 2004-2005 Plan-X. All Rights Reserved.