Package cruise.umple.compiler
Class ConstraintAssociation
java.lang.Object
cruise.umple.compiler.ConstraintVariable
cruise.umple.compiler.ConstraintNamed
cruise.umple.compiler.ConstraintAssociation
- All Implemented Interfaces:
java.lang.Iterable<ConstraintVariable>
public class ConstraintAssociation extends ConstraintNamed
ConstraintAttributes encapsulate the association for the constraint, this will be a leaf on the constraint tree.
-
Constructor Summary
Constructors Constructor Description ConstraintAssociation(AssociationVariable aAssociation)
-
Method Summary
Modifier and Type Method Description void
delete()
boolean
equals(java.lang.Object obj)
AssociationVariable
getAssociation()
int
getIndex()
java.lang.String
getName()
The reason d'etre of this super class, it ensures that subclasses have getName methodsboolean
getNumberOf()
java.lang.String
getType()
int
hashCode()
boolean
isNumberOf()
UmpleClassifier
retrieveClassifier()
A method for conveniently getting the contained association's container class.boolean
setAssociation(AssociationVariable aAssociation)
boolean
setIndex(int aIndex)
boolean
setNumberOf(boolean aNumberOf)
java.lang.String
toString()
-
Constructor Details
-
Method Details
-
setAssociation
-
setIndex
public boolean setIndex(int aIndex) -
setNumberOf
public boolean setNumberOf(boolean aNumberOf) -
getAssociation
-
getIndex
public int getIndex() -
getNumberOf
public boolean getNumberOf() -
isNumberOf
public boolean isNumberOf() -
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 association'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
-