org.milyn.csv
Enum CSVBindingType

java.lang.Object
  extended by java.lang.Enum<CSVBindingType>
      extended by org.milyn.csv.CSVBindingType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<CSVBindingType>

public enum CSVBindingType
extends java.lang.Enum<CSVBindingType>

CSV Binding type.

Author:
tom.fennelly@jboss.com

Enum Constant Summary
LIST
          Bind a List of instances of the binding class.
MAP
          Bind a Map of instances of the binding class.
SINGLE
          Bind a single instance of the binding class.
 
Method Summary
static CSVBindingType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static CSVBindingType[] 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

SINGLE

public static final CSVBindingType SINGLE
Bind a single instance of the binding class.


LIST

public static final CSVBindingType LIST
Bind a List of instances of the binding class.

Creates a List under the binding 'beanId' name.


MAP

public static final CSVBindingType MAP
Bind a Map of instances of the binding class.

Creates a Map under the binding 'beanId' name, with the Map entry keys coming from the 'keyField' name on the CSVBinding instance.

Method Detail

values

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

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

valueOf

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


Copyright © 2011. All Rights Reserved.