java.lang.Object
org.apache.xmlrpc.DefaultTypeFactory
- All Implemented Interfaces:
- TypeFactory
- public class DefaultTypeFactory
- extends java.lang.Object
- implements TypeFactory
The default implementation of the TypeFactory
interface. Provides the following mappings:
| XML-RPC data type | Java class |
| <i4> or <int> | java.lang.Integer |
| <boolean> | java.lang.Boolean |
| <string> | java.lang.String |
| <double> | java.lang.Double |
| <dateTime.iso8601> | java.util.Date |
| <base64> | byte[ ] |
- Since:
- 1.2
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
dateTool
private static org.apache.xmlrpc.util.DateTool dateTool
- Thread-safe wrapper for the
DateFormat object used
to parse date/time values.
base64Codec
private static final org.apache.commons.codec.binary.Base64 base64Codec
DefaultTypeFactory
public DefaultTypeFactory()
- Creates a new instance.
createInteger
public java.lang.Object createInteger(java.lang.String cdata)
- Description copied from interface:
TypeFactory
- Create a local object for an <int> or <i4> tag.
- Specified by:
createInteger in interface TypeFactory
createBoolean
public java.lang.Object createBoolean(java.lang.String cdata)
- Description copied from interface:
TypeFactory
- Create a local object for a <boolean> tag.
- Specified by:
createBoolean in interface TypeFactory
createDouble
public java.lang.Object createDouble(java.lang.String cdata)
- Description copied from interface:
TypeFactory
- Create a local object for a <double> tag.
- Specified by:
createDouble in interface TypeFactory
createDate
public java.lang.Object createDate(java.lang.String cdata)
- Description copied from interface:
TypeFactory
- Create a local object for a <dateTime.iso8601> tag.
- Specified by:
createDate in interface TypeFactory
createBase64
public java.lang.Object createBase64(java.lang.String cdata)
- Description copied from interface:
TypeFactory
- Create a local object for a <base64> tag.
- Specified by:
createBase64 in interface TypeFactory
createString
public java.lang.Object createString(java.lang.String cdata)
- Description copied from interface:
TypeFactory
- Create a local object for a <string> tag.
- Specified by:
createString in interface TypeFactory