Class PointConverter
java.lang.Object
org.apache.commons.beanutils2.converters.AbstractConverter<Point>
org.apache.commons.beanutils2.converters.PointConverter
- Since:
- 2.0.0
- 
Constructor SummaryConstructorsConstructorDescriptionConstruct aPointConverter that throws aConversionExceptionif an error occurs.PointConverter(Point defaultValue) Constructs aConverterthat will return the specified default value if a conversion error occurs.
- 
Method SummaryModifier and TypeMethodDescriptionprotected <T> TconvertToType(Class<T> type, Object value) Converts the specified input object into an output object of the specified type.Gets the default type thisConverterhandles.Methods inherited from class org.apache.commons.beanutils2.converters.AbstractConverterconversionException, convert, convertArray, convertToString, getDefault, handleError, handleMissing, isUseDefault, setDefaultValue, toLowerCase, toString, toString, toTrim
- 
Constructor Details- 
PointConverterpublic PointConverter()Construct aPointConverter that throws aConversionExceptionif an error occurs.
- 
PointConverterConstructs aConverterthat will return the specified default value if a conversion error occurs.- Parameters:
- defaultValue- The default value to be returned if the value to be converted is missing or an error occurs converting the value.
 
 
- 
- 
Method Details- 
convertToTypeConverts the specified input object into an output object of the specified type.- Specified by:
- convertToTypein class- AbstractConverter<Point>
- Type Parameters:
- T- Target type of the conversion.
- Parameters:
- type- Data type to which this value should be converted.
- value- The- Stringproperty value to convert.
- Returns:
- A Pointrepresented by the x and y coordinate of the input.
- Throws:
- NullPointerException- If the value is null.
- IllegalArgumentException- If the configuration value is an invalid representation of a- Point.
- NumberFormatException- If a one of coordinates cannot be parsed to an- Integer.
- Throwable- if an error occurs converting to the specified type
 
- 
getDefaultTypeGets the default type thisConverterhandles.- Specified by:
- getDefaultTypein class- AbstractConverter<Point>
- Returns:
- The default type this Converterhandles.
- Since:
- 2.0.0
 
 
-