|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.schema.types.AllEnumSet
public class AllEnumSet
Bit set based on a string enumeration list with the added option of '#all'.
| Constructor Summary | |
|---|---|
AllEnumSet(EnumSet eset,
String name)
Constructor. |
|
| Method Summary | |
|---|---|
void |
add(int value)
Add value to set. |
void |
fromString(String text,
ValidationContext vctx,
Object obj)
Deserializer method for input as value list. |
boolean |
isAll()
Check '#all' value. |
boolean |
isPresent()
Check if present. |
boolean |
isSet(int value)
Check if value in set. |
void |
remove(int value)
Remove value from set. |
void |
setAll(boolean all)
Set '#all' value. |
void |
setPresent(boolean present)
Set present. |
String |
toString()
Serializer method for output as value list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AllEnumSet(EnumSet eset,
String name)
eset - enumeration value setname - attribute name| Method Detail |
|---|
public boolean isPresent()
public void setPresent(boolean present)
present - public boolean isAll()
public void setAll(boolean all)
all - public void add(int value)
value - ShortBitSet.add(int)public boolean isSet(int value)
value -
true if value in setShortBitSet.isSet(int)public void remove(int value)
value - ShortBitSet.remove(int)public String toString()
toString in class Objectnull if not present
public void fromString(String text,
ValidationContext vctx,
Object obj)
text - string value, or null if not presentvctx - obj - object being validated
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||