Package net.sf.okapi.lib.verification
Class Issue
- java.lang.Object
-
- net.sf.okapi.common.resource.InlineAnnotation
-
- net.sf.okapi.common.annotation.GenericAnnotation
-
- net.sf.okapi.lib.verification.Issue
-
- All Implemented Interfaces:
Cloneable,IAnnotation,IPersistentAnnotation
public class Issue extends GenericAnnotation
-
-
Field Summary
Fields Modifier and Type Field Description static intDISPSEVERITY_HIGHstatic intDISPSEVERITY_LOWstatic intDISPSEVERITY_MEDIUMstatic doubleSEVERITY_HIGHstatic doubleSEVERITY_LOWstatic doubleSEVERITY_MEDIUM-
Fields inherited from class net.sf.okapi.common.resource.InlineAnnotation
CLASSNAME_SEPARATOR, data
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static doubledisplaySeverityToSeverity(int value)List<Code>getCodes()intgetDisplaySeverity()URIgetDocumentURI()booleangetEnabled()IssueTypegetIssueType()StringgetITSType()StringgetMessage()StringgetSegId()doublegetSeverity()StringgetSource()TextContainergetSourceContainer()intgetSourceEnd()intgetSourceStart()StringgetSubDocumentId()StringgetTarget()TextContainergetTargetContainer()intgetTargetEnd()intgetTargetStart()StringgetTuId()StringgetTuName()voidsetCodes(List<Code> codes)voidsetContainers(ITextUnit tu, LocaleId trgLoc)voidsetEnabled(boolean enabled)voidsetSource(String source)voidsetTarget(String target)static intseverityToDisplaySeverity(double value)StringtoString()Gets the string representation of the issue.-
Methods inherited from class net.sf.okapi.common.annotation.GenericAnnotation
addAnnotation, addAnnotation, addAnnotation, clone, createFromString, fromString, getBoolean, getDouble, getFieldCount, getInteger, getNames, getString, getType, getValue, remove, setBoolean, setDouble, setFields, setInteger, setString
-
Methods inherited from class net.sf.okapi.common.resource.InlineAnnotation
getData, setData
-
-
-
-
Field Detail
-
DISPSEVERITY_LOW
public static final int DISPSEVERITY_LOW
- See Also:
- Constant Field Values
-
DISPSEVERITY_MEDIUM
public static final int DISPSEVERITY_MEDIUM
- See Also:
- Constant Field Values
-
DISPSEVERITY_HIGH
public static final int DISPSEVERITY_HIGH
- See Also:
- Constant Field Values
-
SEVERITY_LOW
public static final double SEVERITY_LOW
- See Also:
- Constant Field Values
-
SEVERITY_MEDIUM
public static final double SEVERITY_MEDIUM
- See Also:
- Constant Field Values
-
SEVERITY_HIGH
public static final double SEVERITY_HIGH
- See Also:
- Constant Field Values
-
-
Method Detail
-
getDocumentURI
public URI getDocumentURI()
-
getSubDocumentId
public String getSubDocumentId()
-
getIssueType
public IssueType getIssueType()
-
getITSType
public String getITSType()
-
getTuId
public String getTuId()
-
getTuName
public String getTuName()
-
getSegId
public String getSegId()
-
getSourceStart
public int getSourceStart()
-
getSourceEnd
public int getSourceEnd()
-
getTargetStart
public int getTargetStart()
-
getTargetEnd
public int getTargetEnd()
-
getEnabled
public boolean getEnabled()
-
setEnabled
public void setEnabled(boolean enabled)
-
getDisplaySeverity
public int getDisplaySeverity()
-
getSeverity
public double getSeverity()
-
getMessage
public String getMessage()
-
getSource
public String getSource()
-
setSource
public void setSource(String source)
-
getTarget
public String getTarget()
-
setTarget
public void setTarget(String target)
-
getSourceContainer
public TextContainer getSourceContainer()
-
getTargetContainer
public TextContainer getTargetContainer()
-
toString
public String toString()
Gets the string representation of the issue.TEST ONLY: The representation in raw XML (ITS 2.0 QA error element).
- Specified by:
toStringin interfaceIAnnotation- Overrides:
toStringin classGenericAnnotation
-
severityToDisplaySeverity
public static int severityToDisplaySeverity(double value)
-
displaySeverityToSeverity
public static double displaySeverityToSeverity(int value)
-
-