org.scribble.protocol.model
Class Introduces

java.lang.Object
  extended by org.scribble.protocol.model.ModelObject
      extended by org.scribble.protocol.model.Activity
          extended by org.scribble.protocol.model.Introduces

public class Introduces
extends Activity

This class represents the list of roles introduced by an existing role within a Scribble definition.


Constructor Summary
Introduces()
          The default constructor.
Introduces(Introduces i)
          The copy constructor.
 
Method Summary
 Role getIntroducedRole(String name)
          This method returns the role associated with the supplied name.
 List<Role> getIntroducedRoles()
          This method returns the list of roles.
 Role getIntroducer()
          This method returns the introducing role.
 void setIntroducer(Role role)
          This method sets the introducing 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.Activity
getEnclosingProtocol
 
Methods inherited from class org.scribble.protocol.model.ModelObject
derivedFrom, getAnnotations, getModel, getParent, getProperties, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Introduces

public Introduces()
The default constructor.


Introduces

public Introduces(Introduces i)
The copy constructor.

Parameters:
i - The introduces construct to copy
Method Detail

getIntroducer

public Role getIntroducer()
This method returns the introducing role.

Returns:
The introducer

setIntroducer

public void setIntroducer(Role role)
This method sets the introducing role.

Parameters:
role - The introducer

getIntroducedRoles

public List<Role> getIntroducedRoles()
This method returns the list of roles.

Returns:
The list of roles

getIntroducedRole

public Role getIntroducedRole(String name)
This method returns the role associated with the supplied name.

Parameters:
name - The role name
Returns:
The role, or null if not found

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

toString

public String toString()
Overrides:
toString in class Object


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