java.lang.Object
org.tentackle.model.parse.Line
org.tentackle.model.parse.MultiLine
org.tentackle.model.parse.OptionLine
The option line.
Option lines start with an attribute or relation name followed by a colon and may span more than one line. Options are separated by commas.
- Author:
- harald
-
Constructor Summary
ConstructorsConstructorDescriptionOptionLine(Document document, int offset, LineType lineType) Creates an attribute option line.
May span multiple lines. -
Method Summary
Methods inherited from class org.tentackle.model.parse.Line
assertParsed, createModelException, createModelException, getDocument, getLength, getLineNumber, getLineType, getOffset, getSourceInfo, getText, setLength, toString
-
Constructor Details
-
OptionLine
Creates an attribute option line.
May span multiple lines.- Parameters:
document- the whole documentoffset- offset to first character within documentlineType- the line type
-
-
Method Details
-
parse
Description copied from class:LineParses a line.- Overrides:
parsein classMultiLine- Throws:
ModelException- if parsing failed
-
getName
Gets the attribute or relation name.- Returns:
- the attribute name, never null or empty
- Throws:
ModelException- if not parsed
-
getOptions
Gets the options.- Returns:
- the options, never null
- Throws:
ModelException- if not parsed
-