public class PropertyFormatter extends Object
PropertyFormatInfo metadata.| Constructor and Description |
|---|
PropertyFormatter(PropertyFormatInfo formatInfo) |
| Modifier and Type | Method and Description |
|---|---|
ParametersCallback |
format(ParametersCallback parameters)
Creates a
ParametersCallback which formats parameters returned by the original callback. |
String |
format(String propertyName,
Object value)
Formats given object to string.
|
PropertyFormatInfo |
getFormatInfo() |
Object |
parse(String propertyName,
String value)
Parses a string value to an object (if mapping is defined in
PropertyFormatInfo). |
public PropertyFormatter(PropertyFormatInfo formatInfo)
public Object parse(String propertyName, String value)
PropertyFormatInfo).propertyName - name of the propertyvalue - value to parse.PropertyFormatInfo), otherwise the unmodified value.public String format(String propertyName, Object value)
propertyName - name of the property. (Case-sensitive)value - value to format.public PropertyFormatInfo getFormatInfo()
public ParametersCallback format(ParametersCallback parameters)
ParametersCallback which formats parameters returned by the original callback.parameters - parameters callback to use as a sourceParametersCallback which formats parameters returned by the original callback.Copyright © 2006-2012. All Rights Reserved.