edu.usc.alfa.xalfa.ast.primitive
Class DatumNode

java.lang.Object
  extended byedu.usc.alfa.xalfa.ast.Node
      extended byedu.usc.alfa.xalfa.ast.NamedNode
          extended byedu.usc.alfa.xalfa.ast.primitive.DatumNode

public final class DatumNode
extends NamedNode

The DatumNode represents a data type used in styles and architectures. In architectures, datum sub-typing is supported.


Constructor Summary
DatumNode(java.lang.String ID, java.lang.String label)
          Creates a new instance of DatumNode
 
Method Summary
 void accept(edu.usc.alfa.xalfa.visitor.NodeVisitor v)
          The visitor method to analyze xAlfa objects.
 DatumNode getParent()
          Getter for property base.
 DatumNode getTemplate()
          Getter for property template.
 void setParent(DatumNode parent)
           
 void setTemplate(DatumNode template)
          Setter for property template.
 java.lang.String toDebugString(int level)
          Generate debug information for this node.
 java.lang.String toString()
           
 
Methods inherited from class edu.usc.alfa.xalfa.ast.NamedNode
getName
 
Methods inherited from class edu.usc.alfa.xalfa.ast.Node
equals, getID, getTabs, hashCode, nodeSequenceString, nodeSequenceString, toDebugString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DatumNode

public DatumNode(java.lang.String ID,
                 java.lang.String label)
Creates a new instance of DatumNode

Method Detail

accept

public void accept(edu.usc.alfa.xalfa.visitor.NodeVisitor v)
Description copied from class: Node
The visitor method to analyze xAlfa objects. This method is part of the Visitor pattern from GOF.

Specified by:
accept in class Node
Parameters:
v - Node Visitor that wants to visit this node.

toDebugString

public java.lang.String toDebugString(int level)
Description copied from class: Node
Generate debug information for this node. Nesting levels are provided so that hierarchical information can be easily debugged. Typically, debugging information includes values of various parameters and the debugging information for internal objects

Specified by:
toDebugString in class Node
Parameters:
level - The level of visual nesting to produce in the output
Returns:
A String containing debugging information about the object.

setParent

public void setParent(DatumNode parent)

getParent

public DatumNode getParent()
Getter for property base.

Returns:
Value of property base.

getTemplate

public DatumNode getTemplate()
Getter for property template.

Returns:
Value of property template.

setTemplate

public void setTemplate(DatumNode template)
Setter for property template.

Parameters:
template - New value of property template.

toString

public java.lang.String toString()