|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<PrimitiveType>
olg.csv.bean.parser.PrimitiveType
enum PrimitiveType
Allows to associate a parser to a primitive type.
Enum Constant Summary | |
---|---|
booleanType
Boolean type. |
|
byteType
Byte type. 0 is returned as null or empty string is parsed. |
|
charType
Character type. is returned as null or empty string is parsed. |
|
doubleType
Double type. 0 is returned as null or empty string is parsed. |
|
floatType
Float type. 0 is returned as null or empty string is parsed. |
|
intType
Integer type. 0 is returned as null or empty string is parsed. |
|
longType
Long type. 0 is returned as null or empty string is parsed. |
|
shortType
Short type. 0 is returned as null or empty string is parsed. |
Field Summary | |
---|---|
private AbstractParser<?> |
parser
the parser to use. |
private String |
primitiveName
the name of the primitive. |
Method Summary | |
---|---|
AbstractParser<?> |
getParser()
The parse associated with the primitive type this enum matches. |
static PrimitiveType |
getPrimitiveTypeByName(String name)
Returns the enum value identify by its name. |
static PrimitiveType |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static PrimitiveType[] |
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 |
---|
public static final PrimitiveType booleanType
public static final PrimitiveType byteType
public static final PrimitiveType shortType
public static final PrimitiveType intType
public static final PrimitiveType longType
public static final PrimitiveType floatType
public static final PrimitiveType doubleType
public static final PrimitiveType charType
Field Detail |
---|
private String primitiveName
private AbstractParser<?> parser
Method Detail |
---|
public static PrimitiveType[] values()
for (PrimitiveType c : PrimitiveType.values()) System.out.println(c);
public static PrimitiveType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic AbstractParser<?> getParser()
public static PrimitiveType getPrimitiveTypeByName(String name)
name
- nom du type primitif.
null
if the given name doesn't match any enum value.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |