|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.schema.types.Count
public class Count
Repetition count in a schema definition.
| Field Summary | |
|---|---|
static Count |
COUNT_ONE
Predefined count of '1'. |
static Count |
COUNT_UNBOUNDED
Predefined count of 'unbounded'. |
static Count |
COUNT_ZERO
Predefined count of '0'. |
| Method Summary | |
|---|---|
static Count |
getBoundedCount(String value)
Deserializer method for bounded values. |
int |
getCount()
Get count value. |
static Count |
getCount(String value)
Deserializer method. |
static boolean |
isCountEqual(int value,
Count count)
Check if a count attribute is equal to a specified value. |
boolean |
isEqual(int value)
Check for count equal to a particular value. |
boolean |
isGreaterThan(int value)
Check for count greater than a particular value. |
boolean |
isUnbounded()
Check for unbounded count. |
String |
toString()
Conversion to text form. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final Count COUNT_ZERO
public static final Count COUNT_ONE
public static final Count COUNT_UNBOUNDED
| Method Detail |
|---|
public int getCount()
isUnbounded() first.
public boolean isUnbounded()
public boolean isEqual(int value)
value -
public boolean isGreaterThan(int value)
value -
public static Count getBoundedCount(String value)
throws JiBXException
value - text representation
JiBXException - on conversion error
public static Count getCount(String value)
throws JiBXException
value - text representation
null if none)
JiBXException - on conversion error
public static boolean isCountEqual(int value,
Count count)
null, the value is
taken as '1'.
value - count -
true if value equal, false if notpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||