Ejemplo n.º 1
0
 public void checkConstraints(Collection<ConstraintViolation> violations) {
   super.checkConstraints(violations);
   if (!this.linkOperationExpressionIsCreationDerivation()) {
     violations.add(new ConstraintViolation("linkOperationExpressionIsCreationDerivation", this));
   }
   if (!this.linkOperationExpressionIsClearDerivation()) {
     violations.add(new ConstraintViolation("linkOperationExpressionIsClearDerivation", this));
   }
   if (!this.linkOperationExpressionReferentDerivation()) {
     violations.add(new ConstraintViolation("linkOperationExpressionReferentDerivation", this));
   }
   if (!this.linkOperationExpressionFeatureDerivation()) {
     violations.add(new ConstraintViolation("linkOperationExpressionFeatureDerivation", this));
   }
   if (!this.linkOperationExpressionAssociationReference()) {
     violations.add(new ConstraintViolation("linkOperationExpressionAssociationReference", this));
   }
   if (!this.linkOperationExpressionArgumentCompatibility()) {
     violations.add(new ConstraintViolation("linkOperationExpressionArgumentCompatibility", this));
   }
   QualifiedName associationName = this.getAssociationName();
   if (associationName != null) {
     associationName.checkConstraints(violations);
   }
 }
 public void checkConstraints(Collection<ConstraintViolation> violations) {
   super.checkConstraints(violations);
   if (!this.castExpressionTypeDerivation()) {
     violations.add(new ConstraintViolation("castExpressionTypeDerivation", this));
   }
   if (!this.castExpressionLowerDerivation()) {
     violations.add(new ConstraintViolation("castExpressionLowerDerivation", this));
   }
   if (!this.castExpressionUpperDerivation()) {
     violations.add(new ConstraintViolation("castExpressionUpperDerivation", this));
   }
   if (!this.castExpressionTypeResolution()) {
     violations.add(new ConstraintViolation("castExpressionTypeResolution", this));
   }
   if (!this.castExpressionAssignmentsBefore()) {
     violations.add(new ConstraintViolation("castExpressionAssignmentsBefore", this));
   }
   Expression operand = this.getOperand();
   if (operand != null) {
     operand.checkConstraints(violations);
   }
   QualifiedName typeName = this.getTypeName();
   if (typeName != null) {
     typeName.checkConstraints(violations);
   }
 }