public class RoleDecl extends ModelObject
END_COLUMN, END_LINE, END_POSITION, RESOURCE_URL, START_COLUMN, START_LINE, START_POSITION| Constructor and Description |
|---|
RoleDecl()
This is the default constructor.
|
RoleDecl(RoleDecl role)
This is the copy constructor.
|
RoleDecl(String roleName)
This constructor initializes the role with a name.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getAlias()
This method returns the alias of the role.
|
String |
getDeclarationName()
This method returns the declaration name for the role
declaration.
|
String |
getName()
This method returns the name of the role.
|
int |
hashCode() |
boolean |
isRole(Role role)
Determines whether the role declaration is associated with the
supplied role.
|
void |
setAlias(String alias)
This method sets the alias of the role.
|
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 RoleDecl()
public RoleDecl(RoleDecl role)
role - The rolepublic RoleDecl(String roleName)
roleName - The role namepublic String getName()
public void setName(String name)
name - The namepublic String getAlias()
public void setAlias(String alias)
alias - The aliaspublic boolean isRole(Role role)
role - The rolepublic String getDeclarationName()
public 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.