Package net.sf.okapi.lib.xliff2.its
Class DataCategory
- java.lang.Object
-
- net.sf.okapi.lib.xliff2.its.DataCategory
-
- All Implemented Interfaces:
IITSItem
- Direct Known Subclasses:
Domain,LocQualityIssue,MTConfidence,Provenance,TextAnalysis
public abstract class DataCategory extends Object implements IITSItem
Provides a base implementation ofIITSItemfor a given data category.
-
-
Constructor Summary
Constructors Constructor Description DataCategory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAnnotatorRef()Gets the annotator reference currently set for this data category.booleanhasUnresolvedGroup()Indicates if this item has currently a reference to a stand-off element that has not been resolved yet.booleanisGroup()Indicates if this item is a group.voidsetAnnotatorRef(String annotatorRef)Sets the annotator reference information for this data category.voidsetAnnotatorRef(AnnotatorsRef ar)Sets the annotator reference information for this data category.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.okapi.lib.xliff2.its.IITSItem
createCopy, getDataCategoryName, validate
-
-
-
-
Method Detail
-
setAnnotatorRef
public void setAnnotatorRef(String annotatorRef)
Description copied from interface:IITSItemSets the annotator reference information for this data category.- Specified by:
setAnnotatorRefin interfaceIITSItem- Parameters:
annotatorRef- the reference string to set (can be null).
-
setAnnotatorRef
public void setAnnotatorRef(AnnotatorsRef ar)
Description copied from interface:IITSItemSets the annotator reference information for this data category.- Specified by:
setAnnotatorRefin interfaceIITSItem- Parameters:
ar- the set of references read fromits:annotatorsRef. If it is null, or if there is no reference for the relevant data category: no change is made.
-
getAnnotatorRef
public String getAnnotatorRef()
Description copied from interface:IITSItemGets the annotator reference currently set for this data category. This method is not be supported for items that are data category groups.- Specified by:
getAnnotatorRefin interfaceIITSItem- Returns:
- the annotator reference currently set for this data category.
-
isGroup
public boolean isGroup()
Description copied from interface:IITSItemIndicates if this item is a group.
-
hasUnresolvedGroup
public boolean hasUnresolvedGroup()
Description copied from interface:IITSItemIndicates if this item has currently a reference to a stand-off element that has not been resolved yet.This occurs for example when a unit element has a reference to a set of Provenance instances and the stand-off element has not been read yet (because the reading of the unit's element is done after the reading of its attributes.
- Specified by:
hasUnresolvedGroupin interfaceIITSItem- Returns:
- true if this item has currently an unresolved reference to a stand-off element.
-
-