Class ClassConverter
java.lang.Object
org.x4o.xml.conv.AbstractObjectConverter
org.x4o.xml.conv.AbstractStringObjectConverter
org.x4o.xml.conv.text.ClassConverter
- All Implemented Interfaces:
Serializable, Cloneable, ObjectConverter
Converts a String of an className into the the Class object.
- Version:
- 1.0 Aug 31, 2007
- Author:
- Willem Cazander
- See Also:
-
Field Summary
Fields inherited from class AbstractObjectConverter
converters -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()Clone this ObjectConverter.convertStringBack(Object obj, Locale locale) Converts object into string.convertStringTo(String str, Locale locale) Converts string into object.Class<?> Returns the convert to class.Methods inherited from class AbstractStringObjectConverter
convertAfterBack, convertAfterTo, getObjectClassBackMethods inherited from class AbstractObjectConverter
addObjectConverter, cloneConverters, convertBack, convertTo, getObjectConverters, removeObjectConverter
-
Constructor Details
-
ClassConverter
public ClassConverter()
-
-
Method Details
-
getObjectClassTo
Returns the convert to class.- Returns:
- The class to convert to.
- See Also:
-
convertStringTo
Converts string into object.- Specified by:
convertStringToin classAbstractStringObjectConverter- Parameters:
str- The string to convert to object.locale- The locale to convert the string from.- Returns:
- The object converted from the string.
- Throws:
ObjectConverterException- When conversion fails.- See Also:
-
convertStringBack
Converts object into string.- Specified by:
convertStringBackin classAbstractStringObjectConverter- Parameters:
obj- The object to convert to string.locale- The locale to convert the object from.- Returns:
- The string converted from the object.
- Throws:
ObjectConverterException- When conversion fails.- See Also:
-
clone
Clone this ObjectConverter.- Specified by:
clonein interfaceObjectConverter- Specified by:
clonein classAbstractObjectConverter- Returns:
- The cloned ObjectConverter.
- Throws:
CloneNotSupportedException- When cloning fails.- See Also:
-