olg.csv.bean.annotations.processor
Enum RowBeanProcessor.CSVPropertyType

Package class diagram package RowBeanProcessor.CSVPropertyType
java.lang.Object
  extended by java.lang.Enum<RowBeanProcessor.CSVPropertyType>
      extended by olg.csv.bean.annotations.processor.RowBeanProcessor.CSVPropertyType
All Implemented Interfaces:
Serializable, Comparable<RowBeanProcessor.CSVPropertyType>
Enclosing class:
RowBeanProcessor<T>

private static enum RowBeanProcessor.CSVPropertyType
extends Enum<RowBeanProcessor.CSVPropertyType>

CSV Property list.


Enum Constant Summary
CHARSETNAME
           
DELIMITER
           
HEADERS
           
LINE_SEPARATOR
           
SEPARATOR
           
 
Field Summary
private  String code
          param name.
private  AbstractParser<?> parser
          param value parser.
private  String property
          Property this option sets.
private  Method setter
          Method to set property.
 
Method Summary
static RowBeanProcessor.CSVPropertyType getByCode(String code)
          Identify a property by its code.
 CSVSettings setParam(CSVSettings settings, String value)
          Set the CVSSettings.
static RowBeanProcessor.CSVPropertyType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static RowBeanProcessor.CSVPropertyType[] 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

HEADERS

public static final RowBeanProcessor.CSVPropertyType HEADERS

SEPARATOR

public static final RowBeanProcessor.CSVPropertyType SEPARATOR

DELIMITER

public static final RowBeanProcessor.CSVPropertyType DELIMITER

CHARSETNAME

public static final RowBeanProcessor.CSVPropertyType CHARSETNAME

LINE_SEPARATOR

public static final RowBeanProcessor.CSVPropertyType LINE_SEPARATOR
Field Detail

code

private String code
param name.


parser

private AbstractParser<?> parser
param value parser.


setter

private Method setter
Method to set property.


property

private String property
Property this option sets.

Method Detail

values

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

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

valueOf

public static RowBeanProcessor.CSVPropertyType 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

getByCode

public static RowBeanProcessor.CSVPropertyType getByCode(String code)
Identify a property by its code.

Parameters:
code - the code
Returns:
the property

setParam

public CSVSettings setParam(CSVSettings settings,
                            String value)
                     throws AnnotationProcessorException
Set the CVSSettings.

Parameters:
settings - the settings to set.
value - the value.
Returns:
the CSVSettings setted.
Throws:
AnnotationProcessorException - on setting the value to the property


Copyright © 2014. All rights reserved.