|
1.0.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 class org.eclipse.soda.dk.core.EscObject |
|---|
CLONE_EXCEPTION_RESOURCE, EMPTY_BYTES, EMPTY_STRING, ERROR_OCCURRED_EXCEPTION_RESOURCE, ID_FILTER_KEY, ID_KEY, ID_KEY_ANY, INTEGER_TABLE, KEY_KEY, LOG_DEBUG, LOG_ERROR, LOG_INFO, LOG_TRACE, LOG_WARNING, PREFIX_KEY, RESOURCE_BUNDLE, SLEEP_EXCEPTION_RESOURCE, SYSTEM_INFO_RESOURCE, TO_STRING_CONFIGURATION_KEYS, TRACE_LEVEL_HIGH, TRACE_LEVEL_LOW, TRACE_LEVEL_MAX, TRACE_LEVEL_MIN, TRACE_LEVEL_NONE, TRACE_LEVEL_NORMAL, TRACELEVEL_KEY, UNKNOWN_ERROR_RESOURCE |
| 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, SHORT, STRING, UNSIGNED |
| 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)
Decode bytes with the specified mbytes parameter and return the Object result. |
java.lang.Object |
decodeBytes(byte[] mbytes,
int dataIndex,
int dataLength)
Decode bytes with the specified mbytes, data index and data length parameters 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)
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[] container,
java.lang.Object data)
Encode bytes with the specified container and data parameters and return the Object result. |
java.lang.Object |
encodeBytes(byte[] mbytes,
java.lang.Object value,
int offset,
int dataIndex,
int dataLength)
Encode bytes with the specified mbytes, value, offset, data index and data length 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)
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()
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)
Insert with the specified bytes, offset and insert bytes parameters and return the byte[] result. |
void |
setIndex(int index)
Sets the index. |
| Methods inherited from class org.eclipse.soda.dk.parameter.Parameter |
|---|
decode, decodeEnd, decodeString, decodeValue, encode, encodeBegin, encodeString, encodeValue, equals, getDefaultStyle, getKey, getLong, getStyle, getTransform, getTypeStyle, isArray, isInsert, isLittleEndian, isUnsigned, setBits, 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,
TransformService transform,
int index,
int size,
short style)
SimpleParameter object using the input parameter(s).
transform - org.eclipse.soda.dk.transform.service.TransformServiceindex - intsize - intstyle - shortkey - The key (String) parameter.SimpleParameter(String,int,int),
SimpleParameter(String,int,int,short),
SimpleParameter(String,TransformService,int,int)
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,TransformService,int,int,short),
SimpleParameter(String,int,int,short),
SimpleParameter(String,TransformService,int,int)
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,TransformService,int,int,short),
SimpleParameter(String,int,int),
SimpleParameter(String,TransformService,int,int)
public SimpleParameter(java.lang.String key,
TransformService transform,
int index,
int size)
SimpleParameter object using the input parameter(s).
transform - org.eclipse.soda.dk.transform.service.TransformServiceindex - intsize - intkey - The key (String) parameter.SimpleParameter(String,TransformService,int,int,short),
SimpleParameter(String,int,int),
SimpleParameter(String,int,int,short)| Method Detail |
|---|
public java.lang.Object decodeBytes(byte[] mbytes)
decodeBytes in class Parametermbytes - The mbytes (byte[]) parameter.
Object) value.decodeBytes(byte[],int,int),
encodeBytes(byte[],Object),
encodeBytes(byte[],Object,int,int,int)
public java.lang.Object decodeBytes(byte[] mbytes,
int dataIndex,
int dataLength)
mbytes - The mbytes (byte[]) parameter.dataIndex - The data index (int) parameter.dataLength - The data length (int) parameter.
Object) value.decodeBytes(byte[]),
encodeBytes(byte[],Object),
encodeBytes(byte[],Object,int,int,int)
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)
Object result.
decodeMessage in class Parametermessage - org.eclipse.soda.dk.message.service.MessageService
Object) value.encodeMessage(MessageService,Object,int),
encodeMessage(MessageService,byte[],int)
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[] container,
java.lang.Object data)
encodeBytes in class Parametercontainer - The container (byte[]) parameter.data - The data (Object) parameter.
Object) value.decodeBytes(byte[]),
decodeBytes(byte[],int,int),
encodeBytes(byte[],Object,int,int,int)
public java.lang.Object encodeBytes(byte[] mbytes,
java.lang.Object value,
int offset,
int dataIndex,
int dataLength)
mbytes - The mbytes (byte[]) parameter.value - The value (Object) parameter.offset - The offset (int) parameter.dataIndex - The data index (int) parameter.dataLength - The data length (int) parameter.
Object) value.decodeBytes(byte[]),
decodeBytes(byte[],int,int),
encodeBytes(byte[],Object)
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)
public MessageService encodeMessage(MessageService message,
java.lang.Object value,
int offset)
MessageService result.
encodeMessage in class Parametermessage - org.eclipse.soda.dk.message.service.MessageServicevalue - java.lang.Objectoffset - int
MessageService) value.decodeMessage(MessageService),
encodeMessage(MessageService,byte[],int)
protected MessageService encodeMessage(MessageService message,
byte[] value,
int offset)
MessageService result.
message - org.eclipse.soda.dk.message.service.MessageServicevalue - java.lang.Objectoffset - int
MessageService) value.decodeMessage(MessageService),
encodeMessage(MessageService,Object,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()
int index property value.
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)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.insertBytes - The insert bytes (byte[]) parameter.
byte[]) value.public void setIndex(int index)
index - The index to setgetIndex()
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||