java.lang.Object
org.tentackle.model.parse.Line
org.tentackle.model.parse.SingleLine
org.tentackle.model.parse.ConfigurationLine
The configuration line.
<key> := <config>[;]- Author:
- harald
-
Constructor Summary
ConstructorsConstructorDescriptionConfigurationLine(Document document, int offset, LineType lineType) Creates a configuration line.
This line always spans only one line. -
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
-
ConfigurationLine
Creates a configuration line.
This line always spans only one line.- 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 classSingleLine- Throws:
ModelException- if parsing failed
-
getKey
Gets the key's name.- Returns:
- the key
- Throws:
ModelException- if not parsed
-
getValue
Gets the key's value.- Returns:
- the value
- Throws:
ModelException- if not parsed
-