public class Role extends ModelObject
END_COLUMN, END_LINE, END_POSITION, RESOURCE_URL, START_COLUMN, START_LINE, START_POSITION| Constructor and Description |
|---|
Role()
This is the default constructor.
|
Role(Role role)
This is the copy constructor.
|
Role(RoleDecl rd)
This is the copy constructor.
|
Role(String roleName)
This constructor initializes the role with a name.
|
| Modifier and Type | Method and Description |
|---|---|
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 |
toText(StringBuffer buf,
int level)
This method generates a text representation of the protocol component.
|
void |
visit(Visitor visitor)
This method visits the model object using the supplied
visitor.
|
derivedFrom, getModule, getParent, getParent, getProperties, indent, setParentpublic Role()
public Role(Role role)
role - The rolepublic Role(RoleDecl rd)
rd - The role declarationpublic Role(String roleName)
roleName - The role namepublic String getName()
public void setName(String name)
name - The namepublic void visit(Visitor visitor)
visit in class ModelObjectvisitor - The visitorpublic void toText(StringBuffer buf, int level)
toText in class ModelObjectbuf - The text bufferlevel - The indentation level, if relevantCopyright © 2014. All Rights Reserved.