|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttudresden.ocl.sql.SimpleOCLEditorModel.SimpleConstraintRepresentation
A simple implementation of the ConstraintRepresentation interface.
Field Summary | |
(package private) String |
constraintData
|
(package private) String |
constraintName
The actual constraint will be stored directly into String objects. |
(package private) int |
posInModel
|
(package private) static long |
serialVersionUID
To control serialization. |
Constructor Summary | |
SimpleOCLEditorModel.SimpleConstraintRepresentation()
Creates new SimpleConstraintRepresentation. |
|
SimpleOCLEditorModel.SimpleConstraintRepresentation(ConstraintRepresentation ce)
Creates new SimpleConstraintRepresentation. |
|
SimpleOCLEditorModel.SimpleConstraintRepresentation(ConstraintRepresentation cr,
int posInModel)
Creates new SimpleConstraintRepresentation. |
|
SimpleOCLEditorModel.SimpleConstraintRepresentation(String sName,
String sData,
int posInModel)
Creates new SimpleConstraintRepresentation. |
Method Summary | |
String |
getData()
Get the constraint's body text. |
String |
getName()
Get the constraint's name. |
void |
setData(String sData,
EditingUtilities euHelper)
Set the constraint's body text. |
void |
setName(String sName,
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 |
static final long serialVersionUID
String constraintName
String constraintData
int posInModel
Constructor Detail |
public SimpleOCLEditorModel.SimpleConstraintRepresentation()
public SimpleOCLEditorModel.SimpleConstraintRepresentation(ConstraintRepresentation ce)
public SimpleOCLEditorModel.SimpleConstraintRepresentation(String sName, String sData, int posInModel)
public SimpleOCLEditorModel.SimpleConstraintRepresentation(ConstraintRepresentation cr, int posInModel)
Method Detail |
public String getData()
getData
in interface ConstraintRepresentation
public String getName()
getName
in interface ConstraintRepresentation
public void setData(String sData, EditingUtilities euHelper) throws IllegalStateException, OclParserException, OclTypeException
ConstraintRepresentation
setData
in interface ConstraintRepresentation
sData
- the new body of the constrainteuHelper
- utility that can be used to check for syntactical
correctness etc.
OclTypeException
- if the specified constraint does not adhere by
OCL type rules.
OclParserException
- if the specified constraint is not
syntactically correct.
IllegalStateException
- if the constraint is not in a state to
accept body changes.public void setName(String sName, EditingUtilities euHelper) throws IllegalStateException, IllegalArgumentException
ConstraintRepresentation
setName
in interface ConstraintRepresentation
sName
- the new name of the constrainteuHelper
- utility that can be used to check for syntactical
correctness etc.
IllegalStateException
- if the constraint is not in a state to
accept name changes.
IllegalArgumentException
- if the specified name is not a legal
name for the constraint.
|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |