org.nuiton.jredmine.model.io.xpp3
Enum RedmineDataConverter

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

public enum RedmineDataConverter
extends java.lang.Enum<RedmineDataConverter>
implements org.nuiton.io.xpp3.DataConverter

A enumaration to convert some data from a string representation. Can not use directly a converter from commons-beans library, since we have several different converter to use for same type (see Date and Datetime).

Since:
1.0.0
Author:
chemit

Enum Constant Summary
Boolean
           
Date
           
Datetime
           
Double
           
Float
           
Integer
           
Long
           
Short
           
Text
           
 
Method Summary
static RedmineDataConverter valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static RedmineDataConverter[] 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 RedmineDataConverter Boolean

Short

public static final RedmineDataConverter Short

Integer

public static final RedmineDataConverter Integer

Long

public static final RedmineDataConverter Long

Float

public static final RedmineDataConverter Float

Double

public static final RedmineDataConverter Double

Date

public static final RedmineDataConverter Date

Datetime

public static final RedmineDataConverter Datetime

Text

public static final RedmineDataConverter Text
Method Detail

values

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

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

valueOf

public static RedmineDataConverter 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


Copyright © 2009 CodeLutin. All Rights Reserved.