org.apache.xmlrpc

Class DefaultTypeDecoder

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 typeJava class
<i4> or <int>java.lang.Integer
<double>java.lang.Double, java.lang.Float
Author:
Andrew Evers
Since:
1.2
See Also:
TypeDecoder

Constructor Summary

DefaultTypeDecoder()
Creates a new instance.

Method Summary

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.

Constructor Details

DefaultTypeDecoder

public DefaultTypeDecoder()
Creates a new instance.

Method Details

isXmlRpcDouble

public boolean isXmlRpcDouble(Object o)
Test if a local object translates to a <double> tag.
Specified by:
isXmlRpcDouble in interface TypeDecoder

isXmlRpcI4

public boolean isXmlRpcI4(Object o)
Test if a local object translates to an <i4> tag.
Specified by:
isXmlRpcI4 in interface TypeDecoder

Copyright B) 1999-2002 Apache Software Foundation. All Rights Reserved.