public abstract class ConfBits extends ConfValue implements Cloneable, Serializable, Comparable<ConfBits>
J_BINARY, J_BIT32, J_BIT64, J_BITBIG, J_BOOL, J_BUF, J_CDBBEGIN, J_DATE, J_DATETIME, J_DECIMAL64, J_DEFAULT, J_DOUBLE, J_DQUAD, J_DURATION, J_ENUMERATION, J_HEXSTR, J_IDENTITYREF, J_INSTANCE_IDENTIFIER, J_INT16, J_INT32, J_INT64, J_INT8, J_IPV4, J_IPV4_AND_PLEN, J_IPV4PREFIX, J_IPV6, J_IPV6_AND_PLEN, J_IPV6PREFIX, J_LIST, J_NOEXISTS, J_OBJECTREF, J_OID, J_PTR, J_QNAME, J_STR, J_SYMBOL, J_TIME, J_UINT16, J_UINT32, J_UINT64, J_UINT8, J_UNION, J_XMLBEGIN, J_XMLBEGINDEL, J_XMLEND, J_XMLMOVEAFTER, J_XMLMOVEFIRST, J_XMLTAG
Modifier and Type | Method and Description |
---|---|
byte[] |
byteArrayValue()
Get byte array representing this bitset in little endian order.
|
void |
clearBit(long pos)
Clear bit at position pos in bitset.
|
int |
compareTo(ConfBits o)
CompareTo method
|
boolean |
equals(Object o)
Equals method
|
static String |
getBitNamesByValue(ConfPath path,
ConfBits bits)
Get a string of bitnames like bitnames like "bit1 bit2 ...", i.e
a space separated list of bitnames from a ConfBits value.
|
static String |
getBitNamesByValue(String path,
ConfBits bits)
Like
ConfBits.getBitNamesByValue(ConfPath, ConfBits) but takes a path
string pointing to the bitset in the schema. |
static ConfBits |
getValueByBitNamesString(ConfPath path,
String bitNames)
Get an ConfBits from the string of bitnames like "bit1 bit2 ...", i.e
a space separated list of bitnames adhering to a specific position in
the schema.
|
static ConfBits |
getValueByBitNamesString(String path,
String bitNames)
Like
ConfBits.getValueByBitNamesString(ConfPath, String) but takes a path
string pointing to the bitset in the schema. |
int |
hashCode()
hashCode method
|
boolean |
isBitSet(long pos)
Check if bit is set at position pos in bitset.
|
void |
setBit(long pos)
Set bit at position pos in bitset.
|
String |
toString()
toString method.
|
encode, getStringByValue, getStringByValue, getValueByString, getValueByString
clone, decode
public byte[] byteArrayValue()
public boolean equals(Object o)
public String toString()
public int compareTo(ConfBits o)
compareTo
in interface Comparable<ConfBits>
public void setBit(long pos) throws ConfException
pos
- ConfException
public void clearBit(long pos) throws ConfException
pos
- ConfException
public boolean isBitSet(long pos) throws ConfException
pos
- ConfException
public static ConfBits getValueByBitNamesString(ConfPath path, String bitNames) throws ConfException
path
- ConfPath pointing to the position of a bitset in the schema.bitNames
- String of space separated bit namesConfException
public static ConfBits getValueByBitNamesString(String path, String bitNames) throws ConfException
ConfBits.getValueByBitNamesString(ConfPath, String)
but takes a path
string pointing to the bitset in the schema.path
- String pointing to the position of a bitset in the schema.bitNames
- String of space separated bit namesConfException
public static String getBitNamesByValue(ConfPath path, ConfBits bits) throws ConfException
path
- ConfPath pointing to the position of a bitset in the schema.bits
- ConfBits valueConfException
public static String getBitNamesByValue(String path, ConfBits bits) throws ConfException
ConfBits.getBitNamesByValue(ConfPath, ConfBits)
but takes a path
string pointing to the bitset in the schema.path
- String pointing to the position of a bitset in the schema.bits
- ConfBits valueConfException