1.0.0

org.eclipse.soda.dk.parameter
Class Parameters

java.lang.Object
  extended by org.eclipse.soda.dk.parameter.Parameters
All Implemented Interfaces:
DataParameterService, ParameterService
Direct Known Subclasses:
MapParameters

public class Parameters
extends java.lang.Object
implements ParameterService, DataParameterService

Version:
1.0.0

Field Summary
protected  ParameterService[] parameters
          Define the parameters (ParameterService[]) field.
 
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
Parameters(java.lang.String key, ParameterService[] parameters)
          Constructs an instance of this class from the specified key and parameters parameters.
 
Method Summary
 java.lang.Object decode(java.lang.Object container)
          Decode 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 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 obj)
          Compares two objects for equality.
 java.lang.String getKey()
          Gets the key (String) value.
 ParameterService[] getParameters()
          Gets the parameters (ParameterService[]) value.
 int hashCode()
          Generates a hash code for the receiver.
 void setKey(java.lang.String key)
          Sets the key.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parameters

protected ParameterService[] parameters
Define the parameters (ParameterService[]) field.

Constructor Detail

Parameters

public Parameters(java.lang.String key,
                  ParameterService[] parameters)
Constructs an instance of this class from the specified key and parameters parameters.

Parameters:
key - The key (String) parameter.
parameters - The parameters (ParameterService[]) parameter.
See Also:
getParameters()
Method Detail

decode

public java.lang.Object decode(java.lang.Object container)
Decode with the specified container parameter and return the Object result.

Specified by:
decode in interface DataParameterService
Parameters:
container - The container (Object) parameter.
Returns:
Results of the decode (Object) value.

decodeValue

public java.lang.Object decodeValue(MessageService message)
Perform the decodeValue method and return the Object result.

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

encode

public java.lang.Object encode(java.lang.Object container,
                               java.lang.Object data)
Encode with the specified container and data parameters and return the Object result.

Specified by:
encode in interface DataParameterService
Parameters:
container - The container (Object) parameter.
data - The data (Object) parameter.
Returns:
Results of the encode (Object) value.

encodeValue

public MessageService encodeValue(MessageService message,
                                  java.lang.Object value)
Perform the encodeValue method and return the MessageService result.

Specified by:
encodeValue in interface ParameterService
Parameters:
message - org.eclipse.soda.dk.message.service.MessageService
value - java.lang.Object
Returns:
Results of the encode value (MessageService) value.
See Also:
ParameterService.encodeValue(org.eclipse.soda.dk.message.service.MessageService, java.lang.Object), decodeValue(MessageService)

equals

public boolean equals(java.lang.Object obj)
Compares two objects for equality. Returns a boolean that indicates whether this object is equivalent to the specified object. This method is used when an object is stored in a hashtable.

Overrides:
equals in class java.lang.Object
Parameters:
obj - the Object to compare with
Returns:
true if these Objects are equal; false otherwise.
See Also:
Hashtable

getKey

public java.lang.String getKey()
Gets the key (String) value.

Specified by:
getKey in interface ParameterService
Returns:
The key (String) value.
See Also:
setKey(String)

getParameters

public ParameterService[] getParameters()
Gets the parameters (ParameterService[]) value.

Returns:
The parameters (ParameterService[]) value.
See Also:
Parameters(String,ParameterService[])

hashCode

public int hashCode()
Generates a hash code for the receiver. This method is supported primarily for hash tables, such as those provided in java.util.

Overrides:
hashCode in class java.lang.Object
Returns:
an integer hash code for the receiver
See Also:
Hashtable

setKey

public void setKey(java.lang.String key)
Sets the key.

Parameters:
key - The key to set
See Also:
getKey()

1.0.0

Copyright (c) 1999, 2007 IBM