public class IssueAnnotation extends GenericAnnotation
CLASSNAME_SEPARATOR, data| Constructor and Description |
|---|
IssueAnnotation() |
IssueAnnotation(GenericAnnotation ann) |
IssueAnnotation(IssueType issueType,
String comment,
double severity,
String segId,
int srcStart,
int srcEnd,
int trgStart,
int trgEnd,
List<Code> codes) |
| Modifier and Type | Method and Description |
|---|---|
void |
fromString(String storage)
Initializes this annotation from a storage string originally obtained
from
InlineAnnotation.toString(). |
String |
getCodes()
Gets the string list of the codes for this issue.
|
String[] |
getCodesAsArray() |
List<Code> |
getCodesAsList() |
String |
getComment() |
boolean |
getEnabled() |
IssueType |
getIssueType() |
String |
getITSType() |
String |
getProfileRef() |
String |
getSegId() |
double |
getSeverity() |
int |
getSourceEnd() |
int |
getSourceStart() |
int |
getTargetEnd() |
int |
getTargetStart() |
void |
setCodes(List<Code> codes) |
void |
setCodes(String codes) |
void |
setComment(String comment) |
void |
setEnabled(boolean enabled) |
void |
setIssueType(IssueType issueType)
Sets the issue type and its corresponding ITS type mapping.
|
void |
setITSType(String itsType) |
void |
setProfileRef(String profileRef) |
void |
setSegId(String segId) |
void |
setSeverity(double severity) |
void |
setSourcePosition(Integer start,
Integer end) |
void |
setTargetPosition(Integer start,
Integer end) |
String |
toString()
Gets a storage string representation of the whole annotation that can
be used for serialization.
|
addAnnotation, addAnnotation, addAnnotation, clone, createFromString, getBoolean, getDouble, getFieldCount, getInteger, getNames, getString, getType, remove, setBoolean, setDouble, setFields, setInteger, setStringgetData, setDatapublic IssueAnnotation()
public IssueAnnotation(IssueType issueType, String comment, double severity, String segId, int srcStart, int srcEnd, int trgStart, int trgEnd, List<Code> codes)
public IssueAnnotation(GenericAnnotation ann)
public IssueType getIssueType()
public void setIssueType(IssueType issueType)
setITSType(String).issueType - the issue type to set.public String getITSType()
public void setITSType(String itsType)
public String getSegId()
public void setSegId(String segId)
public int getSourceStart()
public int getSourceEnd()
public int getTargetStart()
public int getTargetEnd()
public boolean getEnabled()
public void setEnabled(boolean enabled)
public double getSeverity()
public void setSeverity(double severity)
public String getComment()
public void setComment(String comment)
public String getCodes()
public String[] getCodesAsArray()
public void setCodes(String codes)
public String getProfileRef()
public void setProfileRef(String profileRef)
public String toString()
InlineAnnotationtoString in interface IAnnotationtoString in class GenericAnnotationpublic void fromString(String storage)
InlineAnnotationInlineAnnotation.toString().fromString in interface IPersistentAnnotationfromString in class GenericAnnotationstorage - The storage string to use for the initialization.Copyright © 2022. All rights reserved.