org.jplate.foundation.node
Interface LeafNodeIfc<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, NodeIfc<BC,LC>, java.io.Serializable, VisitableIfc<NodeVisitorIfc<BC,LC>>
All Known Implementing Classes:
DefaultLeafNode

public interface LeafNodeIfc<BC,LC>
extends java.io.Serializable, NodeIfc<BC,LC>

Defines the API for a leaf node. Leaf nodes have no children but do support a context (data specific to leaves). For instance, consider XML where an element is parsed character data - this is the context.

Providing the branch and leaf context types defines the data that will be found in parents and siblings.

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/LeafNodeIfc.java $
    


Method Summary
 LC getContext()
          Returns self's context.
 void setContext(LC context)
          Sets the context of self.
 
Methods inherited from interface org.jplate.foundation.node.NodeIfc
getParent, getSource, setSource
 
Methods inherited from interface org.jplate.foundation.FormattableIfc
toString
 
Methods inherited from interface org.jplate.foundation.gof.visitor.VisitableIfc
accept
 

Method Detail

setContext

void setContext(LC context)
Sets the context of self.

Parameters:
context - The new context.

getContext

LC getContext()
Returns self's context.

Returns:
Self's context.