org.milyn.cdr
Class PropertyListParameterDecoder
java.lang.Object
org.milyn.cdr.ParameterDecoder
org.milyn.cdr.PropertyListParameterDecoder
- All Implemented Interfaces:
- ContentHandler
public class PropertyListParameterDecoder
- extends ParameterDecoder
ParameterDecoder used to convert a parameter String value to a
list of Properties.
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();
Note, we will make this filter easier in the next release. You'll be able to call a method such
as "getDecodedParameter" on the SmooksResourceConfiguration, returning a decoded parameter Object.
- Author:
- tfennelly
- See Also:
SmooksResourceConfiguration
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PropertyListParameterDecoder
public PropertyListParameterDecoder()
decodeValue
public Object decodeValue(String value)
throws ParameterDecodeException
- Description copied from class:
ParameterDecoder
- Decode the supplied parameter value.
- Specified by:
decodeValue in class ParameterDecoder
- Parameters:
value - The value to be decoded.
- Returns:
- The decode value Object.
- Throws:
ParameterDecodeException - Unable to decode parameter value.
Copyright © 2008. All Rights Reserved.