Milyn-Smooks Version 0.4

org.milyn.cdr
Class CDRDef.Parameter

java.lang.Object
  extended byorg.milyn.cdr.CDRDef.Parameter
Enclosing class:
CDRDef

public static class CDRDef.Parameter
extends java.lang.Object

CDRDef Parameter.

Wrapper for a param. Handles decoding.

Author:
tfennelly

Field Summary
static java.lang.String PARAM_TYPE_PREFIX
           
 
Method Summary
 java.lang.String getValue()
          Get the parameter value "undecoded".
 java.lang.Object getValue(ContentDeliveryConfig deliveryConfig)
          Get the parameter value "decoded" into an Object.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PARAM_TYPE_PREFIX

public static final java.lang.String PARAM_TYPE_PREFIX
See Also:
Constant Field Values
Method Detail

getValue

public java.lang.String getValue()
Get the parameter value "undecoded".

Returns:
Parameter value.

getValue

public java.lang.Object getValue(ContentDeliveryConfig deliveryConfig)
                          throws ParameterDecodeException
Get the parameter value "decoded" into an Object.

Uses the supplied deliveryConfig to get the ParameterDecoder implementation to be used to decode the parameter value. Looks up the ParameterDecoder using the parameter type - selector="decoder-<type>".

Parameters:
deliveryConfig - Requesting device ContentDeliveryConfig.
Returns:
Decoded value.
Throws:
ParameterDecodeException - Unable to decode parameter value.

toString

public java.lang.String toString()

Milyn-Smooks Version 0.4