org.scribble.protocol.model
Class Role

java.lang.Object
  extended by org.scribble.protocol.model.ModelObject
      extended by org.scribble.protocol.model.Role

public class Role
extends ModelObject

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

Role

public Role()
This is the default constructor.


Role

public Role(Role role)
This is the copy constructor.

Parameters:
role - The role

Role

public Role(String roleName)
This constructor initializes the role with a name.

Parameters:
roleName - The role name
Method Detail

getName

public String getName()
This method returns the name of the role.

Returns:
The name

setName

public void setName(String name)
This method sets the name of the role.

Parameters:
name - The name

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object

visit

public void visit(Visitor visitor)
This method visits the model object using the supplied visitor.

Specified by:
visit in class ModelObject
Parameters:
visitor - The visitor


Copyright © 2008-Present Scribble.org. All Rights Reserved.