Package org.eclipse.lsp4j
Class PublishDiagnosticsParams
- java.lang.Object
-
- org.eclipse.lsp4j.PublishDiagnosticsParams
-
public class PublishDiagnosticsParams extends java.lang.Object
Diagnostics notification are sent from the server to the client to signal results of validation runs.
-
-
Constructor Summary
Constructors Constructor Description PublishDiagnosticsParams()
PublishDiagnosticsParams(java.lang.String uri, java.util.List<Diagnostic> diagnostics)
PublishDiagnosticsParams(java.lang.String uri, java.util.List<Diagnostic> diagnostics, java.lang.Integer version)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
java.util.List<Diagnostic>
getDiagnostics()
An array of diagnostic information items.java.lang.String
getUri()
The URI for which diagnostic information is reported.java.lang.Integer
getVersion()
Optional the version number of the document the diagnostics are published for.int
hashCode()
void
setDiagnostics(java.util.List<Diagnostic> diagnostics)
An array of diagnostic information items.void
setUri(java.lang.String uri)
The URI for which diagnostic information is reported.void
setVersion(java.lang.Integer version)
Optional the version number of the document the diagnostics are published for.java.lang.String
toString()
-
-
-
Constructor Detail
-
PublishDiagnosticsParams
public PublishDiagnosticsParams()
-
PublishDiagnosticsParams
public PublishDiagnosticsParams(java.lang.String uri, java.util.List<Diagnostic> diagnostics)
-
PublishDiagnosticsParams
public PublishDiagnosticsParams(java.lang.String uri, java.util.List<Diagnostic> diagnostics, java.lang.Integer version)
-
-
Method Detail
-
getUri
public java.lang.String getUri()
The URI for which diagnostic information is reported.
-
setUri
public void setUri(java.lang.String uri)
The URI for which diagnostic information is reported.
-
getDiagnostics
public java.util.List<Diagnostic> getDiagnostics()
An array of diagnostic information items.
-
setDiagnostics
public void setDiagnostics(java.util.List<Diagnostic> diagnostics)
An array of diagnostic information items.
-
getVersion
public java.lang.Integer getVersion()
Optional the version number of the document the diagnostics are published for.Since 3.15.0
-
setVersion
public void setVersion(java.lang.Integer version)
Optional the version number of the document the diagnostics are published for.Since 3.15.0
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-