org.nuiton.jredmine.model.io.xpp3
Enum RedmineDataConverter
java.lang.Object
java.lang.Enum<RedmineDataConverter>
org.nuiton.jredmine.model.io.xpp3.RedmineDataConverter
- All Implemented Interfaces:
- Serializable, Comparable<RedmineDataConverter>, org.nuiton.io.xpp3.DataConverter
public enum RedmineDataConverter
- extends 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
| Methods inherited from interface org.nuiton.io.xpp3.DataConverter |
convert |
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
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(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-2011 CodeLutin. All Rights Reserved.