Package net.opengis.swe.v20
Interface DataBlock
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
AbstractDataBlock
,DataBlockBoolean
,DataBlockByte
,DataBlockCompressed
,DataBlockDouble
,DataBlockFloat
,DataBlockInt
,DataBlockList
,DataBlockLong
,DataBlockMixed
,DataBlockParallel
,DataBlockShort
,DataBlockString
,DataBlockTuple
,DataBlockUByte
,DataBlockUInt
,DataBlockUShort
Implementations of this class should be able to carry data for any part of the data cluster defined in the DataDefinition part of the SWE Common Data Model. It should provide access to any data atom through primitive specific methods. Data should be casted from one primitive to another when needed and possible. In order to improve performance, no check needs to be enforced on the index argument (i.e 0 < index < blockSize - 1), thus all getXXXValue(int index) and setXXXValue(int index, ...) do not need to guarantee their bahavior when an invalid index is used. IndexOutOfBoundException can be thrown in some cases.
- Since:
- Aug 14, 2005
-
Method Summary
Modifier and TypeMethodDescriptionclone()
copy()
int
boolean
boolean
getBooleanValue
(int index) byte
byte
getByteValue
(int index) getDataType
(int index) double
double
getDoubleValue
(int index) float
float
getFloatValue
(int index) int
int
getIntValue
(int index) long
long
getLongValue
(int index) short
short
getShortValue
(int index) getStringValue
(int index) renew()
void
resize
(int size) void
setBooleanValue
(boolean value) void
setBooleanValue
(int index, boolean value) void
setByteValue
(byte value) void
setByteValue
(int index, byte value) void
setDoubleValue
(double value) void
setDoubleValue
(int index, double value) void
setFloatValue
(float value) void
setFloatValue
(int index, float value) void
setIntValue
(int value) void
setIntValue
(int index, int value) void
setLongValue
(int index, long value) void
setLongValue
(long value) void
setShortValue
(int index, short value) void
setShortValue
(short value) void
setStringValue
(int index, String value) void
setStringValue
(String value) void
void
-
Method Details
-
getDataType
DataType getDataType() -
getDataType
-
getAtomCount
int getAtomCount() -
getBooleanValue
boolean getBooleanValue(int index) -
getByteValue
byte getByteValue(int index) -
getShortValue
short getShortValue(int index) -
getIntValue
int getIntValue(int index) -
getLongValue
long getLongValue(int index) -
getFloatValue
float getFloatValue(int index) -
getDoubleValue
double getDoubleValue(int index) -
getStringValue
-
getBooleanValue
boolean getBooleanValue() -
getByteValue
byte getByteValue() -
getShortValue
short getShortValue() -
getIntValue
int getIntValue() -
getLongValue
long getLongValue() -
getFloatValue
float getFloatValue() -
getDoubleValue
double getDoubleValue() -
getStringValue
String getStringValue() -
setBooleanValue
void setBooleanValue(int index, boolean value) -
setByteValue
void setByteValue(int index, byte value) -
setShortValue
void setShortValue(int index, short value) -
setIntValue
void setIntValue(int index, int value) -
setLongValue
void setLongValue(int index, long value) -
setFloatValue
void setFloatValue(int index, float value) -
setDoubleValue
void setDoubleValue(int index, double value) -
setStringValue
-
setBooleanValue
void setBooleanValue(boolean value) -
setByteValue
void setByteValue(byte value) -
setShortValue
void setShortValue(short value) -
setIntValue
void setIntValue(int value) -
setLongValue
void setLongValue(long value) -
setFloatValue
void setFloatValue(float value) -
setDoubleValue
void setDoubleValue(double value) -
setStringValue
-
resize
void resize(int size) -
copy
DataBlock copy() -
clone
DataBlock clone() -
renew
DataBlock renew() -
getUnderlyingObject
Object getUnderlyingObject() -
setUnderlyingObject
-
updateAtomCount
void updateAtomCount()
-