Class OptionLine


  • public class OptionLine
    extends MultiLine
    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 Detail

      • OptionLine

        public OptionLine​(Document document,
                          int offset,
                          LineType lineType)
        Creates an attribute option line.
        May span multiple lines.
        Parameters:
        document - the whole document
        offset - offset to first character within document
        lineType - the line type
    • Method Detail

      • getName

        public java.lang.String getName()
                                 throws ModelException
        Gets the attribute or relation name.
        Returns:
        the attribute name, never null or empty
        Throws:
        ModelException - if not parsed
      • getOptions

        public java.util.List<java.lang.String> getOptions()
                                                    throws ModelException
        Gets the options.
        Returns:
        the options, never null
        Throws:
        ModelException - if not parsed