Class DiagnosticsResult

java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.ArrayList<org.eclipse.lsp4j.Diagnostic>
org.eclipse.lemminx.services.extensions.diagnostics.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:
  • Field Details

  • Constructor Details

    • DiagnosticsResult

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

    • getValidationArgs

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

      public void addFuture(CompletableFuture<?> future)
    • 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.