Class DiagnosticsResult

  • All Implemented Interfaces:
    Serializable, Cloneable, Iterable<org.eclipse.lsp4j.Diagnostic>, Collection<org.eclipse.lsp4j.Diagnostic>, List<org.eclipse.lsp4j.Diagnostic>, RandomAccess

    public class DiagnosticsResult
    extends ArrayList<org.eclipse.lsp4j.Diagnostic>
    This class is the result of a diagnostic process. It contains:
    • list of diagnostics.
    • list of completable future which are not done(ex : download some external resources XSD, DTD). This list of future gives the capability to refresh again the diagnostics once all completable futures are finished (ex : all download are finished).
    Author:
    Angelo ZERR
    See Also:
    Serialized Form
    • Constructor Detail

      • DiagnosticsResult

        public DiagnosticsResult​(Map<String,​Object> validationArgs)
    • Method Detail

      • getValidationArgs

        public Map<String,​Object> getValidationArgs()
        Returns the validation arguments.
        Returns:
        the validation arguments.
      • getFutures

        public List<CompletableFuture<?>> getFutures()
        Returns the completable futures used in a diagnostics (ex : completeable future to download external resources XSD, DTD) and an empty list otherwise.
        Returns:
        the completable futures used in a diagnostics (ex : completeable future to download external resources XSD, DTD) and an empty list otherwise.