Package net.sf.okapi.lib.xliff2.its
Class LocQualityIssue
- java.lang.Object
-
- net.sf.okapi.lib.xliff2.its.DataCategory
-
- net.sf.okapi.lib.xliff2.its.LocQualityIssue
-
- All Implemented Interfaces:
IITSItem
public class LocQualityIssue extends DataCategory
Implements the Localization Quality Issue data category.
-
-
Constructor Summary
Constructors Constructor Description LocQualityIssue()Creates a newLocQualityIssueobject without initial data.LocQualityIssue(String comment)Creates a newLocQualityIssueobject with a comment.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IITSItemcreateCopy()Creates a deep-copy clone of this item.StringgetComment()StringgetDataCategoryName()Gets the id/name of this data category.StringgetProfileRef()DoublegetSeverity()StringgetType()StringgetUnresolvedGroupRef()booleanhasUnresolvedGroup()Indicates if this item has currently a reference to a stand-off element that has not been resolved yet.booleanisEnabled()voidsetComment(String comment)voidsetEnabled(boolean enabled)voidsetProfileRef(String profileRef)voidsetSeverity(double severity)voidsetType(String type)voidsetUnresolvedGroupRef(String unresolvedGroupRef)voidvalidate()Validates the data category.-
Methods inherited from class net.sf.okapi.lib.xliff2.its.DataCategory
getAnnotatorRef, isGroup, setAnnotatorRef, setAnnotatorRef
-
-
-
-
Constructor Detail
-
LocQualityIssue
public LocQualityIssue()
Creates a newLocQualityIssueobject without initial data.
-
LocQualityIssue
public LocQualityIssue(String comment)
Creates a newLocQualityIssueobject with a comment.- Parameters:
comment- the comment to set.
-
-
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.
-
createCopy
public IITSItem createCopy()
Description copied from interface:IITSItemCreates a deep-copy clone of this item.- Returns:
- the duplicated item.
-
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- Overrides:
hasUnresolvedGroupin classDataCategory- Returns:
- true if this item has currently an unresolved reference to a stand-off element.
-
getUnresolvedGroupRef
public String getUnresolvedGroupRef()
-
setUnresolvedGroupRef
public void setUnresolvedGroupRef(String unresolvedGroupRef)
-
getType
public String getType()
-
setType
public void setType(String type)
-
getComment
public String getComment()
-
setComment
public void setComment(String comment)
-
getSeverity
public Double getSeverity()
-
setSeverity
public void setSeverity(double severity)
-
getProfileRef
public String getProfileRef()
-
setProfileRef
public void setProfileRef(String profileRef)
-
isEnabled
public boolean isEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
-