Package adams.core.option
Class NestedFormatHelper.Line
- java.lang.Object
-
- adams.core.option.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
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetContent()Returns the line content.intgetNumber()Returns the associated line number.voidsetNumber(int value)Sets the associated line number.StringtoString()Simply returns the line content.
-
-
-
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 numbercontent- 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
-
-