Package org.omegat.core.statistics
Class StatsResult
- java.lang.Object
-
- org.omegat.core.statistics.StatsResult
-
public class StatsResult extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String[]
FT_HEADERS
static java.lang.String[]
HT_HEADERS
-
Constructor Summary
Constructors Constructor Description StatsResult()
StatsResult(StatCount total, StatCount remaining, StatCount unique, StatCount remainingUnique, java.util.Set<java.lang.String> translated, java.util.List<FileData> counts)
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<FileData>
getCounts()
return a statistics of each source/target files.java.lang.String
getDate()
java.lang.String[][]
getFilesTable()
java.lang.String[][]
getHeaderTable()
java.lang.String
getJsonData()
Return JSON expression of stats data.StatProjectProperties
getProps()
StatCount
getRemaining()
Return remaining number of segments that needs translation.StatCount
getRemainingUnique()
Return a number of remaining unique segments.java.lang.String
getTextData()
Return pretty printed statistics data.StatCount
getTotal()
Return total number of segments.StatCount
getUnique()
Return a number of unique segments.java.lang.String
getXmlData()
Return XML expression of Stats data.void
updateStatisticsInfo(StatisticsInfo hotStat)
Update given hosStat with current stats data.
-
-
-
Method Detail
-
updateStatisticsInfo
public void updateStatisticsInfo(StatisticsInfo hotStat)
Update given hosStat with current stats data.- Parameters:
hotStat
- StatisticsInfo data object.
-
getDate
public java.lang.String getDate()
-
getProps
public StatProjectProperties getProps()
-
getTotal
public StatCount getTotal()
Return total number of segments.- Returns:
-
getRemaining
public StatCount getRemaining()
Return remaining number of segments that needs translation.- Returns:
-
getUnique
public StatCount getUnique()
Return a number of unique segments.- Returns:
-
getRemainingUnique
public StatCount getRemainingUnique()
Return a number of remaining unique segments.- Returns:
-
getCounts
public java.util.List<FileData> getCounts()
return a statistics of each source/target files.- Returns:
-
getTextData
public java.lang.String getTextData()
Return pretty printed statistics data.- Returns:
- pretty-printed string.
-
getJsonData
public java.lang.String getJsonData() throws java.io.IOException
Return JSON expression of stats data.- Returns:
- JSON string data.
- Throws:
java.io.IOException
- when export failed.
-
getXmlData
public java.lang.String getXmlData()
Return XML expression of Stats data.- Returns:
- XML expression of stats data as String.
-
getHeaderTable
public java.lang.String[][] getHeaderTable()
-
getFilesTable
public java.lang.String[][] getFilesTable()
-
-