|
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
public class Parameter
The Parameter class implements the ParameterService interface.
ParameterService,
TransformService| Field Summary | |
|---|---|
static int[] |
MASKS
Define the masks (int[]) constant. |
static int[] |
SET_MASKS
Define the set masks (int[]) constant. |
static int[] |
SET_TOP_MASKS
Define the set top masks (int[]) constant. |
| 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 | |
|---|---|
Parameter(java.lang.String key)
Constructs an instance of this class from the specified key parameter. |
|
Parameter(java.lang.String key,
short style)
Constructs an instance of this class from the specified key and style parameters. |
|
Parameter(java.lang.String key,
TransformService transform)
Constructs an Parameter object using the input
parameter(s). |
|
Parameter(java.lang.String key,
TransformService transform,
short style)
Constructs an Parameter object using the input
parameter(s). |
|
| Method Summary | |
|---|---|
java.lang.Object |
decode(java.lang.Object container)
Decode with the specified container parameter and return the Object result. |
java.lang.Object |
decodeBytes(byte[] container)
Decode bytes with the specified container parameter and return the Object result. |
java.lang.Object |
decodeEnd(java.lang.Object object)
Decode end with the specified object parameter and return the Object result. |
protected java.lang.Object |
decodeMessage(MessageService message)
Perform the decodeMessage method and return the Object
result. |
java.lang.Object |
decodeString(java.lang.String container)
Decode string with the specified container parameter and return the Object result. |
java.lang.Object |
decodeValue(MessageService message)
Perform the decodeValue method and return the Object
result. |
java.lang.Object |
encode(java.lang.Object container,
java.lang.Object data)
Encode with the specified container and data parameters. |
java.lang.Object |
encodeBegin(java.lang.Object value)
Encode begin with the specified value parameter 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. |
MessageService |
encodeMessage(MessageService message,
java.lang.Object value,
int offset)
Perform the encodeMessage method and return the MessageService result. |
java.lang.Object |
encodeString(java.lang.String container,
java.lang.Object data)
Encode string with the specified container and data parameters and return the Object result. |
MessageService |
encodeValue(MessageService message,
java.lang.Object value)
Perform the encodeValue method and return the MessageService
result. |
boolean |
equals(java.lang.Object object)
Equals with the specified object parameter and return the boolean result. |
static short |
getDefaultStyle()
Gets the default style (short) value. |
java.lang.String |
getKey()
Gets the key (String) value. |
static long |
getLong(byte[] bytes,
int offset,
int length)
Get long with the specified bytes, offset and length parameters and return the long result. |
short |
getStyle()
Gets the short style property value. |
TransformService |
getTransform()
Gets the TransformService transform property value. |
short |
getTypeStyle()
Gets the short typeStyle property value. |
boolean |
isArray()
Gets the array (boolean) value. |
boolean |
isInsert()
Gets the boolean insert property value. |
boolean |
isLittleEndian()
Gets the boolean littleEndian property value. |
boolean |
isUnsigned()
Gets the boolean unsigned property value. |
static void |
setBits(byte[] bytes,
int offset,
int length,
long value)
Set bits with the specified bytes, offset, length and value parameters. |
void |
setKey(java.lang.String key)
Sets the key. |
void |
setStyle(short style)
Sets the style property. |
protected void |
setTransform(TransformService transform)
Sets the transform property. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final int[] MASKS
public static final int[] SET_MASKS
public static final int[] SET_TOP_MASKS
| Constructor Detail |
|---|
public Parameter(java.lang.String key,
TransformService transform,
short style)
Parameter object using the input
parameter(s).
org.eclipse.soda.dk.transform.service.TransformService
short
The key (String) parameter.
key - The key (String) parameter.transform - The transform (TransformService) parameter.style - The style (short) parameter.Parameter(String,short),
Parameter(String),
Parameter(String,TransformService)
public Parameter(java.lang.String key,
short style)
String) parameter.
The style (short) parameter.
key - The key (String) parameter.style - The style (short) parameter.Parameter(String,TransformService,short),
Parameter(String),
Parameter(String,TransformService)public Parameter(java.lang.String key)
String) parameter.
key - The key (String) parameter.Parameter(String,TransformService,short),
Parameter(String,short),
Parameter(String,TransformService)
public Parameter(java.lang.String key,
TransformService transform)
Parameter object using the input
parameter(s).
org.eclipse.soda.dk.transform.service.TransformService
The key (String) parameter.
key - The key (String) parameter.transform - The transform (TransformService) parameter.Parameter(String,TransformService,short),
Parameter(String,short),
Parameter(String)| Method Detail |
|---|
public static short getDefaultStyle()
short) value.
public static long getLong(byte[] bytes,
int offset,
int length)
byte[]) parameter.
The offset (int) parameter.
The length (int) parameter.
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
long) value.
public static void setBits(byte[] bytes,
int offset,
int length,
long value)
byte[]) parameter.
The offset (int) parameter.
The length (int) parameter.
The value (long) parameter.
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.value - The value (long) parameter.public java.lang.Object decode(java.lang.Object container)
Object) parameter.
decode in interface DataParameterServicecontainer - The container (Object) parameter.
Object) value.public java.lang.Object decodeBytes(byte[] container)
byte[]) parameter.
container - The container (byte[]) parameter.
Object) value.encodeBytes(byte[],Object)public java.lang.Object decodeEnd(java.lang.Object object)
Object) parameter.
object - The object (Object) parameter.
Object) value.protected java.lang.Object decodeMessage(MessageService message)
Object
result.
org.eclipse.soda.dk.message.service.MessageService
message - The message (MessageService) parameter.
Object) value.encodeMessage(MessageService,Object,int)public java.lang.Object decodeString(java.lang.String container)
String) parameter.
container - The container (String) parameter.
Object) value.encodeString(String,Object)
public java.lang.Object decodeValue(MessageService message)
throws java.lang.NumberFormatException
Object
result.
org.eclipse.soda.dk.message.service.MessageService
decodeValue in interface ParameterServicemessage - The message (MessageService) parameter.
Object) value.
Number Format Exception.
java.lang.NumberFormatException - Number Format Exception.ParameterService.decodeValue(org.eclipse.soda.dk.message.service.MessageService),
encodeValue(MessageService,Object)
public java.lang.Object encode(java.lang.Object container,
java.lang.Object data)
Object) parameter.
The data (Object) parameter.
encode in interface DataParameterServicecontainer - The container (Object) parameter.data - The data (Object) parameter.
Object) value.public java.lang.Object encodeBegin(java.lang.Object value)
Object) parameter.
value - The value (Object) parameter.
Object) value.
public java.lang.Object encodeBytes(byte[] container,
java.lang.Object data)
byte[]) parameter.
The data (Object) parameter.
container - The container (byte[]) parameter.data - The data (Object) parameter.
Object) value.decodeBytes(byte[])
public MessageService encodeMessage(MessageService message,
java.lang.Object value,
int offset)
MessageService result.
org.eclipse.soda.dk.message.service.MessageService
java.lang.Object
int
message - The message (MessageService) parameter.value - The value (Object) parameter.offset - The offset (int) parameter.
MessageService)
value.decodeMessage(MessageService)
public java.lang.Object encodeString(java.lang.String container,
java.lang.Object data)
String) parameter.
The data (Object) parameter.
container - The container (String) parameter.data - The data (Object) parameter.
Object) value.decodeString(String)
public MessageService encodeValue(MessageService message,
java.lang.Object value)
MessageService
result.
org.eclipse.soda.dk.message.service.MessageService
java.lang.Object
encodeValue in interface ParameterServicemessage - The message (MessageService) parameter.value - The value (Object) parameter.
MessageService)
value.ParameterService.encodeValue(org.eclipse.soda.dk.message.service.MessageService, java.lang.Object),
decodeValue(MessageService)public boolean equals(java.lang.Object object)
Object) parameter.
equals in class java.lang.Objectobject - The object (Object) parameter.
boolean) value.public java.lang.String getKey()
getKey in interface ParameterServiceString) value.setKey(String)public short getStyle()
short style property value.
Return the number of bytes (not bit length) of the parameter.
short) value.getDefaultStyle(),
getTypeStyle(),
setStyle(short)public TransformService getTransform()
TransformService transform property value.
TransformService)
value.setTransform(TransformService)public short getTypeStyle()
short typeStyle property value.
Return the number of bytes (not bit length) of the parameter.
short) value.public boolean isArray()
boolean) value.public boolean isInsert()
boolean insert property value.
boolean) value.public boolean isLittleEndian()
boolean littleEndian property value.
boolean) value.public boolean isUnsigned()
boolean unsigned property value.
Return the number of bytes (not bit length) of the parameter.
boolean) value.public void setKey(java.lang.String key)
key - The key (String) parameter.getKey()public void setStyle(short style)
Return the number of bytes (not bit length) of the parameter.
The new property value (short).
style - The style (short) parameter.getDefaultStyle(),
getStyle(),
getTypeStyle()protected void setTransform(TransformService transform)
org.eclipse.soda.dk.transform.service.TransformService).
transform - The transform (TransformService) parameter.getTransform()
|
1.0.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||