Package net.sf.okapi.lib.xliff2.its
Class TextAnalysis
- java.lang.Object
-
- net.sf.okapi.lib.xliff2.its.DataCategory
-
- net.sf.okapi.lib.xliff2.its.TextAnalysis
-
- All Implemented Interfaces:
IITSItem
public class TextAnalysis extends DataCategory
Implements the Text Analysis data category.
-
-
Constructor Summary
Constructors Constructor Description TextAnalysis()
Creates an emptyTextAnalysis
object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IITSItem
createCopy()
Creates a deep-copy clone of this item.String
getDataCategoryName()
Gets the id/name of this data category.String
getTaClassRef()
Double
getTaConfidence()
Gets thetaConfidence
attribute.String
getTaIdent()
String
getTaIdentRef()
String
getTaSource()
Gets thetaSource
attribute.void
setTaClassRef(String taClassRef)
void
setTaConfidence(Double taConfidence)
Sets a newtaConfidence
attribute.void
setTaIdent(String taIdent)
void
setTaIdentRef(String taIdentRef)
void
setTaSource(String taSource)
Sets a newtaSource
attribute.void
validate()
Validates the data category.-
Methods inherited from class net.sf.okapi.lib.xliff2.its.DataCategory
getAnnotatorRef, hasUnresolvedGroup, isGroup, setAnnotatorRef, setAnnotatorRef
-
-
-
-
Constructor Detail
-
TextAnalysis
public TextAnalysis()
Creates an emptyTextAnalysis
object.
-
-
Method Detail
-
getDataCategoryName
public String getDataCategoryName()
Description copied from interface:IITSItem
Gets the id/name of this data category.- Returns:
- the id/name of this data category.
-
validate
public void validate()
Description copied from interface:IITSItem
Validates the data category. Checks if all required attributes are set properly.
-
getTaConfidence
public Double getTaConfidence()
Gets thetaConfidence
attribute.- Returns:
- the
taConfidence
attribute (can be null).
-
setTaConfidence
public void setTaConfidence(Double taConfidence)
Sets a newtaConfidence
attribute.- Parameters:
taConfidence
- the newtaConfidence
attribute (between 0.0 and 1.0, or null).
-
getTaClassRef
public String getTaClassRef()
-
setTaClassRef
public void setTaClassRef(String taClassRef)
-
getTaSource
public String getTaSource()
Gets thetaSource
attribute.- Returns:
- the
taSource
attribute (can be null).
-
setTaSource
public void setTaSource(String taSource)
Sets a newtaSource
attribute.- Parameters:
taSource
- the newtaSource
attribute (can be null).
-
getTaIdent
public String getTaIdent()
-
setTaIdent
public void setTaIdent(String taIdent)
-
getTaIdentRef
public String getTaIdentRef()
-
setTaIdentRef
public void setTaIdentRef(String taIdentRef)
-
-