Exemplo 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);
   }
 }
Exemplo n.º 3
0
 public void print(String prefix, boolean includeDerived) {
   super.print(prefix, includeDerived);
   QualifiedName associationName = this.getAssociationName();
   if (associationName != null) {
     System.out.println(prefix + " associationName:");
     associationName.print(prefix + "  ", includeDerived);
   }
 }
Exemplo n.º 4
0
 public void _deriveAll() {
   this.getIsCreation();
   this.getIsClear();
   super._deriveAll();
   QualifiedName associationName = this.getAssociationName();
   if (associationName != null) {
     associationName.deriveAll();
   }
 }
 public void _deriveAll() {
   super._deriveAll();
   Expression operand = this.getOperand();
   if (operand != null) {
     operand.deriveAll();
   }
   QualifiedName typeName = this.getTypeName();
   if (typeName != null) {
     typeName.deriveAll();
   }
 }
 public void print(String prefix, boolean includeDerived) {
   super.print(prefix, includeDerived);
   Expression operand = this.getOperand();
   if (operand != null) {
     System.out.println(prefix + " operand:");
     operand.print(prefix + "  ", includeDerived);
   }
   QualifiedName typeName = this.getTypeName();
   if (typeName != null) {
     System.out.println(prefix + " typeName:");
     typeName.print(prefix + "  ", includeDerived);
   }
 }