|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ParameterService
The ParameterService interface defines the ParameterService concept. A ParameterService is used to describe the location and type of a piece of data contained within a message. A ParameterService knows how to encode itself into a message, as well as how to extract itself from a message.
MessageService| Field Summary | |
|---|---|
static short |
ARRAY
Define the array (short) constant. |
static short |
ASCII
Define the ASCII parameter type style. |
static short |
ASCIIZ
Define the ASCIIZ (zero terminated) parameter type style. |
static short |
BOOLEAN
Define the boolean parameter type style. |
static short |
BYTE
Define the byte parameter type style. |
static short |
BYTES
Define the byte[] parameter type style. |
static short |
DOUBLE
Define the double parameter type style. |
static short |
FLOAT
Define the float parameter type style. |
static short |
HEXASCII
Define the hex ASCII parameter type style. |
static short |
HEXSTRING
Define the hex string parameter type style. |
static short |
INSERT
Define the insert parameter style. |
static short |
INTEGER
Define the integer parameter type style. |
static short |
LITTLEENDIAN
Define the little endian parameter style. |
static short |
LONG
Define the long (short) constant. |
static short |
NASCII
Define the numeric ASCII parameter type style. |
static short |
NSTRING
Define the numeric string parameter type style. |
static short |
NULL
Define the null parameter style. |
static java.lang.String |
SERVICE_NAME
Define the OSGi service name. |
static short |
SHORT
Define the short parameter type style. |
static short |
STRING
Define the String parameter type style. |
static int |
UNLIMITED
Define the unlimited (int) constant. |
static short |
UNSIGNED
Define the unsigned parameter style. |
static int |
USE_CURSOR
Define the offset use cursor (int) constant. |
static int |
USE_CURSOR_INSERT
Define the offset use cursor insert (int) constant. |
| Method Summary | |
|---|---|
java.lang.Object |
decodeValue(MessageService message)
Perform the decodeValue method and return the Object result. |
java.lang.Object |
decodeValue(MessageService message,
ParameterCursorService cursor)
Decode value with the specified message and cursor parameters and return the Object result. |
MessageService |
encodeValue(MessageService message,
java.lang.Object value)
Perform the encodeValue method and return the MessageService result. |
MessageService |
encodeValue(MessageService message,
java.lang.Object value,
ParameterCursorService cursor)
Encode value with the specified message, value and cursor parameters and return the MessageService result. |
java.lang.String |
getKey()
Return the key of this parameter. |
boolean |
isConstantParameter()
Gets the constant parameter (boolean) value. |
| Methods inherited from interface org.eclipse.soda.dk.data.parameter.service.DataParameterService |
|---|
decode, encode |
| Field Detail |
|---|
static final java.lang.String SERVICE_NAME
static final int UNLIMITED
static final short NULL
static final short UNSIGNED
static final short LITTLEENDIAN
static final short INSERT
static final short ARRAY
static final short INTEGER
static final short BYTE
static final short SHORT
static final short BOOLEAN
static final short STRING
static final short BYTES
static final short NSTRING
static final short ASCII
static final short NASCII
static final short ASCIIZ
static final short FLOAT
static final short DOUBLE
static final short HEXSTRING
static final short HEXASCII
static final short LONG
static final int USE_CURSOR
static final int USE_CURSOR_INSERT
| Method Detail |
|---|
java.lang.Object decodeValue(MessageService message)
Object result.
This API takes a message as a parameter and extracts the appropriate parameter
information from the message, returning it in the appropriate form.
message - org.eclipse.soda.dk.message.service.MessageService
Object) value.decodeValue(MessageService,ParameterCursorService),
encodeValue(MessageService,Object),
encodeValue(MessageService,Object,ParameterCursorService)
java.lang.Object decodeValue(MessageService message,
ParameterCursorService cursor)
message - The message (MessageService) parameter.cursor - The cursor (ParameterCursorService) parameter.
Object) value.decodeValue(MessageService),
encodeValue(MessageService,Object),
encodeValue(MessageService,Object,ParameterCursorService)
MessageService encodeValue(MessageService message,
java.lang.Object value)
MessageService result.
This API takes the value specified in the value parameter, and properly
encodes the value into the message parameter, and returns the encoded MessageService.
message - org.eclipse.soda.dk.message.service.MessageServicevalue - java.lang.Object
MessageService) value.decodeValue(MessageService),
decodeValue(MessageService,ParameterCursorService),
encodeValue(MessageService,Object,ParameterCursorService)
MessageService encodeValue(MessageService message,
java.lang.Object value,
ParameterCursorService cursor)
message - The message (MessageService) parameter.value - The value (Object) parameter.cursor - The cursor (ParameterCursorService) parameter.
MessageService) value.decodeValue(MessageService),
decodeValue(MessageService,ParameterCursorService),
encodeValue(MessageService,Object)java.lang.String getKey()
boolean isConstantParameter()
boolean) value.
|
2009-01-09 1.2.0 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||