org.scribble.protocol.model
Class ProtocolReference

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

public class ProtocolReference
extends ModelObject

This class represents a protocol reference.


Constructor Summary
ProtocolReference()
          This is the default constructor for the protocol reference.
ProtocolReference(ProtocolReference ref)
          This is the copy constructor for the model reference.
ProtocolReference(String name)
          This is the constructor for the protocol reference.
 
Method Summary
 String getName()
          This method returns the name associated with the model reference.
 Role getRole()
          This method returns the located role.
 void setName(String name)
          This method sets the name associated with the model reference.
 void setRole(Role role)
          This method sets the located role.
 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, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProtocolReference

public ProtocolReference()
This is the default constructor for the protocol reference.


ProtocolReference

public ProtocolReference(String name)
This is the constructor for the protocol reference.

Parameters:
name - The name

ProtocolReference

public ProtocolReference(ProtocolReference ref)
This is the copy constructor for the model reference.

Parameters:
ref - The reference to copy
Method Detail

getName

public String getName()
This method returns the name associated with the model reference.

Returns:
The name

setName

public void setName(String name)
This method sets the name associated with the model reference.

Parameters:
name - The name

setRole

public void setRole(Role role)
This method sets the located role.

Parameters:
role - The role

getRole

public Role getRole()
This method returns the located role.

Returns:
The role

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.