|
||||||
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'. |
private int |
m_count
Actual count for bounded value. |
private boolean |
m_unbounded
Flag for unbounded value. |
Constructor Summary | |
---|---|
private |
Count(int count,
boolean unbounded)
Internal constructor. |
Method Summary | |
---|---|
static Count |
getBoundedCount(java.lang.String value)
Deserializer method for bounded values. |
int |
getCount()
Get count value. |
static Count |
getCount(java.lang.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. |
java.lang.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
private final int m_count
private final boolean m_unbounded
Constructor Detail |
---|
private Count(int count, boolean unbounded)
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(java.lang.String value) throws JiBXException
value
- text representation
JiBXException
- on conversion errorpublic static Count getCount(java.lang.String value) throws JiBXException
value
- text representation
null
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 notpublic java.lang.String toString()
toString
in class java.lang.Object
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |