public class GenericOclConstraint extends OclConstraintImpl
OclConstraint.ConditionType
Constraint.ModelElmtContextType
comments, conditionType, constraintName, constraintStatus, constraintText, contextClass, contextModelElmt, contextModelElmtType, syntaxTree
Constructor and Description |
---|
GenericOclConstraint() |
GenericOclConstraint(GenericClassInfo ci,
OclConstraint constr)
Creates a new OCL constraint from the given constraint (with same
context, but having parsed the OCL anew from the text of the given
constraint).
|
GenericOclConstraint(GenericClassInfo ci,
String constrName,
String constrStatus,
String constrText)
Creates a new OCL constraint with the given class as context, and OCL
parsed from the given text.
|
GenericOclConstraint(GenericPropertyInfo pi,
OclConstraint constr)
Creates a new OCL constraint from the given constraint (with same
context, but having parsed the OCL anew from the text of the given
constraint).
|
GenericOclConstraint(PropertyInfo pi,
String constrName,
String constrStatus,
String constrText)
Creates a new OCL constraint with the given property as context, and OCL
parsed from the given text.
|
Modifier and Type | Method and Description |
---|---|
void |
setContext(ClassInfo contextClass,
Info contextModelElement) |
void |
setContextModelElmt(Info contextModelElmt) |
void |
setContextModelElmtType(Constraint.ModelElmtContextType contextModelElmtType) |
void |
setName(String name) |
void |
setStatus(String status) |
void |
setText(String text) |
comments, conditionType, contextClass, contextModelElmt, contextModelElmtType, name, status, syntaxTree, text
public GenericOclConstraint()
public GenericOclConstraint(GenericClassInfo ci, OclConstraint constr)
ci
- context of the constraintconstr
- original constraint from which to create a copypublic GenericOclConstraint(GenericClassInfo ci, String constrName, String constrStatus, String constrText)
ci
- context of the constraintconstrName
- constrStatus
- see Constraint.status()
constrText
- OCL to be parsedpublic GenericOclConstraint(GenericPropertyInfo pi, OclConstraint constr)
pi
- context model element of the constraint (its inClass() defines
the context class)constr
- original constraint from which to create a copypublic GenericOclConstraint(PropertyInfo pi, String constrName, String constrStatus, String constrText)
pi
- context of the constraintconstrName
- constrStatus
- see Constraint.status()
constrText
- OCL to be parsedpublic void setContextModelElmt(Info contextModelElmt)
public void setContextModelElmtType(Constraint.ModelElmtContextType contextModelElmtType)
public void setName(String name)
public void setStatus(String status)
public void setText(String text)
Copyright © 2017. All rights reserved.