|
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.AbstractValueArray
fr.gael.drb.value.AbstractNumericArray
fr.gael.drb.value.UnsignedLongArray
public class UnsignedLongArray
The UnsignedLongArray class is a generic wrapper for unsigned long array values.
| Field Summary |
|---|
| 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 | |
|---|---|
UnsignedLongArray(int size)
Constructs an UnsignedLongArray object with the specified length. |
|
UnsignedLongArray(long[] v)
Constructs a UnsignedLongArray object initialized to the specified long[] value. |
|
| Method Summary | |
|---|---|
void |
assign(int index,
boolean value)
Assign a value to an index |
void |
assign(int index,
byte value)
Assign a value to an index |
void |
assign(int index,
double value)
Assign a value to an index |
void |
assign(int index,
float value)
Assign a value to an index |
void |
assign(int index,
int value)
Assign a value to an index |
void |
assign(int index,
long value)
Assign a value to an index |
void |
assign(int index,
short value)
Assign a value to an index |
void |
assign(int index,
Value element)
Replace the element at the specified position in the array with the specified element. |
void |
assign(Value v)
Assign a new Value. |
boolean |
booleanValue(int index)
Returns this value as a boolean. |
byte |
byteValue(int index)
Returns this value as a byte (signed 8 bits). |
Value |
convertTo(int type)
Convert the value into the specified type. |
double |
doubleValue(int index)
Returns this value as a double |
float |
floatValue(int index)
Returns this value as a float (signed 32 bits IEEE 754). |
int |
getArrayType()
The type of the values embedded in the array. |
long[] |
getData()
Returns the underlying object for optimization. |
Value |
getElement(int index)
The value of the element located at the specified index. |
byte[] |
getFormattedBuffer()
Return a byte buffer containing the value in a fixed format. |
String |
getFormattedString(int length)
Return a string containing the value with a fixed format. |
int |
getItemType()
A code that identifies the value items. |
String |
getName()
Name of the item. |
String |
getNamespaceURI()
Get namespace URI. |
int |
getPriority()
Returns the UnsignedLongArray priority |
int |
getType()
The type identifier of this UnsignedLongArray value. |
Value |
getValue()
The value of the item. |
int |
intValue(int index)
Returns this value as an integer (signed 32 bits). |
int |
length()
Returns the number of elements in this array. |
long |
longValue(int index)
Returns this value as a long integer (signed 64 bits). |
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. |
short |
shortValue(int index)
Returns this value as a short integer (signed 16 bits). |
Numeric |
toNumeric()
Convert the value into the numeric type. |
String |
toString()
Returns the String representation of this object |
| Methods inherited from class fr.gael.drb.value.AbstractNumericArray |
|---|
booleanValues, byteValues, convertArrayTo, doubleValues, floatValues, intValues, longValues, shortValues |
| Methods inherited from class fr.gael.drb.value.AbstractValueArray |
|---|
addItem, atomize, compareTo, getItem, getLength, main, removeItem |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface fr.gael.drb.DrbItem |
|---|
getItemType, getName, getNamespaceURI, getValue, rename, setNamespaceURI, setValue |
| Methods inherited from interface fr.gael.drb.DrbSequence |
|---|
addItem, atomize, getItem, getLength, removeItem |
| Methods inherited from interface fr.gael.drb.value.Comparison |
|---|
compareTo |
| Constructor Detail |
|---|
public UnsignedLongArray(long[] v)
v - the value of the UnsignedLongArray.public UnsignedLongArray(int size)
size - the length of the LongArray.| Method Detail |
|---|
public final long[] getData()
getData in class AbstractNumericArraypublic String getFormattedString(int length)
getFormattedString in interface ValueFormatgetFormattedString in class AbstractNumericArraylength - The expected length of the output string
public final byte[] getFormattedBuffer()
getFormattedBuffer in interface ValueFormatgetFormattedBuffer in class AbstractNumericArraypublic final int getType()
getType in interface Valuepublic final int getPriority()
getPriority in interface Value
public final Value convertTo(int type)
throws ClassCastException
convertTo in interface ValueconvertTo in class AbstractValueArraytype - The target type.
ClassCastException - the conversion is impossible.
public final void assign(Value v)
throws ClassCastException
assign in interface Valuev - the value to be assigned.
ClassCastException - the conversion is impossible.public final int getArrayType()
getArrayType in interface ValueArraygetArrayType in class AbstractNumericArraypublic final Value getElement(int index)
getElement in interface ValueArrayindex - position where to retrieve the value.
public final void assign(int index,
Value element)
assign in interface ValueArrayindex - index of element to replace.element - element to be stored at the specified position.public final int length()
length in interface ValueArraypublic final boolean booleanValue(int index)
booleanValue in interface NumericArraybooleanValue in class AbstractNumericArrayindex - position where to retrieve the value.
public final byte byteValue(int index)
byteValue in interface NumericArraybyteValue in class AbstractNumericArrayindex - position where to retrieve the value.
public final int intValue(int index)
intValue in interface NumericArrayintValue in class AbstractNumericArrayindex - position where to retrieve the value.
public final long longValue(int index)
longValue in interface NumericArraylongValue in class AbstractNumericArrayindex - position where to retrieve the value.
public final short shortValue(int index)
shortValue in interface NumericArrayshortValue in class AbstractNumericArrayindex - position where to retrieve the value.
public final float floatValue(int index)
floatValue in interface NumericArrayfloatValue in class AbstractNumericArrayindex - position where to retrieve the value.
public final double doubleValue(int index)
doubleValue in interface NumericArraydoubleValue in class AbstractNumericArrayindex - position where to retrieve the value.
public final void assign(int index,
boolean value)
assign in interface NumericArrayassign in class AbstractNumericArrayindex - position where to insert the value.value - value to assign as a boolean.
public final void assign(int index,
byte value)
assign in interface NumericArrayassign in class AbstractNumericArrayindex - position where to insert the value.value - value to assign as a double.
public final void assign(int index,
int value)
assign in interface NumericArrayassign in class AbstractNumericArrayindex - position where to insert the value.value - value to assign as a int.
public final void assign(int index,
short value)
assign in interface NumericArrayassign in class AbstractNumericArrayindex - position where to insert the value.value - value to assign as a short.
public final void assign(int index,
long value)
assign in interface NumericArrayassign in class AbstractNumericArrayindex - position where to insert the value.value - value to assign as a long.
public final void assign(int index,
float value)
assign in interface NumericArrayassign in class AbstractNumericArrayindex - position where to insert the value.value - value to assign as a float.
public final void assign(int index,
double value)
assign in interface NumericArrayassign in class AbstractNumericArrayindex - position where to insert the value.value - value to assign as a doubl..public String toString()
toString in class Objectpublic 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.
public Numeric toNumeric()
throws ClassCastException
ClassCastException - is the convertion is impossible
|
Data Request Broker - DRB API® 2-3-release |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||