org.apache.xmlrpc
Class DefaultTypeDecoder
java.lang.Object
org.apache.xmlrpc.DefaultTypeDecoder
- TypeDecoder
public class DefaultTypeDecoder
extends java.lang.Object
The default implementation of the
TypeDecoder
interface. Provides the following mappings:
XML-RPC data type | Java class |
---|
<i4> or <int> | java.lang.Integer |
<double> | java.lang.Double, java.lang.Float |
boolean | isXmlRpcDouble(Object o) - Test if a local object translates to a <double> tag.
|
boolean | isXmlRpcI4(Object o) - Test if a local object translates to an <i4> tag.
|
DefaultTypeDecoder
public DefaultTypeDecoder()
Creates a new instance.
isXmlRpcDouble
public boolean isXmlRpcDouble(Object o)
Test if a local object translates to a <double> tag.
- isXmlRpcDouble in interface TypeDecoder
isXmlRpcI4
public boolean isXmlRpcI4(Object o)
Test if a local object translates to an <i4> tag.
- isXmlRpcI4 in interface TypeDecoder
Copyright B) 1999-2002 Apache Software Foundation. All Rights Reserved.