Class Issue


  • public class Issue
    extends Object
    Represents an issue detected when processing the rules for the Validation module.
    • Constructor Detail

      • Issue

        public Issue​(String fileId,
                     String unitId,
                     String code,
                     String text,
                     String ruleInfo)
        Creates a new Issue object 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.