|
Data Request Broker 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectfr.gael.drb.value.Int
fr.gael.drb.value.BinaryInteger
public class BinaryInteger
The BinaryInteger class is a generic wrapper for binary integer values. For all arithmetics operations it is handled as a simple Integer.
| Field Summary | |
|---|---|
static short |
DIGIT_AS_NEEDED
This flag indicates that the number of significants digit is not fixed. |
| Fields inherited from class fr.gael.drb.value.Int |
|---|
PRIORITY, value |
| Fields inherited from interface fr.gael.drb.value.Value |
|---|
ARRAY_ID, BINARY_ID, BINARY_INTEGER_ID, BOOLEAN_ID, BYTE_ID, DATE_ID, DATE_TIME_ID, DAY_ID, DAY_TIME_DURATION_ID, DECIMAL_ID, DOUBLE_ID, DURATION_ID, FLOAT_ID, INT_ID, INTEGER_ID, LONG_ID, MONTH_DAY_ID, MONTH_ID, NULL_ID, NUMERIC_ID, OTHER_ID, SHORT_ID, STRING_ID, TIME_ID, UNKNOWN_ID, UNSIGNED_BYTE_ID, UNSIGNED_INT_ID, UNSIGNED_LONG_ID, UNSIGNED_SHORT_ID, YEAR_ID, YEAR_MONTH_DURATION_ID, YEAR_MONTH_ID |
| Fields inherited from interface fr.gael.drb.DrbItem |
|---|
ATTRIBUTE_ITEM, NODE_ITEM, UNDEFINED_ITEM, VALUE_ITEM |
| Constructor Summary | |
|---|---|
BinaryInteger(int v)
Constructs a BinaryInteger object initialized to the specified int value. |
|
BinaryInteger(int v,
int num_digit)
Constructs a BinaryInteger object initialized to the specified int value. |
|
| Method Summary | |
|---|---|
boolean |
and(Value x)
Compute a logical AND. |
int |
compareTo(Object obj)
Compares this object with the specified object for order. |
Value |
convertTo(int type)
Convert the value into the specified type. |
protected BigDecimal |
decimalValue()
Returns this value as a BigDecimal. |
boolean |
equals(Object obj)
Indicates whether this value is "equal to" to another value. |
int |
getItemType()
A code that identifies the value items. |
String |
getName()
Name of the item. |
String |
getNamespaceURI()
Get namespace URI. |
int |
getType()
The type identifier of this Integer value. |
Value |
getValue()
The value of the item. |
int |
hashCode()
Returns a hash code value for the object. |
protected BigInteger |
integerValue()
Returns this value as a BigInteger. |
boolean |
or(Value x)
Compute a logical OR. |
void |
rename(String name)
Changes the name of the item. |
void |
setNamespaceURI(String namespace_uri)
Sets a namespace resource identifier. |
Value |
setValue(Value value)
Changes the value of the item. |
Numeric |
toNumeric()
Convert the value into the numeric type. |
String |
toString()
Returns a new String object representing this BinaryInteger. |
| Methods inherited from class fr.gael.drb.value.Int |
|---|
add, assign, assign, assign, assign, assign, assign, assign, assign, booleanValue, byteValue, compareTo, divide, doubleValue, floatValue, getFormattedBuffer, getFormattedBuffer, getFormattedString, getFormattedString, getPriority, intValue, longValue, main, modulus, multiply, shortValue, sub, unaryMinus |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface fr.gael.drb.DrbItem |
|---|
getItemType, getName, getNamespaceURI, getValue, rename, setNamespaceURI, setValue |
| Field Detail |
|---|
public static short DIGIT_AS_NEEDED
| Constructor Detail |
|---|
public BinaryInteger(int v)
v - the value of the BinaryInteger.
public BinaryInteger(int v,
int num_digit)
v - the value of the BinaryInteger.num_digit - The number of significant digit to be used. A negative
value denotes a binary with unfixed number of digit.DIGIT_AS_NEEDED| Method Detail |
|---|
public String toString()
toString in class Intpublic int getType()
getType in interface ValuegetType in class Int
public Value convertTo(int type)
throws ClassCastException
convertTo in interface ValueconvertTo in class Inttype - The target type.
ClassCastException - is the convertion is impossiblepublic boolean equals(Object obj)
equals in class Objectobj - another value.
public int hashCode()
hashCode in class Objectpublic int compareTo(Object obj)
compareTo in interface Comparableobj - the Object to be compared.
public final Numeric toNumeric()
throws ClassCastException
ClassCastException - is the convertion is impossibleprotected BigInteger integerValue()
protected BigDecimal decimalValue()
public final boolean and(Value x)
and in interface Logicx - another value.
public final boolean or(Value x)
or in interface Logicx - another value.
public int getItemType()
getItemType in interface DrbItempublic String getName()
getName in interface DrbItem
public void rename(String name)
throws NullPointerException,
UnsupportedOperationException
rename in interface DrbItemname - Reference to the new name.
UnsupportedOperationException - This exception always raised because
the name property is not defined for values.
NullPointerException - This exception is overriden by an
UnsupportedOperationException.public String getNamespaceURI()
getNamespaceURI in interface DrbItem
public void setNamespaceURI(String namespace_uri)
throws NullPointerException,
UnsupportedOperationException
setNamespaceURI in interface DrbItemnamespace_uri - A reference to the new namespace identifier.
UnsupportedOperationException - This exception always raised because
the name property is not defined for values.
NullPointerException - This exception is overriden by an
UnsupportedOperationException.public Value getValue()
getValue in interface DrbItem
public Value setValue(Value value)
throws NullPointerException,
ClassCastException,
UnsupportedOperationException
setValue in interface DrbItemvalue - The new value of the node. This value shall not be null.
NullPointerException - This exception is raised when the passed
reference to the value is null. This exception may be overriden
by an UnsupportedOperationException.
ClassCastException - This exception is raised when the
implementation has not succeeded to cast the input value in a
type compatible with the current node.
UnsupportedOperationException - This exception is raised when the
implementation does not support the requested assignment for
any reason.
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||