Package net.sf.basedb.util.parser
Enum FlatFileParser.LineType
- All Implemented Interfaces:
Serializable
,Comparable<FlatFileParser.LineType>
,java.lang.constant.Constable
- Enclosing class:
- FlatFileParser
public static enum FlatFileParser.LineType extends Enum<FlatFileParser.LineType>
Represents the type of a line matched or unmatched by the parser.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description DATA
The parsed line is a data line, which could be split into the specified number of columns byFlatFileParser.setDataSplitterRegexp(Pattern)
.DATA_FOOTER
The parsed line is the data footer line, matching the regular expression specified byFlatFileParser.setDataFooterRegexp(Pattern)
.DATA_HEADER
The parsed line is the data header line, matching the regular expression specified byFlatFileParser.setDataHeaderRegexp(Pattern)
.HEADER
The parsed line is a header line, matching the regular expression specified byFlatFileParser.setHeaderRegexp(Pattern)
.IGNORED
The parsed line was ignored since it matched the regular expression specified byFlatFileParser.setIgnoreRegexp(Pattern)
.SECTION
The parsed line is the line starting a section, matching the regular expression specified byFlatFileParser.setSectionRegexp(Pattern)
.UNKNOWN
The parsed line is of an unknown type. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and Type Method Description String
toString()
static FlatFileParser.LineType
valueOf(String name)
Returns the enum constant of this type with the specified name.static FlatFileParser.LineType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HEADER
The parsed line is a header line, matching the regular expression specified byFlatFileParser.setHeaderRegexp(Pattern)
. -
DATA_HEADER
The parsed line is the data header line, matching the regular expression specified byFlatFileParser.setDataHeaderRegexp(Pattern)
. -
DATA
The parsed line is a data line, which could be split into the specified number of columns byFlatFileParser.setDataSplitterRegexp(Pattern)
. -
SECTION
The parsed line is the line starting a section, matching the regular expression specified byFlatFileParser.setSectionRegexp(Pattern)
. -
DATA_FOOTER
The parsed line is the data footer line, matching the regular expression specified byFlatFileParser.setDataFooterRegexp(Pattern)
. -
IGNORED
The parsed line was ignored since it matched the regular expression specified byFlatFileParser.setIgnoreRegexp(Pattern)
. -
UNKNOWN
The parsed line is of an unknown type.
-
-
Field Details
-
title
-
-
Constructor Details
-
LineType
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<FlatFileParser.LineType>
-