|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbe.ac.vub.cocompose.lang.datatypes.Multiplicity
Multiplicity constraint interface.
Field Summary | |
static int |
MANY
Represents many elements. |
Constructor Summary | |
Multiplicity()
Creates a Multiplicity. |
|
Multiplicity(Multiplicity source)
Creates a Multiplicity from the given source. |
Method Summary | |
void |
accept(ModelVisitor modelVisitor)
Accepts a visitor. |
void |
acceptSuper(ModelVisitor modelVisitor)
Invokes superclass accept(). |
int |
getLower()
Gets the lower bound. |
int |
getUpper()
Gets the upper bound. |
void |
setLower(int lower)
Sets the lower bound. |
void |
setUpper(int upper)
Sets the upper bound. |
String |
toString()
Returns [lowerbound..upperbound]. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int MANY
Constructor Detail |
public Multiplicity()
public Multiplicity(Multiplicity source)
source
- - the source multiplicity to copy the values from.Method Detail |
public int getLower()
public void setLower(int lower)
lower
- - the lower bound.public int getUpper()
public void setUpper(int upper)
upper
- - the upper bound.public void accept(ModelVisitor modelVisitor) throws ModelElementException
accept
in interface VisitedElement
modelVisitor
- The visitor to accept.
ModelElementException
public void acceptSuper(ModelVisitor modelVisitor) throws ModelElementException
modelVisitor
- The visitor to accept.
ModelElementException
accept(ModelVisitor)
public String toString()
Object.toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |