Class AttributeAssignment.Assignment

  • Enclosing class:
    AttributeAssignment

    public static class AttributeAssignment.Assignment
    extends java.lang.Object
    Characterizes an attribute-value assignment. Please note that this instance may store the data to be applied to multiple attributes.
    Author:
    Holger Eichelberger
    • Constructor Summary

      Constructors 
      Constructor Description
      Assignment()
      Constructor for serialization.
      Assignment​(java.lang.String name, java.lang.String operation, ConstraintSyntaxTree expression)
      Creates an attribute-value assignment.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      ConstraintSyntaxTree getExpression()
      Returns the expression representing the actual value of the assignment.
      java.lang.String getName()
      Returns the name of the attribute the value shall be assigned to.
      java.lang.String getOperation()
      Returns the operation of this individual attribute assignment.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • name

        private java.lang.String name
      • operation

        private java.lang.String operation
    • Constructor Detail

      • Assignment

        Assignment()
        Constructor for serialization.
      • Assignment

        public Assignment​(java.lang.String name,
                          java.lang.String operation,
                          ConstraintSyntaxTree expression)
        Creates an attribute-value assignment.
        Parameters:
        name - the name of the attribute the value shall be assigned to
        operation - the operation to be applied (as string as this data may apply to multiple attributes)
        expression - the value expression
    • Method Detail

      • getName

        public java.lang.String getName()
        Returns the name of the attribute the value shall be assigned to.
        Returns:
        the name of the attribute
      • getExpression

        public ConstraintSyntaxTree getExpression()
        Returns the expression representing the actual value of the assignment.
        Returns:
        the value expression
      • getOperation

        public java.lang.String getOperation()
        Returns the operation of this individual attribute assignment. We cannot store the name and data in this instance as it may apply to multiple attributes.
        Returns:
        the name of the operation