|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 IRange
true
iff the range is unbounded.public boolean compareMaxOccurs(int anInt)
IRange
getMaxOccurs
method directly because that method must only be called if the range is not
unbounded.
compareMaxOccurs
in interface IRange
true
iff the maxOccurs is equal to the specified
integer.public int getMinOccurs()
IRange
getMinOccurs
in interface IRange
public int getMaxOccurs()
IRange
getMaxOccurs
in interface IRange
public boolean isZero()
IRange
isZero
in interface IRange
true
iff minOccurs and maxOccurs are 0.public boolean isOne()
IRange
isOne
in interface IRange
true
iff the minOccurs and the maxOccurs are 1.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |