|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 name| Method Detail |
|---|
public String getName()
public void setName(String name)
name - The namepublic boolean equals(Object obj)
equals in class Objectpublic int hashCode()
hashCode in class Objectpublic String toString()
toString in class Objectpublic void visit(Visitor visitor)
visit in class ModelObjectvisitor - The visitor
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||