Package net.sf.okapi.lib.xliff2.its
Class Provenance
- java.lang.Object
-
- net.sf.okapi.lib.xliff2.its.DataCategory
-
- net.sf.okapi.lib.xliff2.its.Provenance
-
- All Implemented Interfaces:
IITSItem
public class Provenance extends DataCategory
Implements the Provenance data category.
-
-
Constructor Summary
Constructors Constructor Description Provenance()Creates a newProvenanceobject without initial data.
-
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.StringgetOrg()StringgetOrgRef()StringgetPerson()StringgetPersonRef()StringgetProvRef()StringgetRevOrg()StringgetRevOrgRef()StringgetRevPerson()StringgetRevPersonRef()StringgetRevTool()Gets the revision tool attribute.StringgetRevToolRef()StringgetTool()Gets the tool attribute.StringgetToolRef()StringgetUnresolvedGroupRef()booleanhasUnresolvedGroup()Indicates if this item has currently a reference to a stand-off element that has not been resolved yet.voidsetOrg(String org)voidsetOrgRef(String orgRef)voidsetPerson(String person)voidsetPersonRef(String personRef)voidsetProvRef(String provRef)voidsetRevOrg(String revOrg)voidsetRevOrgRef(String revOrgRef)voidsetRevPerson(String revPerson)voidsetRevPersonRef(String revPersonRef)voidsetRevTool(String revTool)sets a new revision tool attribute.voidsetRevToolRef(String revToolRef)voidsetTool(String tool)Sets a new tool attribute.voidsetToolRef(String toolRef)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
-
Provenance
public Provenance()
Creates a newProvenanceobject without initial data.
-
-
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.
-
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.
-
createCopy
public IITSItem createCopy()
Description copied from interface:IITSItemCreates a deep-copy clone of this item.- Returns:
- the duplicated item.
-
getUnresolvedGroupRef
public String getUnresolvedGroupRef()
-
setUnresolvedGroupRef
public void setUnresolvedGroupRef(String unresolvedGroupRef)
-
getTool
public String getTool()
Gets the tool attribute.- Returns:
- the tool attribute (can be null).
-
setTool
public void setTool(String tool)
Sets a new tool attribute.- Parameters:
tool- the new tool attribute (can be null).
-
getToolRef
public String getToolRef()
-
setToolRef
public void setToolRef(String toolRef)
-
getRevTool
public String getRevTool()
Gets the revision tool attribute.- Returns:
- the revision tool attribute (can be null).
-
setRevTool
public void setRevTool(String revTool)
sets a new revision tool attribute.- Parameters:
revTool- the new revision tool attribute.
-
getRevToolRef
public String getRevToolRef()
-
setRevToolRef
public void setRevToolRef(String revToolRef)
-
getOrg
public String getOrg()
-
setOrg
public void setOrg(String org)
-
getOrgRef
public String getOrgRef()
-
setOrgRef
public void setOrgRef(String orgRef)
-
getRevOrg
public String getRevOrg()
-
setRevOrg
public void setRevOrg(String revOrg)
-
getRevOrgRef
public String getRevOrgRef()
-
setRevOrgRef
public void setRevOrgRef(String revOrgRef)
-
getPerson
public String getPerson()
-
setPerson
public void setPerson(String person)
-
getPersonRef
public String getPersonRef()
-
setPersonRef
public void setPersonRef(String personRef)
-
getRevPerson
public String getRevPerson()
-
setRevPerson
public void setRevPerson(String revPerson)
-
getRevPersonRef
public String getRevPersonRef()
-
setRevPersonRef
public void setRevPersonRef(String revPersonRef)
-
getProvRef
public String getProvRef()
-
setProvRef
public void setProvRef(String provRef)
-
-