Class ConstraintLiteral

java.lang.Object
cruise.umple.compiler.ConstraintVariable
cruise.umple.compiler.ConstraintLiteral
All Implemented Interfaces:
java.lang.Iterable<ConstraintVariable>
Direct Known Subclasses:
ConstraintNumberLiteral

public class ConstraintLiteral
extends ConstraintVariable
ConstraintLiterals encapulate raw data literals, such as strings, numbers and booleans, that do not have an model variable associated. This will be a leaf in the constraint tree.
  • Constructor Summary

    Constructors 
    Constructor Description
    ConstraintLiteral​(java.lang.String aValue)  
  • Method Summary

    Modifier and Type Method Description
    void delete()  
    boolean equals​(java.lang.Object obj)  
    java.lang.String getType()  
    java.lang.String getValue()  
    int hashCode()  
    boolean setValue​(java.lang.String aValue)  
    java.lang.String toString()  

    Methods inherited from class cruise.umple.compiler.ConstraintVariable

    getValue, iterator, retrieveClassifier

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait

    Methods inherited from interface java.lang.Iterable

    forEach, spliterator
  • Constructor Details

  • Method Details

    • setValue

      public boolean setValue​(java.lang.String aValue)
    • getValue

      public java.lang.String getValue()
    • equals

      public boolean equals​(java.lang.Object obj)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object
    • delete

      public void delete()
      Overrides:
      delete in class ConstraintVariable
    • getType

      public java.lang.String getType()
      Specified by:
      getType in class ConstraintVariable
    • toString

      public java.lang.String toString()
      Overrides:
      toString in class java.lang.Object