public class PropertyListParameterDecoder extends ParameterDecoder
ParameterDecoder
used to convert a parameter String value to a
list of Properties
.
This decoder is pre-installed.
<param name="magic-properties-param" type="properties"> x=11111 y=22222 z=33333 </param>The code for accessing this parameter value:Note, we will make this filter easier in the next release. You'll be able to call a method such as "getDecodedParameter" on theParameter
param =resourceConfig
.getParameter("magic-properties-param")
;Properties
properties = (Properties)param.getValue
();SmooksResourceConfiguration
, returning a decoded parameter Object.
SmooksResourceConfiguration
Constructor and Description |
---|
PropertyListParameterDecoder() |
Modifier and Type | Method and Description |
---|---|
Object |
decodeValue(String value)
Decode the supplied parameter value.
|
public Object decodeValue(String value) throws ParameterDecodeException
ParameterDecoder
decodeValue
in class ParameterDecoder
value
- The value to be decoded.ParameterDecodeException
- Unable to decode parameter value.Copyright © 2020. All rights reserved.