|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Object java.lang.Enum<FlatFileParser.LineType> net.sf.basedb.util.parser.FlatFileParser.LineType
public static enum FlatFileParser.LineType
Represents the type of a line matched or unmatched by the parser.
Enum Constant Summary | |
---|---|
DATA
The parsed line is a data line, which could be split into the specified number of columns by FlatFileParser.setDataSplitterRegexp(Pattern) . |
|
DATA_FOOTER
The parsed line is the data footer line, matching the regular expression specified by FlatFileParser.setDataFooterRegexp(Pattern) . |
|
DATA_HEADER
The parsed line is the data header line, matching the regular expression specified by FlatFileParser.setDataHeaderRegexp(Pattern) . |
|
HEADER
The parsed line is a header line, matching the regular expression specified by FlatFileParser.setHeaderRegexp(Pattern) . |
|
IGNORED
The parsed line was ignored since it matched the regular expression specified by FlatFileParser.setIgnoreRegexp(Pattern) . |
|
SECTION
The parsed line is the line starting a section, matching the regular expression specified by FlatFileParser.setSectionRegexp(Pattern) . |
|
UNKNOWN
The parsed line is of an unknown type. |
Field Summary | |
---|---|
private String |
title
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Enum |
---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final FlatFileParser.LineType HEADER
FlatFileParser.setHeaderRegexp(Pattern)
.
public static final FlatFileParser.LineType DATA_HEADER
FlatFileParser.setDataHeaderRegexp(Pattern)
.
public static final FlatFileParser.LineType DATA
FlatFileParser.setDataSplitterRegexp(Pattern)
.
FlatFileParser.setMinDataColumns(int)
,
FlatFileParser.setMaxDataColumns(int)
public static final FlatFileParser.LineType SECTION
FlatFileParser.setSectionRegexp(Pattern)
.
public static final FlatFileParser.LineType DATA_FOOTER
FlatFileParser.setDataFooterRegexp(Pattern)
.
public static final FlatFileParser.LineType IGNORED
FlatFileParser.setIgnoreRegexp(Pattern)
.
public static final FlatFileParser.LineType UNKNOWN
Field Detail |
---|
private final String title
Method Detail |
---|
public static FlatFileParser.LineType[] values()
for (FlatFileParser.LineType c : FlatFileParser.LineType.values()) System.out.println(c);
public static FlatFileParser.LineType valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic String toString()
toString
in class Enum<FlatFileParser.LineType>
|
2.17.2: 2011-06-17 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |