org.apache.xmlrpc
Class DefaultTypeDecoder

java.lang.Object
  extended by org.apache.xmlrpc.DefaultTypeDecoder
All Implemented Interfaces:
TypeDecoder

public class DefaultTypeDecoder
extends java.lang.Object
implements TypeDecoder

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

Since:
1.2
Author:
Andrew Evers
See Also:
TypeDecoder

Constructor Summary
DefaultTypeDecoder()
          Creates a new instance.
 
Method Summary
 boolean isXmlRpcDouble(java.lang.Object o)
          Test if a local object translates to a <double> tag.
 boolean isXmlRpcI4(java.lang.Object o)
          Test if a local object translates to an <i4> tag.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTypeDecoder

public DefaultTypeDecoder()
Creates a new instance.

Method Detail

isXmlRpcI4

public boolean isXmlRpcI4(java.lang.Object o)
Description copied from interface: TypeDecoder
Test if a local object translates to an <i4> tag.

Specified by:
isXmlRpcI4 in interface TypeDecoder

isXmlRpcDouble

public boolean isXmlRpcDouble(java.lang.Object o)
Description copied from interface: TypeDecoder
Test if a local object translates to a <double> tag.

Specified by:
isXmlRpcDouble in interface TypeDecoder


Copyright 2001-2001-2005 Apache Software Foundation. All Rights Reserved.