Package cruise.umple.compiler
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
Methods inherited from class cruise.umple.compiler.ConstraintVariable
getValue, iterator, retrieveClassifier
-
Constructor Details
-
ConstraintLiteral
public ConstraintLiteral(java.lang.String aValue)
-
-
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 classjava.lang.Object
-
hashCode
public int hashCode()- Overrides:
hashCode
in classjava.lang.Object
-
delete
public void delete()- Overrides:
delete
in classConstraintVariable
-
getType
public java.lang.String getType()- Specified by:
getType
in classConstraintVariable
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-