org.apache.xmlrpc
Class DefaultTypeFactory
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
- Author:
- Andrew Evers
- See Also:
TypeFactory
Method Summary |
java.lang.Object |
createBase64(java.lang.String cdata)
Create a local object for a <base64> tag. |
java.lang.Object |
createBoolean(java.lang.String cdata)
Create a local object for a <boolean> tag. |
java.lang.Object |
createDate(java.lang.String cdata)
Create a local object for a <dateTime.iso8601> tag. |
java.lang.Object |
createDouble(java.lang.String cdata)
Create a local object for a <double> tag. |
java.lang.Object |
createInteger(java.lang.String cdata)
Create a local object for an <int> or <i4> tag. |
java.lang.Object |
createString(java.lang.String cdata)
Create a local object for a <string> tag. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.