Class PropertyListParameterDecoder
- java.lang.Object
-
- org.smooks.engine.resource.config.ParameterDecoder<String>
-
- org.smooks.engine.resource.config.PropertyListParameterDecoder
-
- All Implemented Interfaces:
ContentHandler
public class PropertyListParameterDecoder extends ParameterDecoder<String>
ParameterDecoder
used to convert a parameter String value to a list ofProperties
. This decoder is pre-installed.Example Usage
<param name="magic-properties-param" type="properties"> x=11111 y=22222 z=33333 </param>
The code for accessing this parameter value:
Parameter
param =resourceConfig
.getParameter("magic-properties-param")
;Properties
properties = (Properties)param.getValue
();ResourceConfig
, returning a decoded parameter Object.- Author:
- tfennelly
- See Also:
ResourceConfig
-
-
Constructor Summary
Constructors Constructor Description PropertyListParameterDecoder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
decodeValue(String value)
Decode the supplied parameter value.
-
-
-
Method Detail
-
decodeValue
public Object decodeValue(String value) throws ParameterDecodeException
Description copied from class:ParameterDecoder
Decode the supplied parameter value.- Specified by:
decodeValue
in classParameterDecoder<String>
- Parameters:
value
- The value to be decoded.- Returns:
- The decode value Object.
- Throws:
ParameterDecodeException
- Unable to decode parameter value.
-
-