de.interactive_instruments.ShapeChange.Model.Generic
Class GenericOclConstraint

java.lang.Object
  extended by de.interactive_instruments.ShapeChange.Model.OclConstraintImpl
      extended by de.interactive_instruments.ShapeChange.Model.Generic.GenericOclConstraint
All Implemented Interfaces:
Constraint, OclConstraint

public class GenericOclConstraint
extends OclConstraintImpl

Author:
echterhoff

Nested Class Summary
 
Nested classes/interfaces inherited from interface de.interactive_instruments.ShapeChange.Model.OclConstraint
OclConstraint.ConditionType
 
Nested classes/interfaces inherited from interface de.interactive_instruments.ShapeChange.Model.Constraint
Constraint.ModelElmtContextType
 
Field Summary
 
Fields inherited from class de.interactive_instruments.ShapeChange.Model.OclConstraintImpl
comments, conditionType, constraintName, constraintStatus, constraintText, contextClass, contextModelElmt, contextModelElmtType, syntaxTree
 
Constructor Summary
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(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).
 
Method Summary
 void setContext(ClassInfo contextClass, Info contextModelElement)
           
 
Methods inherited from class de.interactive_instruments.ShapeChange.Model.OclConstraintImpl
comments, conditionType, contextClass, contextModelElmt, contextModelElmtType, name, status, syntaxTree, text
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GenericOclConstraint

public 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).

Parameters:
ci - context of the constraint
constr - original constraint from which to create a copy

GenericOclConstraint

public 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).

Parameters:
pi - context model element of the constraint (its inClass() defines the context class)
constr - original constraint from which to create a copy
Method Detail

setContext

public void setContext(ClassInfo contextClass,
                       Info contextModelElement)


Copyright © 2015. All rights reserved.