|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Represents the range of the allowable cardinality values that a set can assume.
This interface can represent the multiplicity of a pattern parameter, for example.
Use the getLowerBound
and getUpperBound
methods to retrieve
the range of the allowed cardinalities values for the set. To check if the multiplicity is unlimited, use the
isUnlimited
method.
Method Summary | |
int |
getLowerBound()
Returns the lower bound specified by this multiplicity. |
int |
getUpperBound()
Returns the upper bound specified by this multiplicity. |
boolean |
isOptional()
Indicates if the lower bound is zero or not. |
boolean |
isUnlimited()
Indicates whether this multiplicity is unlimited. |
String |
toString()
Returns a String image of this multiplicity. |
Method Detail |
public int getLowerBound()
public int getUpperBound()
public boolean isOptional()
true
if the lower bond is zero; otherwise, it returns a value of false
.public boolean isUnlimited()
Unlimited multiplicity means that the upper bound is unbounded or internally set to -1 (the same as many).
true
if the upper bound is unlimited; otherwise, it returns false
.public String toString()
String
image of this multiplicity.
|
IBM Rational Software Modeler Release 6.0 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp. and others 2004. All rights reserved.