Class StringSplitConverter
java.lang.Object
org.x4o.xml.conv.AbstractObjectConverter
org.x4o.xml.conv.AbstractStringObjectConverter
org.x4o.xml.conv.text.StringSplitConverter
- All Implemented Interfaces:
Serializable
,Cloneable
,ObjectConverter
StringSplitConverter.
- Version:
- 1.0 Aug 23, 2012
- Author:
- Willem Cazander
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.x4o.xml.conv.AbstractObjectConverter
converters
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addStringSplitConverterStep
(StringSplitConverterStep stringSplitConverterStep) clone()
Clone this ObjectConverter.convertStringBack
(Object object, Locale locale) Converts object into string.convertStringTo
(String str, Locale locale) Converts string into object.Class
<?> Class
<?> Returns the convert to class.getSplit()
void
removeStringSplitConverterStep
(StringSplitConverterStep stringSplitConverterStep) void
setClassTo
(Class<?> classTo) void
setSingleToMethod
(String singleToMethod) void
void
setSplitSize
(Integer splitSize) void
setUseNativeType
(Boolean useNativeType) Methods inherited from class org.x4o.xml.conv.AbstractStringObjectConverter
convertAfterBack, convertAfterTo, getObjectClassBack
Methods inherited from class org.x4o.xml.conv.AbstractObjectConverter
addObjectConverter, cloneConverters, convertBack, convertTo, getObjectConverters, removeObjectConverter
-
Constructor Details
-
StringSplitConverter
public StringSplitConverter()
-
-
Method Details
-
getObjectClassTo
Returns the convert to class.- Returns:
- The class to convert to.
- See Also:
-
convertStringTo
Converts string into object.- Specified by:
convertStringTo
in 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:
convertStringBack
in classAbstractStringObjectConverter
- Parameters:
object
- 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:
clone
in interfaceObjectConverter
- Specified by:
clone
in classAbstractObjectConverter
- Returns:
- The cloned ObjectConverter.
- Throws:
CloneNotSupportedException
- When cloning fails.- See Also:
-
getClassTo
- Returns:
- the classTo
-
setClassTo
- Parameters:
classTo
- the classTo to set
-
getSplit
- Returns:
- the split
-
setSplit
- Parameters:
split
- the split to set
-
getSplitSize
- Returns:
- the splitSize
-
setSplitSize
- Parameters:
splitSize
- the splitSize to set
-
getSingleToMethod
- Returns:
- the singleToMethod
-
setSingleToMethod
- Parameters:
singleToMethod
- the singleToMethod to set
-
getUseNativeType
- Returns:
- the useNativeType
-
setUseNativeType
- Parameters:
useNativeType
- the useNativeType to set
-
addStringSplitConverterStep
-
removeStringSplitConverterStep
-
getStringSplitConverterSteps
-