Package cruise.umple.compiler
Class ConstraintAttribute
java.lang.Object
cruise.umple.compiler.ConstraintVariable
cruise.umple.compiler.ConstraintNamed
cruise.umple.compiler.ConstraintAttribute
- All Implemented Interfaces:
java.lang.Iterable<ConstraintVariable>
public class ConstraintAttribute extends ConstraintNamed
ConstraintAttributes encapsulate the attribute for the constraint, this will be a leaf on the constraint tree
-
Constructor Summary
Constructors Constructor Description ConstraintAttribute(Attribute aAttribute)
-
Method Summary
Modifier and Type Method Description void
delete()
boolean
equals(java.lang.Object obj)
Attribute
getAttribute()
int
getIndex()
java.lang.String
getName()
The reason d'etre of this super class, it ensures that subclasses have getName methodsjava.lang.String
getType()
int
hashCode()
UmpleClassifier
retrieveClassifier()
A method for conveniently getting the contained attribute's container class.boolean
setAttribute(Attribute aAttribute)
boolean
setIndex(int aIndex)
java.lang.String
toString()
-
Constructor Details
-
Method Details
-
setAttribute
-
setIndex
public boolean setIndex(int aIndex) -
getAttribute
-
getIndex
public int getIndex() -
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 classConstraintNamed
-
getName
public java.lang.String getName()Description copied from class:ConstraintNamed
The reason d'etre of this super class, it ensures that subclasses have getName methods- Specified by:
getName
in classConstraintNamed
-
retrieveClassifier
A method for conveniently getting the contained attribute's container class.- Overrides:
retrieveClassifier
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
-