edu.usc.alfa.xalfa.ast.composition
Class StyleNode

java.lang.Object
  extended byedu.usc.alfa.xalfa.ast.Node
      extended byedu.usc.alfa.xalfa.ast.NamedNode
          extended byedu.usc.alfa.xalfa.ast.composition.CompositionNode
              extended byedu.usc.alfa.xalfa.ast.composition.StyleNode

public final class StyleNode
extends CompositionNode

A style is used to collect various stylistic templates such as datums, constituents, ducts, and the data and topological constraints on these.


Constructor Summary
StyleNode(java.lang.String ID, java.lang.String name)
          Creates a new instance of StyleNode
 
Method Summary
 void accept(edu.usc.alfa.xalfa.visitor.NodeVisitor v)
          The visitor method to analyze xAlfa objects.
 StyleNode[] getBases()
          Getter for property base.
 DataConstraintNode[] getDataConstraints()
          Getter for property dataConstraints.
 TopologyConstraintNode[] getTopologyConstraints()
          Getter for property topology.
 void setBases(StyleNode[] bases)
          Setter for property base.
 void setDataConstraints(DataConstraintNode[] dataConstraints)
          Setter for property dataConstraints.
 void setTopologyConstraints(TopologyConstraintNode[] topology)
          Setter for property topology.
 java.lang.String toDebugString(int level)
          Generate debugging information
 java.lang.String toString()
           
 
Methods inherited from class edu.usc.alfa.xalfa.ast.composition.CompositionNode
getConstituents, getData, getDucts, setConstituents, setData, setDucts
 
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

StyleNode

public StyleNode(java.lang.String ID,
                 java.lang.String name)
Creates a new instance of StyleNode

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.

getDataConstraints

public DataConstraintNode[] getDataConstraints()
Getter for property dataConstraints.

Returns:
Value of property dataConstraints.

setDataConstraints

public void setDataConstraints(DataConstraintNode[] dataConstraints)
Setter for property dataConstraints.

Parameters:
dataConstraints - New value of property dataConstraints.

getTopologyConstraints

public TopologyConstraintNode[] getTopologyConstraints()
Getter for property topology.

Returns:
Value of property topology.

setTopologyConstraints

public void setTopologyConstraints(TopologyConstraintNode[] topology)
Setter for property topology.

Parameters:
topology - New value of property topology.

getBases

public StyleNode[] getBases()
Getter for property base.

Returns:
Value of property base.

setBases

public void setBases(StyleNode[] bases)
Setter for property base.


toDebugString

public java.lang.String toDebugString(int level)
Description copied from class: CompositionNode
Generate debugging information

Overrides:
toDebugString in class CompositionNode
Parameters:
level - number of tabs to leave at the beginning of each line.
Returns:
String containing the architecture's styles, datums, constituents, and links

toString

public java.lang.String toString()
Overrides:
toString in class CompositionNode