public class Parameter extends Object
Modifier and Type | Field and Description |
---|---|
static String |
PARAM_TYPE_PREFIX |
Constructor and Description |
---|
Parameter(String name,
Object value)
Public constructor.
|
Parameter(String name,
String value)
Public constructor.
|
Parameter(String name,
String value,
String type)
Public constructor.
|
Modifier and Type | Method and Description |
---|---|
String |
getName()
Get the parameter name.
|
Object |
getObjValue()
Get the object value associated with this parameter.
|
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.
|
Parameter |
setXML(Element xml)
Set the DOM element node associated with the parameter definition.
|
String |
toString() |
public static final String PARAM_TYPE_PREFIX
public Parameter(String name, String value)
name
- Parameter name.value
- Parameter value.public Parameter(String name, Object 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.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 Object getObjValue()
public Parameter setXML(Element xml)
xml
- Parameter configuration xml.public Element getXml()
Copyright © 2020. All rights reserved.