Package org.jibx.schema.types
Class AllEnumSet
- java.lang.Object
-
- org.jibx.schema.types.AllEnumSet
-
public class AllEnumSet extends Object
Bit set based on a string enumeration list with the added option of '#all'.- Author:
- Dennis M. Sosnoski
-
-
Constructor Summary
Constructors Constructor Description AllEnumSet(org.jibx.runtime.EnumSet eset, String name)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int value)Add value to set.voidfromString(String text, ValidationContext vctx, Object obj)Deserializer method for input as value list.booleanisAll()Check '#all' value.booleanisPresent()Check if present.booleanisSet(int value)Check if value in set.voidremove(int value)Remove value from set.voidsetAll(boolean all)Set '#all' value.voidsetPresent(boolean present)Set present.StringtoString()Serializer method for output as value list.
-
-
-
Constructor Detail
-
AllEnumSet
public AllEnumSet(org.jibx.runtime.EnumSet eset, String name)Constructor.- Parameters:
eset- enumeration value setname- attribute name
-
-
Method Detail
-
isPresent
public boolean isPresent()
Check if present.- Returns:
- present
-
setPresent
public void setPresent(boolean present)
Set present.- Parameters:
present- Present
-
isAll
public boolean isAll()
Check '#all' value.- Returns:
- all
-
setAll
public void setAll(boolean all)
Set '#all' value.- Parameters:
all- value
-
add
public void add(int value)
Add value to set.- Parameters:
value- to set- See Also:
ShortBitSet.add(int)
-
isSet
public boolean isSet(int value)
Check if value in set.- Parameters:
value- in set- Returns:
trueif value in set- See Also:
ShortBitSet.isSet(int)
-
remove
public void remove(int value)
Remove value from set.- Parameters:
value- from set- See Also:
ShortBitSet.remove(int)
-
toString
public String toString()
Serializer method for output as value list.
-
fromString
public void fromString(String text, ValidationContext vctx, Object obj)
Deserializer method for input as value list.- Parameters:
text- string value, ornullif not presentvctx- Validation Contextobj- object being validated
-
-