net.sf.jmatchparser.util.csv.fieldreader
Enum FieldSourceFactory.FieldSourceFactoryFields

java.lang.Object
  extended by java.lang.Enum<FieldSourceFactory.FieldSourceFactoryFields>
      extended by net.sf.jmatchparser.util.csv.fieldreader.FieldSourceFactory.FieldSourceFactoryFields
All Implemented Interfaces:
Serializable, Comparable<FieldSourceFactory.FieldSourceFactoryFields>, FieldEnum<Object>
Enclosing class:
FieldSourceFactory

public static enum FieldSourceFactory.FieldSourceFactoryFields
extends Enum<FieldSourceFactory.FieldSourceFactoryFields>
implements FieldEnum<Object>

Fields used in the CSV file for defining field sources


Enum Constant Summary
COLUMNS
          Columns to be used, in the same format as used by FieldSource.parse(String, EmptyAction, String, String).
EMPTYACTION
          FieldSource.EmptyAction to be used.
FIELD
          Name of the field to be defined.
MAPPINGS
          Regex mapping, in the same format as used by FieldSource.withMappings(FieldSource, String).
MASK
          Regex mask.
 
Method Summary
 FieldDefinition<? extends Object> getDefinition()
          Get the definition for this enum element.
static FieldSourceFactory.FieldSourceFactoryFields valueOf(String name)
          Returns the enum constant of this type with the specified name.
static FieldSourceFactory.FieldSourceFactoryFields[] 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

FIELD

public static final FieldSourceFactory.FieldSourceFactoryFields FIELD
Name of the field to be defined.


COLUMNS

public static final FieldSourceFactory.FieldSourceFactoryFields COLUMNS
Columns to be used, in the same format as used by FieldSource.parse(String, EmptyAction, String, String).


EMPTYACTION

public static final FieldSourceFactory.FieldSourceFactoryFields EMPTYACTION
FieldSource.EmptyAction to be used.


MASK

public static final FieldSourceFactory.FieldSourceFactoryFields MASK
Regex mask.


MAPPINGS

public static final FieldSourceFactory.FieldSourceFactoryFields MAPPINGS
Regex mapping, in the same format as used by FieldSource.withMappings(FieldSource, String).

Method Detail

values

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

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

valueOf

public static FieldSourceFactory.FieldSourceFactoryFields 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

getDefinition

public FieldDefinition<? extends Object> getDefinition()
Description copied from interface: FieldEnum
Get the definition for this enum element. Usually implemented by returning a private field filled by the enum's constructor.

Specified by:
getDefinition in interface FieldEnum<Object>


Copyright © 2011. All Rights Reserved.