Class Constraint
- java.lang.Object
-
- net.ssehub.easy.integration.common.impl.Constraint
-
- All Implemented Interfaces:
IConstraint,IModelElement
public class Constraint extends java.lang.Object implements IConstraint
Implements the constraint (delegate).- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private Constraintconstraint
-
Constructor Summary
Constructors Constructor Description Constraint(java.lang.String constraint, Project project)Creates a new constraint instances, i.e.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConstraintgetInstance()Returns the related IVML instance.java.lang.StringgetName()Returns the name of the constraint.java.lang.StringtoString()Returns the textual representation of this constraint.
-
-
-
Field Detail
-
constraint
private Constraint constraint
-
-
Constructor Detail
-
Constraint
public Constraint(java.lang.String constraint, Project project) throws ModelExceptionCreates a new constraint instances, i.e. parses the input.- Parameters:
constraint- the constraint in textual IVML formproject- the context for the semantic analysis- Throws:
ModelException- in case of any syntactial or semantical problems
-
-
Method Detail
-
getName
public java.lang.String getName()
Description copied from interface:IConstraintReturns the name of the constraint.- Specified by:
getNamein interfaceIConstraint- Returns:
- the name, empty in case of unnamed constraints
-
toString
public java.lang.String toString()
Description copied from interface:IConstraintReturns the textual representation of this constraint.- Specified by:
toStringin interfaceIConstraint- Overrides:
toStringin classjava.lang.Object- Returns:
- the textual representation in IVML syntax
-
getInstance
public Constraint getInstance()
Returns the related IVML instance.- Returns:
- the related IVML instance
-
-