de.interactive_instruments.ShapeChange.Model
Interface Constraint

All Known Subinterfaces:
OclConstraint, TextConstraint
All Known Implementing Classes:
GenericOclConstraint, GenericTextConstraint, OclConstraintEA, OclConstraintGSIP, OclConstraintImpl, OclConstraintXmi10, TextConstraintEA, TextConstraintGSIP, TextConstraintImpl

public interface Constraint

The Constraint interface stands for any type of constraints, which may be attached to UML metamodel objects. A Constraint is supposed to have a name, a status and a textual representation.


Nested Class Summary
static class Constraint.ModelElmtContextType
          Type for possible model elements the OCL constraint applies to
 
Method Summary
 Info contextModelElmt()
          Inquire context model element, i.e. the parent.
 Constraint.ModelElmtContextType contextModelElmtType()
          Inquire model element context type.
 String name()
          Name of the constraint
 String status()
          Status of the constraint.
 String text()
          The textual representation of the constraint.
 

Method Detail

name

String name()
Name of the constraint


status

String status()
Status of the constraint. Note: While this is experimental software the 'status' of a constraint is meant to be some string in conspiracy between the model source and the code generator. This may be changed to an enum later, when some practice is achieved. The 'status' is supposed to express some state of refinedness, validity or purpose of the constraint.


text

String text()
The textual representation of the constraint.


contextModelElmt

Info contextModelElmt()
Inquire context model element, i.e. the parent. Currently this in one of ClassInfo or PropertyInfo.


contextModelElmtType

Constraint.ModelElmtContextType contextModelElmtType()
Inquire model element context type.



Copyright © 2015. All rights reserved.