org.apache.velocity.tools.config
Enum Data.Type

java.lang.Object
  extended by java.lang.Enum<Data.Type>
      extended by org.apache.velocity.tools.config.Data.Type
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<Data.Type>
Enclosing class:
Data

protected static enum Data.Type
extends java.lang.Enum<Data.Type>

Delineates the standard, known types and their associated target classes (Data.setTargetClass(java.lang.Class) and converters (Data.setConverter(java.lang.Class)).


Enum Constant Summary
AUTO
           
BOOLEAN
           
CUSTOM
           
FIELD
           
LIST
           
LIST_AUTO
           
LIST_BOOLEAN
           
LIST_FIELD
           
LIST_NUMBER
           
LIST_STRING
           
NUMBER
           
STRING
           
 
Field Summary
private  org.apache.commons.beanutils.Converter converter
           
private  java.lang.Class target
           
 
Method Summary
static Data.Type get(java.lang.String type)
           
 org.apache.commons.beanutils.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're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

AUTO

public static final Data.Type AUTO

BOOLEAN

public static final Data.Type BOOLEAN

CUSTOM

public static final Data.Type CUSTOM

FIELD

public static final Data.Type FIELD

NUMBER

public static final Data.Type NUMBER

STRING

public static final Data.Type STRING

LIST

public static final Data.Type LIST

LIST_AUTO

public static final Data.Type LIST_AUTO

LIST_BOOLEAN

public static final Data.Type LIST_BOOLEAN

LIST_FIELD

public static final Data.Type LIST_FIELD

LIST_NUMBER

public static final Data.Type LIST_NUMBER

LIST_STRING

public static final Data.Type LIST_STRING
Field Detail

target

private java.lang.Class target

converter

private org.apache.commons.beanutils.Converter converter
Method Detail

values

public static final Data.Type[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Data.Type c : Data.Type.values())
        System.out.println(c);

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

valueOf

public static Data.Type 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

isCustom

public boolean isCustom()

isList

public boolean isList()

getTarget

public java.lang.Class getTarget()

getConverter

public org.apache.commons.beanutils.Converter getConverter()

value

public java.lang.String value()

get

public static Data.Type get(java.lang.String type)


Copyright (c) 2003-2007 Apache Software Foundation