- java.lang.Object
-
- java.lang.Enum<LineType>
-
- org.tentackle.model.parse.LineType
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<LineType>
public enum LineType extends java.lang.Enum<LineType>
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
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTRIBUTEattribute line.ATTRIBUTE_OPTIONattribute options line.COMMENTcomment line.CONFIGURATIONconfiguration line.EMPTYthe empty line.GLOBAL_OPTIONglobal options line.RELATIONrelation line.RELATION_OPTIONrelation options line.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description LinecreateLine(Document document, int offset)Creates a line for this line type.static LineTypevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static LineType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
EMPTY
public static final LineType EMPTY
the empty line.
-
COMMENT
public static final LineType COMMENT
comment line.
-
CONFIGURATION
public static final LineType CONFIGURATION
configuration line.
-
GLOBAL_OPTION
public static final LineType GLOBAL_OPTION
global options line.
-
ATTRIBUTE
public static final LineType ATTRIBUTE
attribute line.
-
ATTRIBUTE_OPTION
public static final LineType ATTRIBUTE_OPTION
attribute options line.
-
RELATION
public static final LineType RELATION
relation line.
-
RELATION_OPTION
public static final LineType RELATION_OPTION
relation options line.
-
-
Method Detail
-
values
public static LineType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (LineType c : LineType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LineType valueOf(java.lang.String name)
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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
-