|
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.DefaultValueArray
public class DefaultValueArray
Generic array value wrapper.
| 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 | |
|---|---|
DefaultValueArray(int size)
Build an BooleanArray value with the specified size. |
|
| Method Summary | |
|---|---|
void |
assign(int index,
Value element)
Assign a value to an index |
void |
assign(Value v)
Assign a value. |
Value |
convertTo(int type)
Convert the value into the specified type. |
int |
getArrayType()
Returns the Array type |
Value |
getElement(int index)
Returns the Element value at the specified index |
int |
getItemType()
A code that identifies the value items. |
String |
getName()
Name of the item. |
String |
getNamespaceURI()
Get namespace URI. |
int |
getPriority()
Returns the BooleanArray priority |
int |
getType()
The type identifier of this BooleanArray value. |
Value |
getValue()
The value of the item. |
int |
length()
Returns the number of elements in this array. |
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 the string representation of this array |
| Methods inherited from class fr.gael.drb.value.AbstractValueArray |
|---|
addItem, atomize, compareTo, convertArrayTo, 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 |
| Constructor Detail |
|---|
public DefaultValueArray(int size)
size - the size of the array.| Method Detail |
|---|
public String toString()
toString in class Objectpublic final int getType()
getType in interface Valuepublic final int getPriority()
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
v - the value to be assigned.
ClassCastException - the conversion is impossiblepublic final int getArrayType()
public final Value getElement(int index)
index - the index position
public final void assign(int index,
Value element)
index - position where to insert the value.element - value to assign as a double.public final int length()
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.
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 | |||||||||