org.argouml.uml.ui
Class TabConstraints.ConstraintModel.CR

java.lang.Object
  extended byorg.argouml.uml.ui.TabConstraints.ConstraintModel.CR
All Implemented Interfaces:
tudresden.ocl.gui.ConstraintRepresentation
Enclosing class:
TabConstraints.ConstraintModel

private class TabConstraints.ConstraintModel.CR
extends java.lang.Object
implements tudresden.ocl.gui.ConstraintRepresentation


Field Summary
private  java.lang.Object m_mcConstraint
          The constraint being represented.
private  int m_nIdx
          The constraint's index in the list of constraints.
 
Constructor Summary
TabConstraints.ConstraintModel.CR(int nIdx)
           
TabConstraints.ConstraintModel.CR(java.lang.Object mcConstraint, int nIdx)
           
 
Method Summary
 java.lang.String getData()
          Get the constraint's body.
 java.lang.String getName()
          Get the name of the constraint.
 void setData(java.lang.String sData, tudresden.ocl.gui.EditingUtilities euHelper)
          Set the constraint's body text.
 void setName(java.lang.String sName, tudresden.ocl.gui.EditingUtilities euHelper)
          Set the constraint's name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

m_mcConstraint

private java.lang.Object m_mcConstraint
The constraint being represented.


m_nIdx

private int m_nIdx
The constraint's index in the list of constraints. Necessary only for new constraints, where m_mcConstraint is still null.

Constructor Detail

TabConstraints.ConstraintModel.CR

public TabConstraints.ConstraintModel.CR(java.lang.Object mcConstraint,
                                         int nIdx)

TabConstraints.ConstraintModel.CR

public TabConstraints.ConstraintModel.CR(int nIdx)
Method Detail

getName

public java.lang.String getName()
Get the name of the constraint.

Specified by:
getName in interface tudresden.ocl.gui.ConstraintRepresentation

getData

public java.lang.String getData()
Get the constraint's body.

Specified by:
getData in interface tudresden.ocl.gui.ConstraintRepresentation

setData

public void setData(java.lang.String sData,
                    tudresden.ocl.gui.EditingUtilities euHelper)
             throws tudresden.ocl.parser.OclParserException,
                    tudresden.ocl.check.OclTypeException
Set the constraint's body text. For the exceptions the detailed message must be human readable.

Specified by:
setData in interface tudresden.ocl.gui.ConstraintRepresentation
Parameters:
sData - the new body of the constraint
Throws:
java.lang.IllegalStateException - if the constraint is not in a state to accept body changes.
tudresden.ocl.parser.OclParserException - if the specified constraint is not syntactically correct.
tudresden.ocl.check.OclTypeException - if the specified constraint does not adhere by OCL type rules.

setName

public void setName(java.lang.String sName,
                    tudresden.ocl.gui.EditingUtilities euHelper)
Set the constraint's name.

Specified by:
setName in interface tudresden.ocl.gui.ConstraintRepresentation


ArgoUML © 1996-2004 (20040316)ArgoUML HomepageArgoUML Developers' pageArgoUML Cookbook