Class IssueAnnotation

    • Constructor Detail

      • IssueAnnotation

        public IssueAnnotation()
      • IssueAnnotation

        public IssueAnnotation​(IssueType issueType,
                               String comment,
                               double severity,
                               String segId,
                               int srcStart,
                               int srcEnd,
                               int trgStart,
                               int trgEnd,
                               List<Code> codes)
    • Method Detail

      • getIssueType

        public IssueType getIssueType()
      • setIssueType

        public void setIssueType​(IssueType issueType)
        Sets the issue type and its corresponding ITS type mapping. To override the default mapping, use setITSType(String).
        Parameters:
        issueType - the issue type to set.
      • getITSType

        public String getITSType()
      • setITSType

        public void setITSType​(String itsType)
      • getSegId

        public String getSegId()
      • setSegId

        public void setSegId​(String segId)
      • getSourceStart

        public int getSourceStart()
      • getSourceEnd

        public int getSourceEnd()
      • setSourcePosition

        public void setSourcePosition​(Integer start,
                                      Integer end)
      • getTargetStart

        public int getTargetStart()
      • getTargetEnd

        public int getTargetEnd()
      • setTargetPosition

        public void setTargetPosition​(Integer start,
                                      Integer end)
      • getEnabled

        public boolean getEnabled()
      • setEnabled

        public void setEnabled​(boolean enabled)
      • getSeverity

        public double getSeverity()
      • setSeverity

        public void setSeverity​(double severity)
      • getComment

        public String getComment()
      • setComment

        public void setComment​(String comment)
      • getCodes

        public String getCodes()
        Gets the string list of the codes for this issue.
        Returns:
        the string list of the codes for this issue.
      • getCodesAsArray

        public String[] getCodesAsArray()
      • getCodesAsList

        public List<Code> getCodesAsList()
      • setCodes

        public void setCodes​(List<Code> codes)
      • setCodes

        public void setCodes​(String codes)
      • getProfileRef

        public String getProfileRef()
      • setProfileRef

        public void setProfileRef​(String profileRef)
      • toString

        public String toString()
        Description copied from class: InlineAnnotation
        Gets a storage string representation of the whole annotation that can be used for serialization.
        Specified by:
        toString in interface IAnnotation
        Overrides:
        toString in class GenericAnnotation
        Returns:
        The storage string representation of this annotation.