- All Implemented Interfaces:
Serializable,Comparable<LineType>,Constable
The configuration file line type.
- All lines beginning with a '#' are comments. Anything following a # is comment as well.
- Lines containing a '=' not containing a ':' in between the start-of-line and the '=' are configuration lines.
- pdo = <Pdo-Interface>
- index <name> = column_1, ...
- unique index <name> = column1, ...
- Lines beginning with '[' are global options.
- Lines with the first word (sep. by whitespaces) not followed by a colon are attributes.
- Lines with a word starting in lowercase followed by a colon are attribute option lines (e.g. for validation).
- Lines with a word starting in uppercase followed by a colon are relation lines.
- Author:
- harald
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionattribute line.attribute options line.comment line.configuration line.the empty line.global options line.relation line.relation options line. -
Method Summary
Modifier and TypeMethodDescriptioncreateLine(Document document, int offset) Creates a line for this line type.static LineTypeReturns the enum constant of this class with the specified name.static LineType[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EMPTY
the empty line. -
COMMENT
comment line. -
CONFIGURATION
configuration line. -
GLOBAL_OPTION
global options line. -
ATTRIBUTE
attribute line. -
ATTRIBUTE_OPTION
attribute options line. -
RELATION
relation line. -
RELATION_OPTION
relation options line.
-
-
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
-
createLine
Creates a line for this line type.- Parameters:
document- the model's documentoffset- the start of line within the document- Returns:
- the created line
-