org.apache.velocity.tools.config
protected static enum Data.Type extends java.lang.Enum<Data.Type>
Data.setTargetClass(java.lang.Class)
and
converters (Data.setConverter(java.lang.Class)
).Enum Constant and Description |
---|
AUTO |
BOOLEAN |
CUSTOM |
FIELD |
LIST |
LIST_AUTO |
LIST_BOOLEAN |
LIST_FIELD |
LIST_NUMBER |
LIST_STRING |
NUMBER |
STRING |
Modifier and Type | Field and Description |
---|---|
private Converter |
converter |
private java.lang.Class |
target |
Modifier and Type | Method and Description |
---|---|
static Data.Type |
get(java.lang.String type) |
Converter |
getConverter() |
java.lang.Class |
getTarget() |
boolean |
isCustom() |
boolean |
isList() |
java.lang.String |
value() |
static Data.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Data.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Data.Type AUTO
public static final Data.Type BOOLEAN
public static final Data.Type CUSTOM
public static final Data.Type FIELD
public static final Data.Type NUMBER
public static final Data.Type STRING
public static final Data.Type LIST
public static final Data.Type LIST_AUTO
public static final Data.Type LIST_BOOLEAN
public static final Data.Type LIST_FIELD
public static final Data.Type LIST_NUMBER
public static final Data.Type LIST_STRING
public static Data.Type[] values()
for (Data.Type c : Data.Type.values()) System.out.println(c);
public static Data.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic boolean isCustom()
public boolean isList()
public java.lang.Class getTarget()
public Converter getConverter()
public java.lang.String value()
public static Data.Type get(java.lang.String type)
Copyright (c) 2003-2007 Apache Software Foundation