- java.lang.Object
-
- org.tentackle.model.parse.Line
-
- org.tentackle.model.parse.SingleLine
-
- org.tentackle.model.parse.ConfigurationLine
-
public class ConfigurationLine extends SingleLine
The configuration line.
<key> := <config>[;]- Author:
- harald
-
-
Constructor Summary
Constructors Constructor Description ConfigurationLine(Document document, int offset, LineType lineType)Creates a configuration line.
This line always spans only one line.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetKey()Gets the key's name.java.lang.StringgetValue()Gets the key's value.voidparse()Parses a line.-
Methods inherited from class org.tentackle.model.parse.Line
assertParsed, createModelException, createModelException, getDocument, getLength, getLineNumber, getLineType, getOffset, getSourceInfo, getText, setLength, toString
-
-
-
-
Method Detail
-
parse
public void parse() throws ModelExceptionDescription copied from class:LineParses a line.- Overrides:
parsein classSingleLine- Throws:
ModelException- if parsing failed
-
getKey
public java.lang.String getKey() throws ModelExceptionGets the key's name.- Returns:
- the key
- Throws:
ModelException- if not parsed
-
getValue
public java.lang.String getValue() throws ModelExceptionGets the key's value.- Returns:
- the value
- Throws:
ModelException- if not parsed
-
-