|
||||||
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'.
Field Summary | |
---|---|
private boolean |
m_all
Flag for '#all' value. |
private ShortBitSet |
m_bits
Bit set for values from enumeration. |
private EnumSet |
m_enum
Base enumeration. |
private java.lang.String |
m_name
Attribute name. |
private boolean |
m_present
Flag for present (if false , other values ignored). |
Constructor Summary | |
---|---|
private |
AllEnumSet()
|
|
AllEnumSet(EnumSet eset,
java.lang.String name)
Constructor. |
Method Summary | |
---|---|
void |
add(int value)
Add value to set. |
private void |
addName(java.lang.String name,
ValidationContext vctx,
java.lang.Object obj)
Process name from text list. |
private void |
fromString(java.lang.String text,
IUnmarshallingContext ictx)
Deserializer method for unmarshalling input as value list. |
void |
fromString(java.lang.String text,
ValidationContext vctx,
java.lang.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. |
java.lang.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 |
Field Detail |
---|
private final EnumSet m_enum
private final java.lang.String m_name
private final ShortBitSet m_bits
private boolean m_present
false
, other values ignored).
private boolean m_all
Constructor Detail |
---|
public AllEnumSet(EnumSet eset, java.lang.String name)
eset
- enumeration value setname
- attribute nameprivate AllEnumSet()
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 java.lang.String toString()
toString
in class java.lang.Object
null
if not presentpublic void fromString(java.lang.String text, ValidationContext vctx, java.lang.Object obj)
text
- string value, or null
if not presentvctx
- obj
- object being validatedprivate void fromString(java.lang.String text, IUnmarshallingContext ictx)
text
- string value, or null
if not presentictx
- private void addName(java.lang.String name, ValidationContext vctx, java.lang.Object obj)
name
- vctx
- obj
-
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |