|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.soda.dk.core.EscObject
org.eclipse.soda.dk.parameter.Parameter
org.eclipse.soda.dk.parameter.SimpleParameter
public class SimpleParameter
The SimpleParameter class implements the ParameterService interface.
Parameter,
ParameterService| Field Summary |
|---|
| Fields inherited from class org.eclipse.soda.dk.parameter.Parameter |
|---|
MASKS, SET_MASKS, SET_TOP_MASKS |
| Fields inherited from interface org.eclipse.soda.dk.parameter.service.ParameterService |
|---|
ARRAY, ASCII, ASCIIZ, BOOLEAN, BYTE, BYTES, DOUBLE, FLOAT, HEXASCII, HEXSTRING, INSERT, INTEGER, LITTLEENDIAN, LONG, NASCII, NSTRING, NULL, SERVICE_NAME, SHORT, STRING, UNLIMITED, UNSIGNED, USE_CURSOR, USE_CURSOR_INSERT |
| Constructor Summary | |
|---|---|
SimpleParameter(java.lang.String key,
int index,
int size)
Constructs an instance of this class from the specified key, index and size parameters. |
|
SimpleParameter(java.lang.String key,
int index,
int size,
short style)
Constructs an instance of this class from the specified key, index, size and style parameters. |
|
SimpleParameter(java.lang.String key,
TransformService transform,
int index,
int size)
Constructs an SimpleParameter object using the input parameter(s). |
|
SimpleParameter(java.lang.String key,
TransformService transform,
int index,
int size,
short style)
Constructs an SimpleParameter object using the input parameter(s). |
|
| Method Summary | |
|---|---|
java.lang.Object |
decodeBytes(byte[] mbytes,
int index,
int size)
Decode bytes with the specified mbytes, data index and data length parameters and return the Object result. |
java.lang.Object |
decodeBytes(byte[] mbytes,
ParameterCursorService cursor)
Decode bytes with the specified mbytes parameter and return the Object result. |
double |
decodeDouble(byte[] bytes,
int index,
int size)
Decode double with the specified bytes, index and size parameters and return the double result. |
java.lang.Object |
decodeDoubleObject(byte[] bytes,
int index,
int size)
Decode double object with the specified bytes, index and size parameters and return the Object result. |
float |
decodeFloat(byte[] bytes,
int index,
int size)
Decode float with the specified bytes, index and size parameters and return the float result. |
java.lang.Object |
decodeFloatObject(byte[] bytes,
int index,
int size)
Decode float object with the specified bytes, index and size parameters and return the Object result. |
int |
decodeInt(byte[] bytes,
int index,
int size)
Decode int with the specified bytes, index and size parameters and return the int result. |
java.lang.Object |
decodeIntegerObject(byte[] bytes,
int index,
int size)
Decode integer object with the specified bytes, index and size parameters and return the Object result. |
long |
decodeLong(byte[] bytes,
int index,
int size)
Decode long with the specified bytes, index and size parameters and return the long result. |
java.lang.Object |
decodeLongObject(byte[] bytes,
int index,
int size)
Decode long object with the specified bytes, index and size parameters and return the Object result. |
java.lang.Object |
decodeMessage(MessageService message,
ParameterCursorService cursor)
Perform the decodeMessage method and return the Object result. |
java.lang.Object |
decodeShortObject(byte[] bytes,
int index,
int size)
Decode short object with the specified bytes, index and size parameters and return the Object result. |
java.lang.Object |
encodeBytes(byte[] mbytes,
java.lang.Object value,
int offset,
int index,
int dataLength,
ParameterCursorService cursor)
Encode bytes with the specified mbytes, value, offset, data index and data length parameters and return the Object result. |
java.lang.Object |
encodeBytes(byte[] container,
java.lang.Object data,
ParameterCursorService cursor)
Encode bytes with the specified container and data parameters and return the Object result. |
java.lang.Object |
encodeInt(byte[] bytes,
int value,
int offset,
int length)
Encode int with the specified bytes, value, offset and length parameters and return the Object result. |
java.lang.Object |
encodeIntObject(byte[] bytes,
java.lang.Object value,
int offset,
int length)
Encode int object with the specified bytes, value, offset and length parameters and return the Object result. |
java.lang.Object |
encodeLong(byte[] bytes,
long value,
int offset,
int length)
Encode long with the specified bytes, value, offset and length parameters and return the Object result. |
java.lang.Object |
encodeLongObject(byte[] bytes,
java.lang.Object value,
int offset,
int length)
Encode long object with the specified bytes, value, offset and length parameters and return the Object result. |
protected MessageService |
encodeMessage(MessageService message,
byte[] value,
int offset)
Perform the encodeMessage method and return the MessageService result. |
MessageService |
encodeMessage(MessageService message,
java.lang.Object value,
int offset,
ParameterCursorService cursor)
Perform the encodeMessage method and return the MessageService result. |
java.lang.Object |
encodeShort(byte[] bytes,
int value,
int offset,
int length)
Encode short with the specified bytes, value, offset and length parameters and return the Object result. |
java.lang.Object |
encodeShortObject(byte[] bytes,
java.lang.Object value,
int offset,
int length)
Encode short object with the specified bytes, value, offset and length parameters and return the Object result. |
byte[] |
expand(byte[] bytes,
int offset,
int length)
Expand with the specified bytes, offset and length parameters and return the byte[] result. |
int |
getIndex(ParameterCursorService cursor)
Gets the int index property value. |
int |
getInt(java.lang.Object value)
Get int with the specified value parameter and return the int result. |
long |
getLong(java.lang.Object value)
Get long with the specified value parameter and return the long result. |
protected int |
getMask()
Gets the int mask property value. |
short |
getShort(java.lang.Object value)
Get short with the specified value parameter and return the short result. |
int |
getSize()
Gets the int size property value. |
byte[] |
insert(byte[] bytes,
int offset,
byte[] insertBytes,
ParameterCursorService cursor)
Insert with the specified bytes, offset and insert bytes parameters and return the byte[] result. |
void |
setIndex(int index)
Sets the index value. |
protected void |
updateCursor(ParameterCursorService cursor)
Update cursor with the specified cursor parameter. |
| Methods inherited from class org.eclipse.soda.dk.parameter.Parameter |
|---|
decode, decodeEnd, decodeString, decodeValue, decodeValue, encode, encodeBegin, encodeString, encodeValue, encodeValue, equals, getBytes, getDefaultStyle, getKey, getLong, getStyle, getTransform, getTypeStyle, isArray, isConstantParameter, isInsert, isLittleEndian, isUnsigned, setBits, setBytes, setKey, setStyle, setTransform |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SimpleParameter(java.lang.String key,
int index,
int size)
key - The key (String) parameter.index - The index (int) parameter.size - The size (int) parameter.SimpleParameter(String,int,int,short),
SimpleParameter(String,TransformService,int,int),
SimpleParameter(String,TransformService,int,int,short)
public SimpleParameter(java.lang.String key,
int index,
int size,
short style)
key - The key (String) parameter.index - The index (int) parameter.size - The size (int) parameter.style - The style (short) parameter.SimpleParameter(String,int,int),
SimpleParameter(String,TransformService,int,int),
SimpleParameter(String,TransformService,int,int,short)
public SimpleParameter(java.lang.String key,
TransformService transform,
int index,
int size)
SimpleParameter object using the input parameter(s).
key - The key (String) parameter.transform - The transform (TransformService) parameter.index - The index (int) parameter.size - The size (int) parameter.SimpleParameter(String,int,int),
SimpleParameter(String,int,int,short),
SimpleParameter(String,TransformService,int,int,short)
public SimpleParameter(java.lang.String key,
TransformService transform,
int index,
int size,
short style)
SimpleParameter object using the input parameter(s).
key - The key (String) parameter.transform - The transform (TransformService) parameter.index - The index (int) parameter.size - The size (int) parameter.style - The style (short) parameter.SimpleParameter(String,int,int),
SimpleParameter(String,int,int,short),
SimpleParameter(String,TransformService,int,int)| Method Detail |
|---|
public java.lang.Object decodeBytes(byte[] mbytes,
int index,
int size)
mbytes - The mbytes (byte[]) parameter.index - The index (int) parameter.size - The size (int) parameter.
Object) value.decodeBytes(byte[],ParameterCursorService),
encodeBytes(byte[],Object,int,int,int,ParameterCursorService),
encodeBytes(byte[],Object,ParameterCursorService)
public java.lang.Object decodeBytes(byte[] mbytes,
ParameterCursorService cursor)
decodeBytes in class Parametermbytes - The mbytes (byte[]) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.decodeBytes(byte[],int,int),
encodeBytes(byte[],Object,int,int,int,ParameterCursorService),
encodeBytes(byte[],Object,ParameterCursorService)
public double decodeDouble(byte[] bytes,
int index,
int size)
bytes - The bytes (byte[]) parameter.index - The index (int) parameter.size - The size (int) parameter.
double) value.
public java.lang.Object decodeDoubleObject(byte[] bytes,
int index,
int size)
bytes - The bytes (byte[]) parameter.index - The index (int) parameter.size - The size (int) parameter.
Object) value.
public float decodeFloat(byte[] bytes,
int index,
int size)
bytes - The bytes (byte[]) parameter.index - The index (int) parameter.size - The size (int) parameter.
float) value.
public java.lang.Object decodeFloatObject(byte[] bytes,
int index,
int size)
bytes - The bytes (byte[]) parameter.index - The index (int) parameter.size - The size (int) parameter.
Object) value.
public int decodeInt(byte[] bytes,
int index,
int size)
bytes - The bytes (byte[]) parameter.index - The index (int) parameter.size - The size (int) parameter.
int) value.encodeInt(byte[],int,int,int),
getInt(Object)
public java.lang.Object decodeIntegerObject(byte[] bytes,
int index,
int size)
bytes - The bytes (byte[]) parameter.index - The index (int) parameter.size - The size (int) parameter.
Object) value.
public long decodeLong(byte[] bytes,
int index,
int size)
bytes - The bytes (byte[]) parameter.index - The index (int) parameter.size - The size (int) parameter.
long) value.encodeLong(byte[],long,int,int),
getLong(Object)
public java.lang.Object decodeLongObject(byte[] bytes,
int index,
int size)
bytes - The bytes (byte[]) parameter.index - The index (int) parameter.size - The size (int) parameter.
Object) value.encodeLongObject(byte[],Object,int,int)
public java.lang.Object decodeMessage(MessageService message,
ParameterCursorService cursor)
Object result.
decodeMessage in class Parametermessage - The message (MessageService) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.encodeMessage(MessageService,byte[],int),
encodeMessage(MessageService,Object,int,ParameterCursorService)
public java.lang.Object decodeShortObject(byte[] bytes,
int index,
int size)
bytes - The bytes (byte[]) parameter.index - The index (int) parameter.size - The size (int) parameter.
Object) value.encodeShortObject(byte[],Object,int,int)
public java.lang.Object encodeBytes(byte[] mbytes,
java.lang.Object value,
int offset,
int index,
int dataLength,
ParameterCursorService cursor)
mbytes - The mbytes (byte[]) parameter.value - The value (Object) parameter.offset - The offset (int) parameter.index - The index (int) parameter.dataLength - The data length (int) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.decodeBytes(byte[],int,int),
decodeBytes(byte[],ParameterCursorService),
encodeBytes(byte[],Object,ParameterCursorService)
public java.lang.Object encodeBytes(byte[] container,
java.lang.Object data,
ParameterCursorService cursor)
encodeBytes in class Parametercontainer - The container (byte[]) parameter.data - The data (Object) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.decodeBytes(byte[],int,int),
decodeBytes(byte[],ParameterCursorService),
encodeBytes(byte[],Object,int,int,int,ParameterCursorService)
public java.lang.Object encodeInt(byte[] bytes,
int value,
int offset,
int length)
bytes - The bytes (byte[]) parameter.value - The value (int) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
Object) value.decodeInt(byte[],int,int),
getInt(Object)
public java.lang.Object encodeIntObject(byte[] bytes,
java.lang.Object value,
int offset,
int length)
bytes - The bytes (byte[]) parameter.value - The value (Object) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
Object) value.
public java.lang.Object encodeLong(byte[] bytes,
long value,
int offset,
int length)
bytes - The bytes (byte[]) parameter.value - The value (long) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
Object) value.decodeLong(byte[],int,int),
getLong(Object)
public java.lang.Object encodeLongObject(byte[] bytes,
java.lang.Object value,
int offset,
int length)
bytes - The bytes (byte[]) parameter.value - The value (Object) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
Object) value.decodeLongObject(byte[],int,int)
protected MessageService encodeMessage(MessageService message,
byte[] value,
int offset)
MessageService result.
message - The message (MessageService) parameter.value - The value (byte[]) parameter.offset - The offset (int) parameter.
MessageService) value.decodeMessage(MessageService,ParameterCursorService),
encodeMessage(MessageService,Object,int,ParameterCursorService)
public MessageService encodeMessage(MessageService message,
java.lang.Object value,
int offset,
ParameterCursorService cursor)
MessageService result.
encodeMessage in class Parametermessage - The message (MessageService) parameter.value - The value (Object) parameter.offset - The offset (int) parameter.cursor - The cursor (ParameterCursorService) parameter.
MessageService) value.decodeMessage(MessageService,ParameterCursorService),
encodeMessage(MessageService,byte[],int)
public java.lang.Object encodeShort(byte[] bytes,
int value,
int offset,
int length)
bytes - The bytes (byte[]) parameter.value - The value (int) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
Object) value.getShort(Object)
public java.lang.Object encodeShortObject(byte[] bytes,
java.lang.Object value,
int offset,
int length)
bytes - The bytes (byte[]) parameter.value - The value (Object) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
Object) value.decodeShortObject(byte[],int,int)
public byte[] expand(byte[] bytes,
int offset,
int length)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
byte[]) value.public int getIndex(ParameterCursorService cursor)
int index property value.
cursor - The cursor (ParameterCursorService) parameter.
int) value.setIndex(int)public int getInt(java.lang.Object value)
value - The value (Object) parameter.
int) value.decodeInt(byte[],int,int),
encodeInt(byte[],int,int,int)public long getLong(java.lang.Object value)
value - The value (Object) parameter.
long) value.decodeLong(byte[],int,int),
encodeLong(byte[],long,int,int)protected int getMask()
int mask property value.
int) value.public short getShort(java.lang.Object value)
value - The value (Object) parameter.
short) value.encodeShort(byte[],int,int,int)public int getSize()
int size property value.
int) value.
public byte[] insert(byte[] bytes,
int offset,
byte[] insertBytes,
ParameterCursorService cursor)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.insertBytes - The insert bytes (byte[]) parameter.cursor - The cursor (ParameterCursorService) parameter.
byte[]) value.public void setIndex(int index)
index - The index (int) parameter.getIndex(ParameterCursorService)protected void updateCursor(ParameterCursorService cursor)
updateCursor in class Parametercursor - The cursor (ParameterCursorService) parameter.
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||