1.0.0

org.eclipse.soda.dk.parameter.service
Interface ParameterService

All Superinterfaces:
DataParameterService
All Known Implementing Classes:
BitOffsetParameter, ByteOffsetParameter, FieldParameter, ListParameters, MapParameters, OffsetParameter, Parameter, Parameters, SimpleIntegerParameter, SimpleParameter, TagParameter

public interface ParameterService
extends DataParameterService

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.

Version:
1.0.0
See Also:
Parameter, 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 litte 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 short SHORT
          Define the short parameter type style.
static short STRING
          Define the String parameter type style.
static short UNSIGNED
          Define the unsigned parameter style.
 
Method Summary
 java.lang.Object decodeValue(MessageService message)
          Perform the decodeValue method and return the Object result.
 MessageService encodeValue(MessageService message, java.lang.Object value)
          Perform the encodeValue method and return the MessageService result.
 java.lang.String getKey()
          Return the key of this parameter.
 
Methods inherited from interface org.eclipse.soda.dk.data.parameter.service.DataParameterService
decode, encode
 

Field Detail

NULL

static final short NULL
Define the null parameter style.

See Also:
Constant Field Values

UNSIGNED

static final short UNSIGNED
Define the unsigned parameter style.

See Also:
Constant Field Values

LITTLEENDIAN

static final short LITTLEENDIAN
Define the litte endian parameter style.

See Also:
Constant Field Values

INSERT

static final short INSERT
Define the insert parameter style.

See Also:
Constant Field Values

ARRAY

static final short ARRAY
Define the array (short) constant.

See Also:
Constant Field Values

INTEGER

static final short INTEGER
Define the integer parameter type style.

See Also:
Constant Field Values

BYTE

static final short BYTE
Define the byte parameter type style.

See Also:
Constant Field Values

SHORT

static final short SHORT
Define the short parameter type style.

See Also:
Constant Field Values

BOOLEAN

static final short BOOLEAN
Define the boolean parameter type style.

See Also:
Constant Field Values

STRING

static final short STRING
Define the String parameter type style.

See Also:
Constant Field Values

BYTES

static final short BYTES
Define the byte[] parameter type style.

See Also:
Constant Field Values

NSTRING

static final short NSTRING
Define the numeric string parameter type style.

See Also:
Constant Field Values

ASCII

static final short ASCII
Define the ASCII parameter type style.

See Also:
Constant Field Values

NASCII

static final short NASCII
Define the numeric ASCII parameter type style.

See Also:
Constant Field Values

ASCIIZ

static final short ASCIIZ
Define the ASCIIZ (zero terminated) parameter type style.

See Also:
Constant Field Values

FLOAT

static final short FLOAT
Define the float parameter type style.

See Also:
Constant Field Values

DOUBLE

static final short DOUBLE
Define the double parameter type style.

See Also:
Constant Field Values

HEXSTRING

static final short HEXSTRING
Define the hex string parameter type style.

See Also:
Constant Field Values

HEXASCII

static final short HEXASCII
Define the hex ASCII parameter type style.

See Also:
Constant Field Values

LONG

static final short LONG
Define the long (short) constant.

See Also:
Constant Field Values
Method Detail

decodeValue

java.lang.Object decodeValue(MessageService message)
Perform the decodeValue method and return the 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.

Parameters:
message - org.eclipse.soda.dk.message.service.MessageService
Returns:
Results of the decode value (Object) value.
See Also:
encodeValue(MessageService,Object)

encodeValue

MessageService encodeValue(MessageService message,
                           java.lang.Object value)
Perform the encodeValue method and return the 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.

Parameters:
message - org.eclipse.soda.dk.message.service.MessageService
value - java.lang.Object
Returns:
Results of the encode value (MessageService) value.
See Also:
decodeValue(MessageService)

getKey

java.lang.String getKey()
Return the key of this parameter. The key must be unique to set of parameters to a message. This API returns the tag as specified in the CML file. If is not specified, then the result is the id attribute.

Returns:
Object The parameter key.

1.0.0

Copyright (c) 1999, 2007 IBM