Package org.omegat.core.matching
Class DiffDriver.Render
- java.lang.Object
-
- org.omegat.core.matching.DiffDriver.Render
-
- Enclosing class:
- DiffDriver
public static class DiffDriver.Render extends java.lang.ObjectRepresents the output of a string-string diff comparison. Contains the raw text for display, as well as formatting information.
-
-
Field Summary
Fields Modifier and Type Field Description java.util.List<DiffDriver.TextRun>formattingjava.lang.Stringtext
-
Constructor Summary
Constructors Constructor Description Render()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddRun(int start, int length, DiffDriver.Type type)java.lang.StringgetRunText(DiffDriver.TextRun run)Get the text corresponding to the run
-
-
-
Field Detail
-
formatting
public java.util.List<DiffDriver.TextRun> formatting
-
text
public java.lang.String text
-
-
Method Detail
-
addRun
public void addRun(int start, int length, DiffDriver.Type type)
-
getRunText
public java.lang.String getRunText(DiffDriver.TextRun run)
Get the text corresponding to the run- Parameters:
run-- Returns:
-
-