de.dfki.util.xmlrpc
Enum XmlRpc.Type

java.lang.Object
  extended by java.lang.Enum<XmlRpc.Type>
      extended by de.dfki.util.xmlrpc.XmlRpc.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<XmlRpc.Type>
Enclosing class:
XmlRpc

public static enum XmlRpc.Type
extends java.lang.Enum<XmlRpc.Type>

XML-RPC Type constants. Also maps XML-RPC types to java types.

Author:
lauer

Enum Constant Summary
ARRAY
           
BASE64
           
BOOLEAN
           
DATE
           
DOUBLE
           
FLOAT
           
INT
           
NONE
           
STRING
           
STRINGasBASE64
           
STRUCT
           
 
Method Summary
 java.lang.Class<?> getCorrespondingBaseType()
           
 java.lang.Class<?> getCorrespondingParameterType()
           
 java.lang.Class<?> getCorrespondingPrimitiveType()
           
static XmlRpc.Type valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static XmlRpc.Type[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

INT

public static final XmlRpc.Type INT

BOOLEAN

public static final XmlRpc.Type BOOLEAN

STRING

public static final XmlRpc.Type STRING

DOUBLE

public static final XmlRpc.Type DOUBLE

FLOAT

public static final XmlRpc.Type FLOAT

DATE

public static final XmlRpc.Type DATE

STRUCT

public static final XmlRpc.Type STRUCT

ARRAY

public static final XmlRpc.Type ARRAY

BASE64

public static final XmlRpc.Type BASE64

STRINGasBASE64

public static final XmlRpc.Type STRINGasBASE64

NONE

public static final XmlRpc.Type NONE
Method Detail

values

public static XmlRpc.Type[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (XmlRpc.Type c : XmlRpc.Type.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static XmlRpc.Type valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null

getCorrespondingBaseType

public java.lang.Class<?> getCorrespondingBaseType()

getCorrespondingParameterType

public java.lang.Class<?> getCorrespondingParameterType()

getCorrespondingPrimitiveType

public java.lang.Class<?> getCorrespondingPrimitiveType()


Copyright © 2012. All Rights Reserved.