org.nuiton.io.xpp3
Enum DefaultDataConverter

java.lang.Object
  extended by java.lang.Enum<DefaultDataConverter>
      extended by org.nuiton.io.xpp3.DefaultDataConverter
All Implemented Interfaces:
Serializable, Comparable<DefaultDataConverter>, DataConverter

public enum DefaultDataConverter
extends Enum<DefaultDataConverter>
implements DataConverter

A enumaration to convert some data from a string representation.

Since:
1.0.0
Author:
chemit

Enum Constant Summary
Boolean
           
Double
           
Float
           
Integer
           
Long
           
Short
           
Text
           
 
Method Summary
static DefaultDataConverter valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DefaultDataConverter[] 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
 
Methods inherited from interface org.nuiton.io.xpp3.DataConverter
convert
 

Enum Constant Detail

Boolean

public static final DefaultDataConverter Boolean

Short

public static final DefaultDataConverter Short

Integer

public static final DefaultDataConverter Integer

Long

public static final DefaultDataConverter Long

Float

public static final DefaultDataConverter Float

Double

public static final DefaultDataConverter Double

Text

public static final DefaultDataConverter Text
Method Detail

values

public static DefaultDataConverter[] 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 (DefaultDataConverter c : DefaultDataConverter.values())
    System.out.println(c);

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

valueOf

public static DefaultDataConverter valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2009-2010 CodeLutin. All Rights Reserved.