|
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
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 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 | |
|---|---|
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,
ParameterCursorService cursor)
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,
ParameterCursorService cursor)
Perform the decodeMessage method and return the Object result. |
java.lang.Object |
decodeString(java.lang.String container,
ParameterCursorService cursor)
Decode string with the specified container parameter and return the Object result. |
java.lang.Object |
decodeValue(MessageService message)
Decode value with the specified message parameter and return the Object result. |
java.lang.Object |
decodeValue(MessageService message,
ParameterCursorService cursor)
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,
ParameterCursorService cursor)
Encode bytes with the specified container and data parameters and return the Object 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 |
encodeString(java.lang.String container,
java.lang.Object data,
ParameterCursorService cursor)
Encode string with the specified container and data parameters and return the Object result. |
MessageService |
encodeValue(MessageService message,
java.lang.Object value)
Encode value with the specified message and value parameters and return the MessageService result. |
MessageService |
encodeValue(MessageService message,
java.lang.Object value,
ParameterCursorService cursor)
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 byte[] |
getBytes(byte[] bytes,
int offset,
int length)
Get bytes with the specified bytes, offset and length parameters and return the byte[] 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 |
isConstantParameter()
Gets the constant parameter (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. |
static void |
setBytes(byte[] bytes,
int offset,
int length,
byte[] data)
Get bytes with the specified bytes, offset and length parameters and return the byte[] result. |
void |
setKey(java.lang.String key)
Sets the key value. |
void |
setStyle(short style)
Sets the style value. |
protected void |
setTransform(TransformService transform)
Sets the transform value. |
protected void |
updateCursor(ParameterCursorService cursor)
Update cursor with the specified cursor parameter. |
| 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)
key - The key (String) parameter.Parameter(String,short),
Parameter(String,TransformService),
Parameter(String,TransformService,short),
isConstantParameter()
public Parameter(java.lang.String key,
short style)
key - The key (String) parameter.style - The style (short) parameter.Parameter(String),
Parameter(String,TransformService),
Parameter(String,TransformService,short),
isConstantParameter()
public Parameter(java.lang.String key,
TransformService transform)
Parameter object using the input parameter(s). org.eclipse.soda.dk.transform.service.TransformService
key - The key (String) parameter.transform - The transform (TransformService) parameter.Parameter(String),
Parameter(String,short),
Parameter(String,TransformService,short),
isConstantParameter()
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
key - The key (String) parameter.transform - The transform (TransformService) parameter.style - The style (short) parameter.Parameter(String),
Parameter(String,short),
Parameter(String,TransformService),
isConstantParameter()| Method Detail |
|---|
public static byte[] getBytes(byte[] bytes,
int offset,
int length)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.
byte[]) value.setBytes(byte[],int,int,byte[]),
decodeBytes(byte[],ParameterCursorService),
encodeBytes(byte[],Object,ParameterCursorService)public static short getDefaultStyle()
short) value.
public static long getLong(byte[] bytes,
int offset,
int length)
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)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.value - The value (long) parameter.
public static void setBytes(byte[] bytes,
int offset,
int length,
byte[] data)
bytes - The bytes (byte[]) parameter.offset - The offset (int) parameter.length - The length (int) parameter.data - The data (byte[]) parameter.getBytes(byte[],int,int),
decodeBytes(byte[],ParameterCursorService),
encodeBytes(byte[],Object,ParameterCursorService)public java.lang.Object decode(java.lang.Object container)
decode in interface DataParameterServicecontainer - The container (Object) parameter.
Object) value.
public java.lang.Object decodeBytes(byte[] container,
ParameterCursorService cursor)
container - The container (byte[]) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.getBytes(byte[],int,int),
setBytes(byte[],int,int,byte[]),
encodeBytes(byte[],Object,ParameterCursorService)public java.lang.Object decodeEnd(java.lang.Object object)
object - The object (Object) parameter.
Object) value.
protected java.lang.Object decodeMessage(MessageService message,
ParameterCursorService cursor)
Object result. org.eclipse.soda.dk.message.service.MessageService
message - The message (MessageService) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.encodeMessage(MessageService,Object,int,ParameterCursorService)
public java.lang.Object decodeString(java.lang.String container,
ParameterCursorService cursor)
container - The container (String) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.encodeString(String,Object,ParameterCursorService)public java.lang.Object decodeValue(MessageService message)
decodeValue in interface ParameterServicemessage - The message (MessageService) parameter.
Object) value.decodeValue(MessageService,ParameterCursorService),
encodeValue(MessageService,Object),
encodeValue(MessageService,Object,ParameterCursorService)
public java.lang.Object decodeValue(MessageService message,
ParameterCursorService cursor)
throws java.lang.NumberFormatException
Object result.
decodeValue in interface ParameterServicemessage - The message (MessageService) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.
java.lang.NumberFormatException - Number Format Exception.decodeValue(MessageService),
encodeValue(MessageService,Object),
encodeValue(MessageService,Object,ParameterCursorService)
public java.lang.Object encode(java.lang.Object container,
java.lang.Object data)
encode in interface DataParameterServicecontainer - The container (Object) parameter.data - The data (Object) parameter.
Object) value.public java.lang.Object encodeBegin(java.lang.Object value)
value - The value (Object) parameter.
Object) value.
public java.lang.Object encodeBytes(byte[] container,
java.lang.Object data,
ParameterCursorService cursor)
container - The container (byte[]) parameter.data - The data (Object) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.getBytes(byte[],int,int),
setBytes(byte[],int,int,byte[]),
decodeBytes(byte[],ParameterCursorService)
public MessageService encodeMessage(MessageService message,
java.lang.Object value,
int offset,
ParameterCursorService cursor)
MessageService result. org.eclipse.soda.dk.message.service.MessageService java.lang.Object int value.
message - The message (MessageService) parameter.value - The value (Object) parameter.offset - The offset (int) parameter.cursor - The cursor (ParameterCursorService) parameter.
MessageService)decodeMessage(MessageService,ParameterCursorService)
public java.lang.Object encodeString(java.lang.String container,
java.lang.Object data,
ParameterCursorService cursor)
container - The container (String) parameter.data - The data (Object) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.decodeString(String,ParameterCursorService)
public MessageService encodeValue(MessageService message,
java.lang.Object value)
encodeValue in interface ParameterServicemessage - The message (MessageService) parameter.value - The value (Object) parameter.
MessageService) value.decodeValue(MessageService),
decodeValue(MessageService,ParameterCursorService),
encodeValue(MessageService,Object,ParameterCursorService)
public MessageService encodeValue(MessageService message,
java.lang.Object value,
ParameterCursorService cursor)
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.cursor - The cursor (ParameterCursorService) parameter.
MessageService)decodeValue(MessageService),
decodeValue(MessageService,ParameterCursorService),
encodeValue(MessageService,Object)public boolean equals(java.lang.Object object)
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)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 isConstantParameter()
isConstantParameter in interface ParameterServiceboolean) 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)
style - The style (short) parameter.getDefaultStyle(),
getStyle(),
getTypeStyle()protected void setTransform(TransformService transform)
transform - The transform (TransformService) parameter.getTransform()protected void updateCursor(ParameterCursorService cursor)
cursor - 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 | |||||||||