Package de.loskutov.anyedit.util
Class TextReplaceResultSet
- java.lang.Object
-
- de.loskutov.anyedit.util.TextReplaceResultSet
-
public final class TextReplaceResultSet extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.List<LineReplaceResult>delegateprivate java.lang.Exceptionexceptionprivate intstartLineprivate intstopLine
-
Constructor Summary
Constructors Constructor Description TextReplaceResultSet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(LineReplaceResult o)booleanareResultsChanged()voidclear()LineReplaceResultget(int index)java.lang.ExceptiongetException()intgetNumberOfLines()intgetStartLine()intgetStopLine()voidsetException(java.lang.Exception exception)voidsetStartLine(int startLine)voidsetStopLine(int stopLine)intsize()
-
-
-
Field Detail
-
delegate
private final java.util.List<LineReplaceResult> delegate
-
startLine
private int startLine
-
stopLine
private int stopLine
-
exception
private java.lang.Exception exception
-
-
Method Detail
-
add
public boolean add(LineReplaceResult o)
- Parameters:
o- could be null value, if the line is not changed
-
get
public LineReplaceResult get(int index)
- Parameters:
index- line index in the document- Returns:
- null if index is out of range
-
areResultsChanged
public boolean areResultsChanged()
-
size
public int size()
-
getStartLine
public int getStartLine()
- Returns:
- Returns the startLine.
-
setStartLine
public void setStartLine(int startLine)
- Parameters:
startLine- The startLine to set.
-
getStopLine
public int getStopLine()
- Returns:
- Returns the stopLine - last changed line in result
-
setStopLine
public void setStopLine(int stopLine)
- Parameters:
stopLine- The stopLine to set.
-
getNumberOfLines
public int getNumberOfLines()
-
clear
public void clear()
-
getException
public java.lang.Exception getException()
- Returns:
- exception which was thrown during writing the document, if any
-
setException
public void setException(java.lang.Exception exception)
- Parameters:
exception- which was thrown during writing the document, if any
-
-