public class OptionLine extends MultiLine
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.
| Constructor and Description |
|---|
OptionLine(Document document,
int offset,
LineType lineType)
Creates an attribute option line.
May span multiple lines. |
| Modifier and Type | Method and Description |
|---|---|
String |
getName()
Gets the attribute or relation name.
|
List<String> |
getOptions()
Gets the options.
|
void |
parse()
Parses a line.
|
assertParsed, createModelException, createModelException, getDocument, getLength, getLineNumber, getLineType, getOffset, getSourceInfo, getText, setLength, toStringpublic void parse()
throws ModelException
Lineparse in class MultiLineModelException - if parsing failedpublic String getName() throws ModelException
ModelException - if not parsedpublic List<String> getOptions() throws ModelException
ModelException - if not parsedTentackle - a domain driven enterprise framework