Data Request Broker
2-3-release

fr.gael.drb.value
Interface ValueArray

All Superinterfaces:
DrbItem, DrbSequence, Value
All Known Subinterfaces:
NumericArray
All Known Implementing Classes:
AbstractNumericArray, AbstractValueArray, BooleanArray, ByteArray, DefaultValueArray, DoubleArray, FloatArray, IntArray, LongArray, ShortArray, UnsignedByteArray, UnsignedIntArray, UnsignedLongArray, UnsignedShortArray

public interface ValueArray
extends Value, DrbSequence

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
 
Method Summary
 void assign(int index, Value element)
          Replace the element at the specified position in the array with the specified element.
 int getArrayType()
          The type of the values embedded in the array.
 Value getElement(int index)
          Get the element located at the specified index.
 int length()
          Returns the number of elements in this array.
 
Methods inherited from interface fr.gael.drb.value.Value
assign, convertTo, getPriority, getType
 
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
 

Method Detail

getArrayType

int getArrayType()
The type of the values embedded in the array.

Returns:
an identifier of the element type.

getElement

Value getElement(int index)
Get the element located at the specified index. ArrayIndexOutOfBoundException is thrown if the index is out of bound.

Parameters:
index - position where to retrieve the value.
Returns:
The element located at the index.

assign

void assign(int index,
            Value element)
Replace the element at the specified position in the array with the specified element.

Parameters:
index - index of element to replace.
element - element to be stored at the specified position.

length

int length()
Returns the number of elements in this array.

Returns:
the number of elements in this array.

Data Request Broker - DRB API®
2-3-release

Copyright© 2001-2009 GAEL Consultant. All rights reserved. Use is subject to license terms .