|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.scribble.protocol.model.ModelObject org.scribble.protocol.model.ParameterDefinition
public class ParameterDefinition
This class represents a parameter.
Constructor Summary | |
---|---|
ParameterDefinition()
This is the default constructor. |
|
ParameterDefinition(String name)
This constructor initializes the parameter as representing a role with the supplied name. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getName()
This method returns the name of the parameter. |
Role |
getRole()
This method returns the role associated with the parameter, if the parameter represents a role, otherwise null. |
TypeReference |
getType()
This method returns the type of the parameter. |
int |
hashCode()
|
boolean |
isRole()
This method determines whether the parameter represents a role. |
void |
setName(String name)
This method sets the name of the parameter. |
void |
setType(TypeReference type)
This method sets the type of the parameter. |
String |
toString()
|
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, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ParameterDefinition()
public ParameterDefinition(String name)
name
- The nameMethod Detail |
---|
public String getName()
public void setName(String name)
name
- The namepublic TypeReference getType()
public void setType(TypeReference type)
type
- The typepublic boolean isRole()
public Role getRole()
public boolean equals(Object obj)
equals
in class Object
public int hashCode()
hashCode
in class Object
public String toString()
toString
in class Object
public void visit(Visitor visitor)
visit
in class ModelObject
visitor
- The visitor
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |