Пример #1
0
        public OclConstraint   createInvariantConstraint(string source, string name, CoreClassifier contextualClassifier, ExpressionInOcl initialValue)
        {
            OclInvariantConstraint constraint = new OclInvariantConstraintImpl();

            constraint.setSource(source);
            constraint.setContextualClassifier(contextualClassifier);
            constraint.setExpression(initialValue);
            constraint.setName(name);

            contextualClassifier.addInvariantConstraint(name, constraint);

            return(constraint);
        }