Package org.eclipse.xtext.validation
Class Issue.IssueImpl
- java.lang.Object
-
- org.eclipse.xtext.validation.Issue.IssueImpl
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.xtext.validation.Issue
Issue.IssueImpl
-
-
Field Summary
-
Fields inherited from interface org.eclipse.xtext.validation.Issue
CODE_KEY, COLUMN_KEY, DATA_KEY, URI_KEY
-
-
Constructor Summary
Constructors Constructor Description IssueImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getCode()
java.lang.Integer
getColumn()
Returns the column in the line of the issue.java.lang.Integer
getColumnEnd()
Returns the end column in the line of the issue.java.lang.String[]
getData()
java.lang.Integer
getLength()
java.lang.Integer
getLineNumber()
Returns the one-based line number of the issue.java.lang.Integer
getLineNumberEnd()
Returns the one-based line number of the end of the issue.java.lang.String
getMessage()
java.lang.Integer
getOffset()
Severity
getSeverity()
Returns the severity of the issue.CheckType
getType()
org.eclipse.emf.common.util.URI
getUriToProblem()
boolean
isSyntaxError()
void
setCode(java.lang.String code)
void
setColumn(java.lang.Integer column)
void
setColumnEnd(java.lang.Integer columnEnd)
void
setData(java.lang.String[] data)
void
setLength(java.lang.Integer length)
void
setLineNumber(java.lang.Integer lineNumber)
void
setLineNumberEnd(java.lang.Integer lineNumberEnd)
void
setMessage(java.lang.String message)
void
setOffset(java.lang.Integer offset)
void
setSeverity(Severity severity)
void
setSyntaxError(boolean isSyntaxError)
void
setType(CheckType type)
void
setUriToProblem(org.eclipse.emf.common.util.URI uriToProblem)
java.lang.String
toString()
-
-
-
Method Detail
-
setLength
public void setLength(java.lang.Integer length)
-
getLineNumber
public java.lang.Integer getLineNumber()
Description copied from interface:Issue
Returns the one-based line number of the issue. Values smaller than 1 and null values are invalid and indicate the absence of line information on this issue.- Specified by:
getLineNumber
in interfaceIssue
-
setLineNumber
public void setLineNumber(java.lang.Integer lineNumber)
-
getLineNumberEnd
public java.lang.Integer getLineNumberEnd()
Description copied from interface:Issue
Returns the one-based line number of the end of the issue. Values smaller than 1 and null values are invalid and indicate the absence of line information on this issue.- Specified by:
getLineNumberEnd
in interfaceIssue
- Since:
- 2.21
-
setLineNumberEnd
public void setLineNumberEnd(java.lang.Integer lineNumberEnd)
- Since:
- 2.21
-
getColumn
public java.lang.Integer getColumn()
Description copied from interface:Issue
Returns the column in the line of the issue. It's not the virtual column but literally the character offset in the column, e.g. tab ('\t') counts as one character. The first char in a line has column number 1, the number is one-based. Values smaller than 1 and null values are invalid and indicate the absence of column information on this issue. The region defined by line and column information includes the character at the start column.
-
setColumn
public void setColumn(java.lang.Integer column)
- Since:
- 2.9
-
getColumnEnd
public java.lang.Integer getColumnEnd()
Description copied from interface:Issue
Returns the end column in the line of the issue. It's not the virtual end column but literally the character end offset in the column, e.g. tab ('\t') counts as one character. The first char in a line has column number 1, the number is one-based. Values smaller than 1 and null values are invalid and indicate the absence of column information on this issue. The region defined by line and column information does not include the character at the end column.- Specified by:
getColumnEnd
in interfaceIssue
- Since:
- 2.21
-
setColumnEnd
public void setColumnEnd(java.lang.Integer columnEnd)
- Since:
- 2.21
-
setOffset
public void setOffset(java.lang.Integer offset)
-
getMessage
public java.lang.String getMessage()
- Specified by:
getMessage
in interfaceIssue
-
setMessage
public void setMessage(java.lang.String message)
-
getUriToProblem
public org.eclipse.emf.common.util.URI getUriToProblem()
- Specified by:
getUriToProblem
in interfaceIssue
-
setUriToProblem
public void setUriToProblem(org.eclipse.emf.common.util.URI uriToProblem)
-
getSeverity
public Severity getSeverity()
Description copied from interface:Issue
Returns the severity of the issue. Defaults toSeverity.ERROR
.- Specified by:
getSeverity
in interfaceIssue
-
setSeverity
public void setSeverity(Severity severity)
-
setCode
public void setCode(java.lang.String code)
-
getData
public java.lang.String[] getData()
-
setData
public void setData(java.lang.String[] data)
-
setType
public void setType(CheckType type)
-
setSyntaxError
public void setSyntaxError(boolean isSyntaxError)
-
isSyntaxError
public boolean isSyntaxError()
- Specified by:
isSyntaxError
in interfaceIssue
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-