org.planx.xmlstore.nodes
Class AbstractNode

java.lang.Object
  extended by org.planx.xmlstore.nodes.AbstractNode
All Implemented Interfaces:
EquivalenceClassDiscriminable, Node, SystemNode
Direct Known Subclasses:
DVMNode, NodeProxy

public abstract class AbstractNode
extends Object
implements SystemNode


Field Summary
protected  EquivalenceClass eqCls
           
protected  Reference ref
           
protected  Object visitToken
           
 
Fields inherited from interface org.planx.xmlstore.Node
CHARDATA, ELEMENT
 
Constructor Summary
protected AbstractNode()
           
 
Method Summary
 SystemNode get()
          Resolves the node if it is a proxy and guarantees to return a 'real' node.
 EquivalenceClass getEquivalenceClass()
          Returns the EquivalenceClass that this object belongs to.
 Reference getReference()
           
 Object getVisitToken()
           
 boolean isMutable()
          Returns true if this Node is mutable, false otherwise.
 void setEquivalenceClass(EquivalenceClass eqCls)
          Changes the EquivalenceClass of this object to the specified EquivalenceClass (optional operation).
 void setReference(Reference ref)
           
 void setVisitToken(Object token)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.planx.xmlstore.nodes.SystemNode
getChildren, getHeight, getLocator, isShared, setChild, setHeight, setLocator, setShared
 
Methods inherited from interface org.planx.xmlstore.Node
equals, getAttribute, getAttributeNames, getAttributes, getNodeValue, getType, hashCode
 

Field Detail

visitToken

protected Object visitToken

eqCls

protected EquivalenceClass eqCls

ref

protected Reference ref
Constructor Detail

AbstractNode

protected AbstractNode()
Method Detail

getVisitToken

public Object getVisitToken()
Specified by:
getVisitToken in interface SystemNode

setVisitToken

public void setVisitToken(Object token)
Specified by:
setVisitToken in interface SystemNode

getReference

public Reference getReference()
Specified by:
getReference in interface SystemNode

setReference

public void setReference(Reference ref)
Specified by:
setReference in interface SystemNode

getEquivalenceClass

public EquivalenceClass getEquivalenceClass()
Description copied from interface: EquivalenceClassDiscriminable
Returns the EquivalenceClass that this object belongs to.

Specified by:
getEquivalenceClass in interface EquivalenceClassDiscriminable

setEquivalenceClass

public void setEquivalenceClass(EquivalenceClass eqCls)
Description copied from interface: EquivalenceClassDiscriminable
Changes the EquivalenceClass of this object to the specified EquivalenceClass (optional operation). If this operation is not supported an UnsupportedOperationException will be thrown.

Specified by:
setEquivalenceClass in interface EquivalenceClassDiscriminable

get

public SystemNode get()
Description copied from interface: SystemNode
Resolves the node if it is a proxy and guarantees to return a 'real' node.

Specified by:
get in interface SystemNode

isMutable

public boolean isMutable()
Description copied from interface: Node
Returns true if this Node is mutable, false otherwise.

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


Copyright © 2010. All Rights Reserved.