net.sf.jmatchparser.util.csv.fieldreader
Class SimpleFieldDefinition

java.lang.Object
  extended by net.sf.jmatchparser.util.csv.fieldreader.FieldDefinition<String>
      extended by net.sf.jmatchparser.util.csv.fieldreader.SimpleFieldDefinition

public class SimpleFieldDefinition
extends FieldDefinition<String>

A FieldDefinition that does not use an additional Format, and therefore always produces Strings.


Nested Class Summary
 
Nested classes/interfaces inherited from class net.sf.jmatchparser.util.csv.fieldreader.FieldDefinition
FieldDefinition.MandatoryState
 
Constructor Summary
SimpleFieldDefinition()
          Create an unconstraint field definition.
SimpleFieldDefinition(int maxLength)
          Create a field definition with the given maximum length.
SimpleFieldDefinition(int maxLength, FieldDefinition.MandatoryState mandatory)
          Create a field definition with the given maximum length and mandatory state.
SimpleFieldDefinition(Pattern mask)
          Create a field definition with the given regex mask.
SimpleFieldDefinition(Pattern mask, int maxLength)
          Create a field definition with the given regex mask and maximum length.
SimpleFieldDefinition(Pattern mask, int maxLength, FieldDefinition.MandatoryState mandatory)
          Create a field definition with the given regex mask, maximum length and mandatory state.
SimpleFieldDefinition(String mask)
          Create a field definition with the given regex mask.
SimpleFieldDefinition(String mask, int maxLength)
          Create a field definition with the given regex mask and maximum length.
SimpleFieldDefinition(String mask, int maxLength, FieldDefinition.MandatoryState mandatory)
          Create a field definition with the given regex mask, maximum length and mandatory state.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SimpleFieldDefinition

public SimpleFieldDefinition()
Create an unconstraint field definition.


SimpleFieldDefinition

public SimpleFieldDefinition(int maxLength)
Create a field definition with the given maximum length.


SimpleFieldDefinition

public SimpleFieldDefinition(int maxLength,
                             FieldDefinition.MandatoryState mandatory)
Create a field definition with the given maximum length and mandatory state.


SimpleFieldDefinition

public SimpleFieldDefinition(Pattern mask)
Create a field definition with the given regex mask.


SimpleFieldDefinition

public SimpleFieldDefinition(String mask)
Create a field definition with the given regex mask.


SimpleFieldDefinition

public SimpleFieldDefinition(Pattern mask,
                             int maxLength)
Create a field definition with the given regex mask and maximum length.


SimpleFieldDefinition

public SimpleFieldDefinition(String mask,
                             int maxLength)
Create a field definition with the given regex mask and maximum length.


SimpleFieldDefinition

public SimpleFieldDefinition(Pattern mask,
                             int maxLength,
                             FieldDefinition.MandatoryState mandatory)
Create a field definition with the given regex mask, maximum length and mandatory state.


SimpleFieldDefinition

public SimpleFieldDefinition(String mask,
                             int maxLength,
                             FieldDefinition.MandatoryState mandatory)
Create a field definition with the given regex mask, maximum length and mandatory state.



Copyright © 2011. All Rights Reserved.