de.interactive_instruments.ShapeChange.Model
Class TextConstraintImpl

java.lang.Object
  extended by de.interactive_instruments.ShapeChange.Model.TextConstraintImpl
All Implemented Interfaces:
Constraint, TextConstraint
Direct Known Subclasses:
GenericTextConstraint, TextConstraintEA, TextConstraintGSIP

public class TextConstraintImpl
extends Object
implements TextConstraint

The TextConstraintImpl class is the common root of all TextConstraint interface implementations of the supported input models.


Nested Class Summary
 
Nested classes/interfaces inherited from interface de.interactive_instruments.ShapeChange.Model.Constraint
Constraint.ModelElmtContextType
 
Field Summary
protected  String constraintName
          Name of the constraint
protected  String constraintStatus
          Constraint status.
protected  String constraintText
          The textual representation of the constraint
protected  String constraintType
          Type of the text-based constraint
protected  Info contextModelElmt
          Model Element Context - class, attribute, operation, etc.
protected  Constraint.ModelElmtContextType contextModelElmtType
          Model Element Context Type - the nature of the model context the OCL expression is specified in.
 
Constructor Summary
TextConstraintImpl()
           
 
Method Summary
 Info contextModelElmt()
          Inquire the model element context.
 Constraint.ModelElmtContextType contextModelElmtType()
          Find out about the type of the context model element.
 String name()
          Inquire name of the constraint.
 String status()
          Inquire status of the constraint.
 String text()
          Inquire the textual representation of the constraint.
 String type()
          Inquire type of the constraint.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contextModelElmt

protected Info contextModelElmt
Model Element Context - class, attribute, operation, etc. This has to be downcast to the proper xxxInfo as specified by contextModelElmtType.


contextModelElmtType

protected Constraint.ModelElmtContextType contextModelElmtType
Model Element Context Type - the nature of the model context the OCL expression is specified in.


constraintType

protected String constraintType
Type of the text-based constraint


constraintName

protected String constraintName
Name of the constraint


constraintText

protected String constraintText
The textual representation of the constraint


constraintStatus

protected String constraintStatus
Constraint status. A string reflecting the status of the constraint in conspiracy between the model source and the code generator.

Constructor Detail

TextConstraintImpl

public TextConstraintImpl()
Method Detail

type

public String type()
Inquire type of the constraint.

Specified by:
type in interface TextConstraint

name

public String name()
Inquire name of the constraint.

Specified by:
name in interface Constraint

status

public String status()
Inquire status of the constraint.

Specified by:
status in interface Constraint

text

public String text()
Inquire the textual representation of the constraint. For text-based constraints the textual representation is supposed to be the only valid representation.

Specified by:
text in interface Constraint

contextModelElmt

public Info contextModelElmt()
Inquire the model element context. Note the result must be downcast according to the value of the model element context type.

Specified by:
contextModelElmt in interface Constraint

contextModelElmtType

public Constraint.ModelElmtContextType contextModelElmtType()
Find out about the type of the context model element. Currently only CLASS and ATTRIBUTE are supported.

Specified by:
contextModelElmtType in interface Constraint


Copyright © 2015. All rights reserved.