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.StringgetCode()java.lang.IntegergetColumn()Returns the column in the line of the issue.java.lang.IntegergetColumnEnd()Returns the end column in the line of the issue.java.lang.String[]getData()java.lang.IntegergetLength()java.lang.IntegergetLineNumber()Returns the one-based line number of the issue.java.lang.IntegergetLineNumberEnd()Returns the one-based line number of the end of the issue.java.lang.StringgetMessage()java.lang.IntegergetOffset()SeveritygetSeverity()Returns the severity of the issue.CheckTypegetType()org.eclipse.emf.common.util.URIgetUriToProblem()booleanisSyntaxError()voidsetCode(java.lang.String code)voidsetColumn(java.lang.Integer column)voidsetColumnEnd(java.lang.Integer columnEnd)voidsetData(java.lang.String[] data)voidsetLength(java.lang.Integer length)voidsetLineNumber(java.lang.Integer lineNumber)voidsetLineNumberEnd(java.lang.Integer lineNumberEnd)voidsetMessage(java.lang.String message)voidsetOffset(java.lang.Integer offset)voidsetSeverity(Severity severity)voidsetSyntaxError(boolean isSyntaxError)voidsetType(CheckType type)voidsetUriToProblem(org.eclipse.emf.common.util.URI uriToProblem)java.lang.StringtoString()
-
-
-
Method Detail
-
setLength
public void setLength(java.lang.Integer length)
-
getLineNumber
public java.lang.Integer getLineNumber()
Description copied from interface:IssueReturns 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:
getLineNumberin interfaceIssue
-
setLineNumber
public void setLineNumber(java.lang.Integer lineNumber)
-
getLineNumberEnd
public java.lang.Integer getLineNumberEnd()
Description copied from interface:IssueReturns 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:
getLineNumberEndin 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:IssueReturns 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:IssueReturns 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:
getColumnEndin 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:
getMessagein interfaceIssue
-
setMessage
public void setMessage(java.lang.String message)
-
getUriToProblem
public org.eclipse.emf.common.util.URI getUriToProblem()
- Specified by:
getUriToProblemin interfaceIssue
-
setUriToProblem
public void setUriToProblem(org.eclipse.emf.common.util.URI uriToProblem)
-
getSeverity
public Severity getSeverity()
Description copied from interface:IssueReturns the severity of the issue. Defaults toSeverity.ERROR.- Specified by:
getSeverityin 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:
isSyntaxErrorin interfaceIssue
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-