public class AllEnumSet
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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). |
Modifier | Constructor and Description |
---|---|
private |
AllEnumSet() |
|
AllEnumSet(EnumSet eset,
java.lang.String name)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
public AllEnumSet(EnumSet eset, java.lang.String name)
eset
- enumeration value setname
- attribute nameprivate AllEnumSet()
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
-