org.kahina.core.data.text
Class KahinaText

java.lang.Object
  extended by org.kahina.core.data.KahinaObject
      extended by org.kahina.core.data.text.KahinaText
All Implemented Interfaces:
Serializable

public class KahinaText
extends KahinaObject

See Also:
Serialized Form

Field Summary
 List<String> lines
           
 
Constructor Summary
KahinaText()
           
KahinaText(List<String> lines)
           
KahinaText(String absolutePathName)
           
 
Method Summary
 int addLine(String line)
          appends a new line to the end of this text
 String getCompleteContent()
           
 KahinaTextWithMarking getCompleteContentWithLineOffsets(int lineNumber)
           
 String getLine(int lineID)
           
 String getLineContent(int lineNumber)
           
 List<String> getLines()
           
static KahinaText loadFromFile(String absolutePathName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

lines

public List<String> lines
Constructor Detail

KahinaText

public KahinaText()

KahinaText

public KahinaText(List<String> lines)

KahinaText

public KahinaText(String absolutePathName)
Method Detail

getLines

public List<String> getLines()

addLine

public int addLine(String line)
appends a new line to the end of this text

Parameters:
line - - the new line to be added to the text
Returns:
the line ID of the new line

getLine

public String getLine(int lineID)

loadFromFile

public static KahinaText loadFromFile(String absolutePathName)

getLineContent

public String getLineContent(int lineNumber)

getCompleteContent

public String getCompleteContent()

getCompleteContentWithLineOffsets

public KahinaTextWithMarking getCompleteContentWithLineOffsets(int lineNumber)