Package net.sf.basedb.util.parser
Enum Class FlatFileParser.LineType
- All Implemented Interfaces:
Serializable
,Comparable<FlatFileParser.LineType>
,java.lang.constant.Constable
- Enclosing class:
- FlatFileParser
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 ConstantDescriptionThe parsed line is a data line, which could be split into the specified number of columns byFlatFileParser.setDataSplitterRegexp(Pattern)
.The parsed line is the data footer line, matching the regular expression specified byFlatFileParser.setDataFooterRegexp(Pattern)
.The parsed line is the data header line, matching the regular expression specified byFlatFileParser.setDataHeaderRegexp(Pattern)
.The parsed line is a header line, matching the regular expression specified byFlatFileParser.setHeaderRegexp(Pattern)
.The parsed line was ignored since it matched the regular expression specified byFlatFileParser.setIgnoreRegexp(Pattern)
.The parsed line is the line starting a section, matching the regular expression specified byFlatFileParser.setSectionRegexp(Pattern)
.The parsed line is of an unknown type. -
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiontoString()
static FlatFileParser.LineType
Returns the enum constant of this class with the specified name.static FlatFileParser.LineType[]
values()
Returns an array containing the constants of this enum class, 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 class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
toString
- Overrides:
toString
in classEnum<FlatFileParser.LineType>
-