|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of an individual constraint with name and data.
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. |
Method Detail |
public String getName()
public void setName(String sName, EditingUtilities euHelper) throws IllegalStateException, IllegalArgumentException
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.public String getData()
public void setData(String sData, EditingUtilities euHelper) throws IllegalStateException, OclParserException, OclTypeException
sData
- the new body 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 body changes.
OclParserException
- if the specified constraint is not
syntactically correct.
OclTypeException
- if the specified constraint does not adhere by
OCL type rules.
|
Dresden OCL Toolkit | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |