|
|||||||||
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.Role
public class Role
This class represents a role.
Constructor Summary | |
---|---|
Role()
This is the default constructor. |
|
Role(Role role)
This is the copy constructor. |
|
Role(String roleName)
This constructor initializes the role with a name. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String |
getName()
This method returns the name of the role. |
int |
hashCode()
|
void |
setName(String name)
This method sets the name of the role. |
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 Role()
public Role(Role role)
role
- The rolepublic Role(String roleName)
roleName
- The role nameMethod Detail |
---|
public String getName()
public void setName(String name)
name
- The namepublic 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 |