|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jbind.xml.base.Range
| Field Summary | |
static IRange |
ONE
|
static IRange |
ZERO
|
static IRange |
ZERO_TO_UNBOUNDED
|
| Constructor Summary | |
Range(int aMinOccurs)
|
|
Range(int aMinOccurs,
int aMaxOccurs)
|
|
| Method Summary | |
boolean |
compareMaxOccurs(int anInt)
Checks if the maxOccurs is equal to the specified integer. |
static IRange |
createRange(int aMin,
int aMax,
boolean anIsUnbounded)
|
int |
getMaxOccurs()
Gets the maximum number of occurences. |
int |
getMinOccurs()
Gets the minimum number of occurences. |
boolean |
isOne()
Checks if the range has a minOccurs and a maxOccurs of 1. |
boolean |
isUnbounded()
Checks if the range is unbounded, i.e. |
boolean |
isZero()
Checks if the range has minOccurs and a maxOccurs of 0. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final IRange ZERO
public static final IRange ONE
public static final IRange ZERO_TO_UNBOUNDED
| Constructor Detail |
public Range(int aMinOccurs,
int aMaxOccurs)
public Range(int aMinOccurs)
| Method Detail |
public static IRange createRange(int aMin,
int aMax,
boolean anIsUnbounded)
public boolean isUnbounded()
IRange
isUnbounded in interface IRangetrue iff the range is unbounded.public boolean compareMaxOccurs(int anInt)
IRangegetMaxOccurs
method directly because that method must only be called if the range is not
unbounded.
compareMaxOccurs in interface IRangetrue iff the maxOccurs is equal to the specified
integer.public int getMinOccurs()
IRange
getMinOccurs in interface IRangepublic int getMaxOccurs()
IRange
getMaxOccurs in interface IRangepublic boolean isZero()
IRange
isZero in interface IRangetrue iff minOccurs and maxOccurs are 0.public boolean isOne()
IRange
isOne in interface IRangetrue iff the minOccurs and the maxOccurs are 1.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||