Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.io.csv.reader.internal
Class CSVConfiguration

java.lang.Object
  extended by eu.esdihumboldt.hale.io.csv.reader.internal.CSVConfiguration
All Implemented Interfaces:
TypeConstraint, CSVConstants

@Immutable
public class CSVConfiguration
extends Object
implements TypeConstraint, CSVConstants

CSVConfiguration represented as TypeConstraints

Author:
Kevin Mais

Field Summary
 
Fields inherited from interface eu.esdihumboldt.hale.io.csv.reader.internal.CSVConstants
DEFAULT_ESCAPE, DEFAULT_QUOTE, DEFAULT_SEPARATOR, PARAM_ESCAPE, PARAM_GEOMETRY, PARAM_QUOTE, PARAM_SEPARATOR, PARAM_TYPENAME
 
Constructor Summary
CSVConfiguration()
          default constructor
CSVConfiguration(char sep, char qu, char esc, boolean skip)
          constructor for CSVConfiguration
 
Method Summary
 char getEscape()
           
 char getQuote()
           
 char getSeparator()
           
 boolean isInheritable()
          Determines if the constraint is inheritable, meaning it may be used for a sub-type.
 boolean skipFirst()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CSVConfiguration

public CSVConfiguration()
default constructor


CSVConfiguration

public CSVConfiguration(char sep,
                        char qu,
                        char esc,
                        boolean skip)
constructor for CSVConfiguration

Parameters:
sep - the separating sign
qu - the quote sign
esc - the escape sign
skip - the boolean to skip the first line or not
Method Detail

getSeparator

public char getSeparator()
Returns:
the separator

getQuote

public char getQuote()
Returns:
the quote

getEscape

public char getEscape()
Returns:
the escape

skipFirst

public boolean skipFirst()
Returns:
the skip_first_line

isInheritable

public boolean isInheritable()
Description copied from interface: TypeConstraint
Determines if the constraint is inheritable, meaning it may be used for a sub-type. A constraint may only be inherited if it is not overriden in the sub-type.

Specified by:
isInheritable in interface TypeConstraint
Returns:
if the constraint is inheritable
See Also:
TypeConstraint.isInheritable()

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d