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 emptyTextAnalysisobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IITSItemcreateCopy()Creates a deep-copy clone of this item.StringgetDataCategoryName()Gets the id/name of this data category.StringgetTaClassRef()DoublegetTaConfidence()Gets thetaConfidenceattribute.StringgetTaIdent()StringgetTaIdentRef()StringgetTaSource()Gets thetaSourceattribute.voidsetTaClassRef(String taClassRef)voidsetTaConfidence(Double taConfidence)Sets a newtaConfidenceattribute.voidsetTaIdent(String taIdent)voidsetTaIdentRef(String taIdentRef)voidsetTaSource(String taSource)Sets a newtaSourceattribute.voidvalidate()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 emptyTextAnalysisobject.
-
-
Method Detail
-
getDataCategoryName
public String getDataCategoryName()
Description copied from interface:IITSItemGets the id/name of this data category.- Returns:
- the id/name of this data category.
-
validate
public void validate()
Description copied from interface:IITSItemValidates the data category. Checks if all required attributes are set properly.
-
getTaConfidence
public Double getTaConfidence()
Gets thetaConfidenceattribute.- Returns:
- the
taConfidenceattribute (can be null).
-
setTaConfidence
public void setTaConfidence(Double taConfidence)
Sets a newtaConfidenceattribute.- Parameters:
taConfidence- the newtaConfidenceattribute (between 0.0 and 1.0, or null).
-
getTaClassRef
public String getTaClassRef()
-
setTaClassRef
public void setTaClassRef(String taClassRef)
-
getTaSource
public String getTaSource()
Gets thetaSourceattribute.- Returns:
- the
taSourceattribute (can be null).
-
setTaSource
public void setTaSource(String taSource)
Sets a newtaSourceattribute.- Parameters:
taSource- the newtaSourceattribute (can be null).
-
getTaIdent
public String getTaIdent()
-
setTaIdent
public void setTaIdent(String taIdent)
-
getTaIdentRef
public String getTaIdentRef()
-
setTaIdentRef
public void setTaIdentRef(String taIdentRef)
-
-