public override Object Clone() { OclAttributeInitConstraintImpl theClone = (OclAttributeInitConstraintImpl)base.Clone(); theClone.initializedAttribute = initializedAttribute; return(theClone); }
public OclConstraint createAttributeInitConstraint(string source, CoreClassifier contextualClassifier, CoreAttribute attribute, ExpressionInOcl initialValue) { OclAttributeInitConstraint constraint = new OclAttributeInitConstraintImpl(); constraint.setSource(source); constraint.setContextualClassifier(contextualClassifier); constraint.setInitializedAttribute(attribute); constraint.setExpression(initialValue); contextualClassifier.addInitConstraint(attribute.getName(), constraint); attribute.setInitialValueExpression(initialValue); // cachedObjects.add(constraint); return(constraint); }