Class NestedFormatHelper.Line

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    NestedFormatHelper

    public static class NestedFormatHelper.Line
    extends Object
    implements Serializable
    Container class for wrapping a line from the nested format.
    Version:
    $Revision$
    Author:
    fracpete (fracpete at waikato dot ac dot nz)
    See Also:
    Serialized Form
    • Field Detail

      • m_Number

        protected int m_Number
        the line number.
      • m_Content

        protected String m_Content
        the content.
    • Constructor Detail

      • Line

        public Line​(String content)
        Wrapper for a line, line number is uninitialized at -1.
        Parameters:
        content - the actual content of the line
      • Line

        public Line​(int number,
                    String content)
        Wrapper for a line.
        Parameters:
        number - the line number
        content - the actual content of the line
    • Method Detail

      • setNumber

        public void setNumber​(int value)
        Sets the associated line number.
        Parameters:
        value - the line number
      • getNumber

        public int getNumber()
        Returns the associated line number.
        Returns:
        the line number
      • getContent

        public String getContent()
        Returns the line content.
        Returns:
        the content
      • toString

        public String toString()
        Simply returns the line content.
        Overrides:
        toString in class Object
        Returns:
        the content