Class Issue
- java.lang.Object
-
- net.sf.okapi.lib.xliff2.validation.Issue
-
public class Issue extends Object
Represents an issue detected when processing the rules for the Validation module.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCode()Gets the code for this issue.StringgetFileId()Gets the file id for this issue.StringgetRuleInfo()Gets the string representation of the rule that triggered the issue.StringgetText()Gets the text for this issue.StringgetUnitId()Gets the id of the unit where this issue is.voidsetCode(String code)Sets the code for this issue.voidsetFileId(String fileId)Sets the file id for this issue.voidsetRuleInfo(String ruleInfo)Sets the string representation of the rule that triggered the issue.voidsetText(String text)Sets the text for this issue.voidsetUnitId(String unitId)Sets the id of the unit where this issue is.
-
-
-
Constructor Detail
-
Issue
public Issue(String fileId, String unitId, String code, String text, String ruleInfo)
Creates a newIssueobject with a given segment number, code and text.- Parameters:
fileId- the id of the file for the given unit.code- the string representation of the code for this issue.text- the human readable text of this issue.
-
-
Method Detail
-
getCode
public String getCode()
Gets the code for this issue.- Returns:
- the code for this issue.
-
setCode
public void setCode(String code)
Sets the code for this issue.- Parameters:
code- the code for this issue.
-
getText
public String getText()
Gets the text for this issue.- Returns:
- the text for this issue.
-
setText
public void setText(String text)
Sets the text for this issue.- Parameters:
text- the text for this issue.
-
getUnitId
public String getUnitId()
Gets the id of the unit where this issue is.- Returns:
- the id of the unit where this issue is.
-
setUnitId
public void setUnitId(String unitId)
Sets the id of the unit where this issue is.- Parameters:
unitId- the id of the unit where this issue is.
-
getFileId
public String getFileId()
Gets the file id for this issue.- Returns:
- the file id for this issue.
-
setFileId
public void setFileId(String fileId)
Sets the file id for this issue.- Parameters:
fileId- the file id for this issue.
-
getRuleInfo
public String getRuleInfo()
Gets the string representation of the rule that triggered the issue.- Returns:
- the the string representation of the rule that triggered the issue.
-
setRuleInfo
public void setRuleInfo(String ruleInfo)
Sets the string representation of the rule that triggered the issue.- Parameters:
ruleInfo- the string representation of the rule that triggered the issue.
-
-