org.scribble.protocol.model
Class Parameter

java.lang.Object
  extended by org.scribble.protocol.model.ModelObject
      extended by org.scribble.protocol.model.Parameter

public class Parameter
extends ModelObject

This class represents the binding between a declaration and the name of a declaration in a composed definition.


Constructor Summary
Parameter()
          The default constructor.
Parameter(Parameter p)
          This is the copy constructor.
Parameter(String localName)
          This constructor initializes the declaration (local name) and bound name.
 
Method Summary
 String getName()
          This method returns the local name.
 void setName(String localName)
          This method sets the local name.
 void visit(Visitor visitor)
          This method visits the model object using the supplied visitor.
 
Methods inherited from class org.scribble.protocol.model.ModelObject
derivedFrom, getAnnotations, getModel, getParent, getProperties, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Parameter

public Parameter()
The default constructor.


Parameter

public Parameter(String localName)
This constructor initializes the declaration (local name) and bound name.

Parameters:
localName - The local name

Parameter

public Parameter(Parameter p)
This is the copy constructor.

Parameters:
p - The parameter to copy
Method Detail

setName

public void setName(String localName)
This method sets the local name.

Parameters:
localName - The local name

getName

public String getName()
This method returns the local name.

Returns:
The local name

visit

public void visit(Visitor visitor)
This method visits the model object using the supplied visitor.

Specified by:
visit in class ModelObject
Parameters:
visitor - The visitor


Copyright © 2008-Present Scribble.org. All Rights Reserved.