public interface TypeConvertor extends TypeConvertor, Cloneable
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Creates and returns a copy of this object.
|
void |
configure(AbstractProperties properties)
Configure the converter with given configuration.
|
Object |
convert(Object object)
Convert the object from one type to another.
|
Class<?> |
fromType()
Get the type being converted from.
|
void |
parameterize(String parameter)
Initialize the converter with the given parameter.
|
Class<?> |
toType()
Get the type being converted to.
|
void configure(AbstractProperties properties)
properties - Properties to use.void parameterize(String parameter)
null which both should lead to
the default behaviour of the converter.parameter - The parameter for the convertor (null if is not specified).Object clone()
Class<?> fromType()
Class<?> toType()
Object convert(Object object) throws ClassCastException
convert in interface TypeConvertorobject - The object to convert.ClassCastException - The object is not of the type supported by this convertor.Copyright © 2014. All rights reserved.