org.jplate.foundation.node
Interface NodeIfc<BC,LC>

Type Parameters:
BC - The branch context representing data type stored in branches.
LC - The leaf context representing data type stored in leaves.
All Superinterfaces:
FormattableIfc, java.io.Serializable, VisitableIfc<NodeVisitorIfc<BC,LC>>
All Known Subinterfaces:
BranchNodeIfc<BC,LC>, LeafNodeIfc<BC,LC>
All Known Implementing Classes:
AbstractNode, DefaultBranchNode, DefaultLeafNode

public interface NodeIfc<BC,LC>
extends java.io.Serializable, FormattableIfc, VisitableIfc<NodeVisitorIfc<BC,LC>>

Defines a node and represents the base interface for all nodes. All nodes have a parent (represented by a BranchNodeIfc) and can be visited by a NodeVisitorIfc.

Modifications:
    $Date: 2008-12-02 12:32:45 -0500 (Tue, 02 Dec 2008) $
    $Revision: 479 $
    $Author: sfloess $
    $HeadURL: https://jplate.svn.sourceforge.net/svnroot/jplate/trunk/src/dev/java/org/jplate/foundation/node/NodeIfc.java $
    

See Also:
BranchNodeIfc, NodeVisitorIfc

Method Summary
 BranchNodeIfc<BC,LC> getParent()
          Returns the parent node.
 SourceIfc<?> getSource()
          Returns the source from which self was defined.
 void setSource(SourceIfc<?> source)
          Sets the source from which this node was defined.
 
Methods inherited from interface org.jplate.foundation.FormattableIfc
toString
 
Methods inherited from interface org.jplate.foundation.gof.visitor.VisitableIfc
accept
 

Method Detail

getParent

BranchNodeIfc<BC,LC> getParent()
Returns the parent node.

Returns:
The parent node.

getSource

SourceIfc<?> getSource()
Returns the source from which self was defined.

Returns:
the source from which self was defined.

setSource

void setSource(SourceIfc<?> source)
Sets the source from which this node was defined.

Parameters:
source - The source from which self was defined.