|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object | +--xdoclet.sdk.xgg.binding.Cardinality
Holder for the fine grained cardinality of a Child.
| Field Summary | |
static int |
ONE
Constant for ONE cardinality. |
static int |
UNBOUNDED
Constant for UNBOUNDED cardinality. |
static int |
ZERO
Constant for ZERO cardinality. |
| Constructor Summary | |
Cardinality(int min,
int max)
Constructor for the Cardinality object |
|
| Method Summary | |
int |
getMax()
Gets the maximum cardinality |
int |
getMin()
Gets the minimum cardinality |
boolean |
isMany()
Return whether or not the maximum cardinality is higher than ONE |
void |
normalize()
Make sure the maximum cardinality is always greater or equal than the minimum cardinality |
void |
setMax(int max)
Sets the maximum cardinality |
void |
setMin(int min)
Sets the minimum cardinality |
String |
toString()
Implementation of the toString method |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int ONE
public static final int UNBOUNDED
public static final int ZERO
| Constructor Detail |
public Cardinality(int min,
int max)
min - Minimum cardinalitymax - Maximum cardinality| Method Detail |
public int getMax()
public int getMin()
public boolean isMany()
public void normalize()
public void setMax(int max)
max - The maximum cardinalitypublic void setMin(int min)
min - The minimum cardinalitypublic String toString()
toString in class Object
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||