|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.milyn.cdr.Parameter
public class Parameter
SmooksResourceConfiguration Parameter.
Wrapper for a param. Handles decoding.
| Field Summary | |
|---|---|
static String |
PARAM_TYPE_PREFIX
|
| Constructor Summary | |
|---|---|
Parameter(String name,
String value)
Public constructor. |
|
Parameter(String name,
String value,
String type)
Public constructor. |
|
| Method Summary | |
|---|---|
String |
getName()
Get the parameter name. |
String |
getType()
Get the parameter type. |
String |
getValue()
Get the parameter value "undecoded". |
Object |
getValue(ContentDeliveryConfig deliveryConfig)
Get the parameter value "decoded" into an Object. |
Element |
getXml()
Get the DOM element node associated with the parameter definition. |
protected void |
setXML(Element xml)
Set the DOM element node associated with the parameter definition. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final String PARAM_TYPE_PREFIX
| Constructor Detail |
|---|
public Parameter(String name,
String value)
name - Parameter name.value - Parameter value.
public Parameter(String name,
String value,
String type)
name - Parameter name.value - Parameter value.type - Parameter type. This argument identifies the
ParameterDecoder to use for decoding the param value.| Method Detail |
|---|
public String getName()
public String getType()
public String getValue()
public Object getValue(ContentDeliveryConfig deliveryConfig)
throws ParameterDecodeException
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>".
deliveryConfig - Requesting device ContentDeliveryConfig.
ParameterDecodeException - Unable to decode parameter value.public String toString()
toString in class Objectprotected void setXML(Element xml)
xml - Parameter configuration xml.public Element getXml()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||