public class Count extends Object
| Modifier and Type | Field and Description |
|---|---|
static Count |
COUNT_ONE
Predefined count of '1'.
|
static Count |
COUNT_UNBOUNDED
Predefined count of 'unbounded'.
|
static Count |
COUNT_ZERO
Predefined count of '0'.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static final Count COUNT_ZERO
public static final Count COUNT_ONE
public static final Count COUNT_UNBOUNDED
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 representationJiBXException - on conversion errorpublic static Count getCount(String value) throws JiBXException
value - text representationnull if none)JiBXException - on conversion errorpublic static boolean isCountEqual(int value,
Count count)
null, the value is
taken as '1'.value - count - true if value equal, false if notCopyright © 2005-2013 jibx.org. All Rights Reserved.