EDU.utwente.CoCompose.translate
Class ImplementationRolePart

java.lang.Object
  |
  +--EDU.utwente.CoCompose.translate.ImplementationRolePart

public class ImplementationRolePart
extends java.lang.Object

Represents a role part / concept form combination for an implementation pattern.

Version:
0.1.10, 22 July 2003
Author:
Dennis Wagelaar

Constructor Summary
ImplementationRolePart()
          Constructs an ImplementationRolePart.
 
Method Summary
 void accept(ModelVisitor visitor)
          Accepts a ModelVisitor.
 void addConstraint(java.lang.String rolename, java.lang.String notEqualTo)
          Adds a constraint for this role part.
 Composite getComposite()
          Retrieves the composite the implementation generator implements.
 java.lang.String getConceptForm()
          Gets the concept form for this role part.
 java.util.Enumeration getConstraintRoles()
          Retrieves the role names for which constraints exist.
 java.util.Enumeration getConstraints(java.lang.String rolename)
          Gets all constraints based upon the given role.
 ImplementationGenerator getImplementationGenerator()
           
 Model getModel()
          Retrieves the model context.
 java.lang.String getRoleName()
          Gets the role name for this role part.
 void setConceptForm(java.lang.String conceptform)
          Sets the concept form for this role part.
 void setImplementationGenerator(ImplementationGenerator implementation)
           
 void setRoleName(java.lang.String rolename)
          Sets the role name for this role part.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImplementationRolePart

public ImplementationRolePart()
Constructs an ImplementationRolePart.
Method Detail

getImplementationGenerator

public ImplementationGenerator getImplementationGenerator()

setImplementationGenerator

public void setImplementationGenerator(ImplementationGenerator implementation)

getRoleName

public java.lang.String getRoleName()
Gets the role name for this role part.
Returns:
The role name.

setRoleName

public void setRoleName(java.lang.String rolename)
Sets the role name for this role part.
Parameters:
rolename - The role name.

getConceptForm

public java.lang.String getConceptForm()
Gets the concept form for this role part.
Returns:
The concept form.

setConceptForm

public void setConceptForm(java.lang.String conceptform)
Sets the concept form for this role part.
Parameters:
conceptform - The concept form.

addConstraint

public void addConstraint(java.lang.String rolename,
                          java.lang.String notEqualTo)
Adds a constraint for this role part.
Parameters:
rolename - The name of the role upon which the constraint is based.
notEqualTo - The concept form of the role indicated by the role name.

getConstraints

public java.util.Enumeration getConstraints(java.lang.String rolename)
Gets all constraints based upon the given role.
Parameters:
rolename - The name of the role on which the constraints are based.
Returns:
The enumeration of required concept forms for the given role.

getConstraintRoles

public java.util.Enumeration getConstraintRoles()
Retrieves the role names for which constraints exist.
Returns:
An enumeration of role names.

getComposite

public Composite getComposite()
Retrieves the composite the implementation generator implements.
Returns:
The composite.

getModel

public Model getModel()
Retrieves the model context.
Returns:
The model.

accept

public void accept(ModelVisitor visitor)
            throws CoComposeException
Accepts a ModelVisitor.
Parameters:
visitor - The visitor object to accept.
Throws:
CoComposeException - if visiting operation failed.