Modifier and Type | Method and Description |
---|---|
DOMDocument |
XMLTextDocumentService.SaveContext.getDocument(String uri) |
DOMDocument |
XMLLanguageServer.getDocument(String uri) |
Modifier and Type | Method and Description |
---|---|
Collection<ModelTextDocument<DOMDocument>> |
XMLTextDocumentService.allDocuments() |
Collection<DOMDocument> |
XMLLanguageServer.getAllDocuments() |
ModelTextDocument<DOMDocument> |
XMLTextDocumentService.getDocument(String uri)
Returns the text document from the given uri.
|
Modifier and Type | Method and Description |
---|---|
void |
XMLLanguageServer.validate(DOMDocument document,
Map<String,Object> validationArgs) |
Modifier and Type | Method and Description |
---|---|
void |
XMLTextDocumentService.SaveContext.collectDocumentToValidate(Predicate<DOMDocument> validateDocumentPredicate) |
<R> CompletableFuture<R> |
XMLTextDocumentService.computeDOMAsync(org.eclipse.lsp4j.TextDocumentIdentifier documentIdentifier,
BiFunction<DOMDocument,org.eclipse.lsp4j.jsonrpc.CancelChecker,R> code)
Compute the DOM Document for a given uri in a future and then apply the given
function.
|
Modifier and Type | Method and Description |
---|---|
DOMDocument |
SchemaLocationHint.getOwnerDocument() |
DOMDocument |
DTDDeclParameter.getOwnerDocument() |
DOMDocument |
DOMRange.getOwnerDocument()
Returns the owner document.
|
DOMDocument |
DOMNode.getOwnerDocument()
Returns the owner document and null otherwise.
|
DOMDocument |
DOMDocument.getOwnerDocument() |
DOMDocument |
DOMAttr.getOwnerDocument() |
DOMDocument |
DOMParser.parse(String text,
String uri,
URIResolverExtensionManager resolverExtensionManager) |
DOMDocument |
DOMParser.parse(String text,
String uri,
URIResolverExtensionManager resolverExtensionManager,
boolean ignoreWhitespaceContent) |
DOMDocument |
DOMParser.parse(TextDocument document,
URIResolverExtensionManager resolverExtensionManager) |
DOMDocument |
DOMParser.parse(TextDocument document,
URIResolverExtensionManager resolverExtensionManager,
boolean ignoreWhitespaceContent) |
DOMDocument |
DOMParser.parse(TextDocument document,
URIResolverExtensionManager resolverExtensionManager,
boolean ignoreWhitespaceContent,
org.eclipse.lsp4j.jsonrpc.CancelChecker monitor) |
Modifier and Type | Method and Description |
---|---|
static DOMNode |
DOMNode.findNodeOrAttrAt(DOMDocument document,
int offset) |
Modifier and Type | Method and Description |
---|---|
void |
XMLCatalogDiagnosticsParticipant.doDiagnostics(DOMDocument xmlDocument,
List<org.eclipse.lsp4j.Diagnostic> diagnostics,
XMLValidationSettings validationSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker monitor) |
void |
XMLCatalogDocumentLinkParticipant.findDocumentLinks(DOMDocument document,
List<org.eclipse.lsp4j.DocumentLink> links) |
static List<CatalogEntry> |
CatalogUtils.getCatalogEntries(DOMDocument document)
Returns a list of all the catalog entries in the given document, or an empty
list if the document is not a catalog.
|
static String |
CatalogUtils.getResolvedLocation(DOMDocument document,
CatalogEntry catalogEntry)
Returns the expanded system location
|
Modifier and Type | Method and Description |
---|---|
static boolean |
CheckBoundGrammarCommand.canBindWithGrammar(DOMDocument document)
Returns true if the given DOM document can be bound with a given grammar and
false otherwise.
|
protected Object |
XMLValidationFileCommand.executeCommand(DOMDocument document,
org.eclipse.lsp4j.ExecuteCommandParams params,
SharedSettings sharedSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
protected Object |
SurroundWithCommand.executeCommand(DOMDocument document,
org.eclipse.lsp4j.ExecuteCommandParams params,
SharedSettings sharedSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
protected Object |
CheckBoundGrammarCommand.executeCommand(DOMDocument document,
org.eclipse.lsp4j.ExecuteCommandParams params,
SharedSettings sharedSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
protected Object |
AssociateGrammarCommand.executeCommand(DOMDocument document,
org.eclipse.lsp4j.ExecuteCommandParams params,
SharedSettings sharedSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
Modifier and Type | Method and Description |
---|---|
boolean |
ContentModelProvider.adaptFor(DOMDocument document,
boolean internal)
Returns the content model provider by using standard association
(xsi:schemaLocation, xsi:noNamespaceSchemaLocation, doctype) and null
otherwise.
|
CMDocument |
ContentModelProvider.createInternalCMDocument(DOMDocument xmlDocument,
boolean resolveExternalEntities)
Create the internal content model (for DOCTYPE subset) from the given DOM
document.
|
boolean |
ContentModelManager.dependsOnGrammar(DOMDocument document,
String grammarURI)
Returns true if the given document is linked to the given grammar URI (XML
Schema, DTD) and false otherwise.
|
void |
ContentModelManager.evictCacheFor(DOMDocument document)
Remove the referenced grammar from the given document and clear the Xerces
grammar cache which stores the XSD, DTD grammar.
|
Collection<CMDocument> |
ContentModelManager.findCMDocument(DOMDocument xmlDocument,
String namespaceURI) |
Collection<CMDocument> |
ContentModelManager.findCMDocument(DOMDocument xmlDocument,
String namespaceURI,
boolean withInternal)
Returns the declared documents which match the given DOM document.
|
Collection<ContentModelProvider.Identifier> |
ContentModelProvider.getIdentifiers(DOMDocument xmlDocument,
String namespaceURI)
Returns the identifiers list from the given document and namespace.
|
Set<ReferencedGrammarInfo> |
ContentModelManager.getReferencedGrammarInfos(DOMDocument document)
Returns informations about all referenced grammar (XSD, DTD) from the given
DOM document.
|
Modifier and Type | Method and Description |
---|---|
ISymbolsProviderParticipant.SymbolStrategy |
ContentModelSymbolsProviderParticipant.applyFor(DOMDocument document) |
void |
DocumentTelemetryParticipant.didChange(DOMDocument document) |
void |
DocumentTelemetryParticipant.didClose(DOMDocument document) |
void |
DocumentTelemetryParticipant.didOpen(DOMDocument document) |
void |
DocumentTelemetryParticipant.didSave(DOMDocument document) |
void |
ContentModelDocumentLinkParticipant.findDocumentLinks(DOMDocument document,
List<org.eclipse.lsp4j.DocumentLink> links) |
void |
ContentModelSymbolsProviderParticipant.findDocumentSymbols(DOMDocument document,
DocumentSymbolsResult symbols,
XMLSymbolFilter filter,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
List<org.eclipse.lsp4j.DiagnosticRelatedInformation> |
XMLSyntaxRelatedInfoFinder.findRelatedInformation(int offset,
String errorKey,
DOMDocument document) |
List<org.eclipse.lsp4j.DiagnosticRelatedInformation> |
IRelatedInfoFinder.findRelatedInformation(int offset,
String errorKey,
DOMDocument document)
Returns a list of related information
|
List<org.eclipse.lsp4j.DiagnosticRelatedInformation> |
AggregateRelatedInfoFinder.findRelatedInformation(int offset,
String errorKey,
DOMDocument document) |
void |
ContentModelSymbolsProviderParticipant.findSymbolInformations(DOMDocument document,
SymbolInformationResult symbols,
XMLSymbolFilter filter,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
static DOMRange |
XMLModelUtils.getHrefNode(DOMDocument document,
String hrefLocation)
Returns the DOM range of the href of the xml-model processing instruction
which matches the given hrefLocation.
|
protected boolean |
ContentModelTypeDefinitionParticipant.match(DOMDocument document) |
static org.eclipse.lsp4j.Range |
DTDErrorCode.toLSPRange(org.apache.xerces.xni.XMLLocator location,
DTDErrorCode code,
Object[] arguments,
DOMDocument document)
Create the LSP range from the SAX error.
|
static org.eclipse.lsp4j.Range |
XMLSchemaErrorCode.toLSPRange(org.apache.xerces.xni.XMLLocator location,
XMLSchemaErrorCode code,
Object[] arguments,
DOMDocument document)
Create the LSP range from the SAX error.
|
static org.eclipse.lsp4j.Range |
XMLSyntaxErrorCode.toLSPRange(org.apache.xerces.xni.XMLLocator location,
XMLSyntaxErrorCode code,
Object[] arguments,
DOMDocument document)
Create the LSP range from the SAX error.
|
Modifier and Type | Method and Description |
---|---|
static org.eclipse.lsp4j.TextDocumentEdit |
NoGrammarConstraintsCodeAction.createDocTypeEdit(String dtdFileName,
DOMDocument document,
SharedSettings sharedSettings) |
protected org.eclipse.lsp4j.TextDocumentEdit |
GenerateXSINoNamespaceSchemaCodeActionResolver.createFileEdit(String grammarFileName,
DOMDocument document,
SharedSettings sharedSettings) |
protected org.eclipse.lsp4j.TextDocumentEdit |
GenerateXMLModelWithXSDCodeActionResolver.createFileEdit(String grammarFileName,
DOMDocument document,
SharedSettings sharedSettings) |
protected org.eclipse.lsp4j.TextDocumentEdit |
GenerateXMLModelWithDTDCodeActionResolver.createFileEdit(String grammarFileName,
DOMDocument document,
SharedSettings sharedSettings) |
protected org.eclipse.lsp4j.TextDocumentEdit |
GenerateDocTypeCodeActionResolver.createFileEdit(String grammarFileName,
DOMDocument document,
SharedSettings sharedSettings) |
protected abstract org.eclipse.lsp4j.TextDocumentEdit |
AbstractGenerateGrammarAndAssociationResolveCodeActionParticipant.createFileEdit(String grammarFileName,
DOMDocument document,
SharedSettings sharedSettings) |
static org.eclipse.lsp4j.TextDocumentEdit |
NoGrammarConstraintsCodeAction.createXmlModelEdit(String schemaFileName,
String targetNamespace,
DOMDocument document,
SharedSettings sharedSettings) |
static org.eclipse.lsp4j.TextDocumentEdit |
NoGrammarConstraintsCodeAction.createXSINoNamespaceSchemaLocationEdit(String schemaFileName,
DOMDocument document) |
static org.eclipse.lsp4j.TextDocumentEdit |
NoGrammarConstraintsCodeAction.createXSISchemaLocationEdit(String schemaFileName,
String targetNamespace,
DOMDocument document) |
Modifier and Type | Method and Description |
---|---|
void |
ContentModelDiagnosticsParticipant.doDiagnostics(DOMDocument xmlDocument,
List<org.eclipse.lsp4j.Diagnostic> diagnostics,
XMLValidationSettings validationSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker monitor) |
static void |
XMLValidator.doDiagnostics(DOMDocument document,
org.apache.xerces.xni.parser.XMLEntityResolver entityResolver,
List<org.eclipse.lsp4j.Diagnostic> diagnostics,
XMLValidationSettings validationSettings,
ContentModelManager contentModelManager,
org.eclipse.lsp4j.jsonrpc.CancelChecker monitor) |
protected org.eclipse.lsp4j.Range |
LSPErrorReporterForXML.toLSPRange(org.apache.xerces.xni.XMLLocator location,
String key,
Object[] arguments,
String message,
org.eclipse.lsp4j.DiagnosticSeverity diagnosticSeverity,
boolean fatalError,
DOMDocument document,
String documentOrGrammarURI,
boolean errorForDocument) |
Constructor and Description |
---|
LSPErrorReporterForXML(DOMDocument xmlDocument,
List<org.eclipse.lsp4j.Diagnostic> diagnostics,
ContentModelManager contentModelManager,
boolean hasRelatedInformation,
Map<String,ReferencedGrammarDiagnosticsInfo> referencedGrammarDiagnosticsInfoCache) |
LSPSAXParser(LSPErrorReporterForXML reporter,
org.apache.xerces.xni.parser.XMLParserConfiguration config,
LSPXMLGrammarPool grammarPool,
DOMDocument document) |
Modifier and Type | Method and Description |
---|---|
boolean |
CMDTDContentModelProvider.adaptFor(DOMDocument document,
boolean internal) |
CMDocument |
CMDTDContentModelProvider.createInternalCMDocument(DOMDocument xmlDocument,
boolean resolveExternalEntities) |
Collection<ContentModelProvider.Identifier> |
CMDTDContentModelProvider.getIdentifiers(DOMDocument xmlDocument,
String namespaceURI) |
Modifier and Type | Method and Description |
---|---|
void |
DTDDocumentLinkParticipant.findDocumentLinks(DOMDocument document,
List<org.eclipse.lsp4j.DocumentLink> links) |
protected boolean |
DTDReferenceParticipant.match(DOMDocument document) |
protected boolean |
DTDDefinitionParticipant.match(DOMDocument document) |
Modifier and Type | Method and Description |
---|---|
void |
DTDDiagnosticsParticipant.doDiagnostics(DOMDocument xmlDocument,
List<org.eclipse.lsp4j.Diagnostic> diagnostics,
XMLValidationSettings validationSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
static void |
DTDValidator.doDiagnostics(DOMDocument document,
org.apache.xerces.xni.parser.XMLEntityResolver entityResolver,
List<org.eclipse.lsp4j.Diagnostic> diagnostics,
XMLValidationSettings validationSettings,
ContentModelManager contentModelManager,
org.eclipse.lsp4j.jsonrpc.CancelChecker monitor) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
EntitiesDefinitionParticipant.match(DOMDocument document) |
Modifier and Type | Method and Description |
---|---|
static void |
PrologModel.computeAttributeNameCompletionResponses(ICompletionRequest request,
ICompletionResponse response,
org.eclipse.lsp4j.Range editRange,
DOMDocument document,
SharedSettings sharedSettings) |
static void |
PrologModel.computeValueCompletionResponses(ICompletionRequest request,
ICompletionResponse response,
org.eclipse.lsp4j.Range editRange,
DOMDocument document) |
Modifier and Type | Method and Description |
---|---|
XMLReferences |
XMLReferencesManager.referencesFor(Predicate<DOMDocument> documentPredicate) |
Modifier and Type | Method and Description |
---|---|
protected boolean |
XMLReferencesDefinitionParticipant.match(DOMDocument document) |
Modifier and Type | Method and Description |
---|---|
void |
RNGDocumentLinkParticipant.findDocumentLinks(DOMDocument document,
List<org.eclipse.lsp4j.DocumentLink> links) |
void |
RNGDocumentLinkParticipant.findDocumentLinks(DOMNode parent,
DOMDocument document,
List<org.eclipse.lsp4j.DocumentLink> links) |
protected boolean |
RNGReferenceParticipant.match(DOMDocument document) |
protected boolean |
RNGDefinitionParticipant.match(DOMDocument document) |
Modifier and Type | Method and Description |
---|---|
boolean |
CMRelaxNGContentModelProvider.adaptFor(DOMDocument document,
boolean internal) |
CMDocument |
CMRelaxNGContentModelProvider.createInternalCMDocument(DOMDocument xmlDocument,
boolean resolveExternalEntities) |
Collection<ContentModelProvider.Identifier> |
CMRelaxNGContentModelProvider.getIdentifiers(DOMDocument xmlDocument,
String namespaceURI) |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.lsp4j.Range |
RelaxNGErrorCode.toLSPRange(org.apache.xerces.xni.XMLLocator location,
RelaxNGErrorCode rngCode,
Object[] arguments,
DOMDocument document) |
Modifier and Type | Method and Description |
---|---|
protected DOMDocument |
AbstractLSPErrorReporter.getDOMDocument()
Returns the DOM document which is validating.
|
DOMDocument |
ReferencedGrammarDiagnosticsInfo.getGrammarDocument()
Returns the DOM document of the referenced grammar.
|
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.lsp4j.Range |
AbstractLSPErrorReporter.createDefaultRange(org.apache.xerces.xni.XMLLocator location,
DOMDocument document) |
protected org.eclipse.lsp4j.Range |
AbstractReferencedGrammarLSPErrorReporter.toLSPRange(org.apache.xerces.xni.XMLLocator location,
String key,
Object[] arguments,
String message,
org.eclipse.lsp4j.DiagnosticSeverity diagnosticSeverity,
boolean fatalError,
DOMDocument document)
Create the LSP range from the SAX error.
|
protected abstract org.eclipse.lsp4j.Range |
AbstractLSPErrorReporter.toLSPRange(org.apache.xerces.xni.XMLLocator location,
String key,
Object[] arguments,
String message,
org.eclipse.lsp4j.DiagnosticSeverity diagnosticSeverity,
boolean fatalError,
DOMDocument document)
Returns the range of the given error information, or {
AbstractLSPErrorReporter.NO_RANGE if
diagnostic must not be created and null otherwise. |
protected abstract org.eclipse.lsp4j.Range |
AbstractReferencedGrammarLSPErrorReporter.toLSPRange(org.apache.xerces.xni.XMLLocator location,
String key,
Object[] arguments,
String message,
org.eclipse.lsp4j.DiagnosticSeverity diagnosticSeverity,
boolean fatalError,
DOMDocument document,
String documentOrGrammarURI,
boolean errorForDocument) |
Constructor and Description |
---|
AbstractLSPErrorReporter(String source,
DOMDocument xmlDocument,
List<org.eclipse.lsp4j.Diagnostic> diagnostics,
boolean hasRelatedInfo) |
AbstractReferencedGrammarLSPErrorReporter(String source,
DOMDocument xmlDocument,
List<org.eclipse.lsp4j.Diagnostic> diagnostics,
ContentModelManager contentModelManager,
boolean hasRelatedInformation,
Map<String,ReferencedGrammarDiagnosticsInfo> referencedGrammarDiagnosticsInfoCache) |
Modifier and Type | Method and Description |
---|---|
static org.eclipse.lsp4j.Range |
XIncludeErrorCode.toLSPRange(org.apache.xerces.xni.XMLLocator location,
XIncludeErrorCode code,
Object[] arguments,
DOMDocument document)
Create the LSP range from the SAX error.
|
Modifier and Type | Method and Description |
---|---|
boolean |
CMXMLModelContentModelProvider.adaptFor(DOMDocument document,
boolean internal) |
CMDocument |
CMXMLModelContentModelProvider.createInternalCMDocument(DOMDocument xmlDocument,
boolean resolveExternalEntities) |
Collection<ContentModelProvider.Identifier> |
CMXMLModelContentModelProvider.getIdentifiers(DOMDocument xmlDocument,
String namespaceURI) |
Modifier and Type | Method and Description |
---|---|
boolean |
CMXSDContentModelProvider.adaptFor(DOMDocument document,
boolean internal) |
CMDocument |
CMXSDContentModelProvider.createInternalCMDocument(DOMDocument xmlDocument,
boolean resolveExternalEntities) |
Collection<ContentModelProvider.Identifier> |
CMXSDContentModelProvider.getIdentifiers(DOMDocument xmlDocument,
String namespaceURI) |
Modifier and Type | Method and Description |
---|---|
void |
XSDDocumentLinkParticipant.findDocumentLinks(DOMDocument document,
List<org.eclipse.lsp4j.DocumentLink> links) |
protected boolean |
XSDReferenceParticipant.match(DOMDocument document) |
protected boolean |
XSDDefinitionParticipant.match(DOMDocument document) |
static org.eclipse.lsp4j.Range |
XSDErrorCode.toLSPRange(org.apache.xerces.xni.XMLLocator location,
XSDErrorCode code,
Object[] arguments,
DOMDocument document)
Create the LSP range from the SAX error.
|
Modifier and Type | Method and Description |
---|---|
void |
XSDDiagnosticsParticipant.doDiagnostics(DOMDocument xmlDocument,
List<org.eclipse.lsp4j.Diagnostic> diagnostics,
XMLValidationSettings validationSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker monitor) |
static void |
XSDValidator.doDiagnostics(DOMDocument document,
org.apache.xerces.xni.parser.XMLEntityResolver entityResolver,
List<org.eclipse.lsp4j.Diagnostic> diagnostics,
XMLValidationSettings validationSettings,
ContentModelManager contentModelManager,
org.eclipse.lsp4j.jsonrpc.CancelChecker monitor) |
protected org.eclipse.lsp4j.Range |
LSPErrorReporterForXSD.toLSPRange(org.apache.xerces.xni.XMLLocator location,
String key,
Object[] arguments,
String message,
org.eclipse.lsp4j.DiagnosticSeverity diagnosticSeverity,
boolean fatalError,
DOMDocument document,
String documentOrGrammarURI,
boolean errorForDocument) |
Constructor and Description |
---|
LSPErrorReporterForXSD(DOMDocument xmlDocument,
List<org.eclipse.lsp4j.Diagnostic> diagnostics,
ContentModelManager contentModelManager,
boolean hasRelatedInformation,
Map<String,ReferencedGrammarDiagnosticsInfo> referencedGrammarDiagnosticsInfoCache) |
Modifier and Type | Method and Description |
---|---|
static DOMAttr |
XSDUtils.findSchemaLocationAttrByURI(DOMDocument document,
String grammarURI)
Returns the xsd:import/@schemaLocation or xsd:include/@schemaLocation
declared in the given
document by the given
grammarURI and null otherwise. |
Modifier and Type | Method and Description |
---|---|
static void |
XSISchemaModel.computeCompletionResponses(ICompletionRequest request,
ICompletionResponse response,
DOMDocument document,
boolean generateValue,
SharedSettings sharedSettings) |
static void |
XSISchemaModel.computeValueCompletionResponses(ICompletionRequest request,
ICompletionResponse response,
DOMDocument document) |
Modifier and Type | Method and Description |
---|---|
DOMDocument |
ResolveCompletionItemRequest.getDocument() |
DOMDocument |
IXMLDocumentProvider.getDocument(String uri)
Returns the
DOMDocument instance from the given uri and
null otherwise. |
Modifier and Type | Method and Description |
---|---|
default Collection<DOMDocument> |
IXMLDocumentProvider.getAllDocuments()
All known documents XML server is working with at the moment
|
Modifier and Type | Method and Description |
---|---|
AutoCloseTagResponse |
XMLLanguageService.doAutoClose(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
XMLCompletionSettings completionSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
List<org.eclipse.lsp4j.CodeAction> |
XMLLanguageService.doCodeActions(org.eclipse.lsp4j.CodeActionContext context,
org.eclipse.lsp4j.Range range,
DOMDocument document,
SharedSettings sharedSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
List<org.eclipse.lsp4j.CodeAction> |
XMLCodeActions.doCodeActions(org.eclipse.lsp4j.CodeActionContext context,
org.eclipse.lsp4j.Range range,
DOMDocument document,
SharedSettings sharedSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
org.eclipse.lsp4j.CompletionList |
XMLLanguageService.doComplete(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
SharedSettings settings) |
org.eclipse.lsp4j.CompletionList |
XMLLanguageService.doComplete(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
SharedSettings settings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
org.eclipse.lsp4j.CompletionList |
XMLCompletions.doComplete(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
SharedSettings settings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
List<org.eclipse.lsp4j.Diagnostic> |
XMLLanguageService.doDiagnostics(DOMDocument xmlDocument,
XMLValidationSettings validationSettings,
Map<String,Object> validationArgs,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
org.eclipse.lsp4j.Hover |
XMLLanguageService.doHover(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
SharedSettings sharedSettings) |
org.eclipse.lsp4j.Hover |
XMLLanguageService.doHover(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
SharedSettings sharedSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
org.eclipse.lsp4j.WorkspaceEdit |
XMLRename.doRename(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
String newText) |
org.eclipse.lsp4j.WorkspaceEdit |
XMLLanguageService.doRename(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
String newText) |
AutoCloseTagResponse |
XMLLanguageService.doTagComplete(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
XMLCompletionSettings completionSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
AutoCloseTagResponse |
XMLCompletions.doTagComplete(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
XMLCompletionSettings completionSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
AutoCloseTagResponse |
XMLLanguageService.doTagComplete(DOMDocument xmlDocument,
XMLCompletionSettings completionSettings,
org.eclipse.lsp4j.Position position) |
List<? extends org.eclipse.lsp4j.LocationLink> |
XMLLanguageService.findDefinition(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
List<org.eclipse.lsp4j.DocumentHighlight> |
XMLLanguageService.findDocumentHighlights(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position) |
List<org.eclipse.lsp4j.DocumentHighlight> |
XMLLanguageService.findDocumentHighlights(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
List<org.eclipse.lsp4j.DocumentLink> |
XMLLanguageService.findDocumentLinks(DOMDocument document) |
List<org.eclipse.lsp4j.DocumentSymbol> |
XMLLanguageService.findDocumentSymbols(DOMDocument xmlDocument,
XMLSymbolSettings symbolSettings) |
DocumentSymbolsResult |
XMLLanguageService.findDocumentSymbols(DOMDocument xmlDocument,
XMLSymbolSettings symbolSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
org.eclipse.lsp4j.LinkedEditingRanges |
XMLLanguageService.findLinkedEditingRanges(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
Returns the linked editing ranges for the given
xmlDocument at
the given position and null otherwise. |
List<? extends org.eclipse.lsp4j.Location> |
XMLLanguageService.findReferences(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
org.eclipse.lsp4j.ReferenceContext context,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
List<org.eclipse.lsp4j.SymbolInformation> |
XMLLanguageService.findSymbolInformations(DOMDocument xmlDocument,
XMLSymbolSettings symbolSettings) |
SymbolInformationResult |
XMLLanguageService.findSymbolInformations(DOMDocument xmlDocument,
XMLSymbolSettings symbolSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
List<? extends org.eclipse.lsp4j.LocationLink> |
XMLLanguageService.findTypeDefinition(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
List<? extends org.eclipse.lsp4j.TextEdit> |
XMLLanguageService.format(DOMDocument xmlDocument,
org.eclipse.lsp4j.Range range,
SharedSettings sharedSettings) |
List<? extends org.eclipse.lsp4j.CodeLens> |
XMLLanguageService.getCodeLens(DOMDocument xmlDocument,
XMLCodeLensSettings settings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
List<org.eclipse.lsp4j.FoldingRange> |
XMLLanguageService.getFoldingRanges(DOMDocument xmlDocument,
XMLFoldingSettings context) |
List<org.eclipse.lsp4j.FoldingRange> |
XMLLanguageService.getFoldingRanges(DOMDocument xmlDocument,
XMLFoldingSettings context,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
org.eclipse.lsp4j.Position |
XMLLanguageService.getMatchingTagPosition(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
List<org.eclipse.lsp4j.SelectionRange> |
XMLLanguageService.getSelectionRanges(DOMDocument xmlDocument,
List<org.eclipse.lsp4j.Position> positions,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
CompletableFuture<Path> |
XMLLanguageService.publishDiagnostics(DOMDocument xmlDocument,
Consumer<org.eclipse.lsp4j.PublishDiagnosticsParams> publishDiagnostics,
Consumer<TextDocument> triggerValidation,
XMLValidationRootSettings validationSettings,
Map<String,Object> validationArgs,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
org.eclipse.lsp4j.CodeAction |
XMLLanguageService.resolveCodeAction(org.eclipse.lsp4j.CodeAction unresolved,
DOMDocument document,
SharedSettings sharedSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
org.eclipse.lsp4j.CodeAction |
XMLCodeActions.resolveCodeAction(org.eclipse.lsp4j.CodeAction unresolved,
DOMDocument document,
SharedSettings sharedSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
org.eclipse.lsp4j.CompletionItem |
XMLLanguageService.resolveCompletionItem(org.eclipse.lsp4j.CompletionItem unresolved,
DOMDocument xmlDocument,
SharedSettings sharedSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
org.eclipse.lsp4j.CompletionItem |
XMLCompletions.resolveCompletionItem(org.eclipse.lsp4j.CompletionItem unresolved,
DOMDocument xmlDocument,
SharedSettings sharedSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
Returns the completion item with the empty fields resolved.
|
default void |
IXMLValidationService.validate(DOMDocument document)
Performs XML document validation
|
void |
IXMLValidationService.validate(DOMDocument document,
Map<String,Object> validationArgs)
Performs XML document validation
|
Constructor and Description |
---|
CodeActionRequest(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
IComponentProvider componentProvider,
SharedSettings sharedSettings) |
ResolveCodeActionRequest(org.eclipse.lsp4j.CodeAction unresolved,
DOMDocument document,
IComponentProvider componentProvider,
SharedSettings sharedSettings) |
ResolveCompletionItemRequest(org.eclipse.lsp4j.CompletionItem unresolved,
DOMDocument document,
IComponentProvider componentProvider,
SharedSettings sharedSettings) |
Modifier and Type | Method and Description |
---|---|
DOMDocument |
IPositionRequest.getXMLDocument()
Returns the XML document.
|
Modifier and Type | Method and Description |
---|---|
ISymbolsProviderParticipant.SymbolStrategy |
ISymbolsProviderParticipant.applyFor(DOMDocument document)
Returns the symbol strategy to apply for the given DOM document :
ISymbolsProviderParticipant.SymbolStrategy.UNADAPTABLE : means that the participant is not
applicable for the document
ISymbolsProviderParticipant.SymbolStrategy.INSERT : means that the participant will insert
symbols on the top of the standards symbols. |
void |
IDocumentLifecycleParticipant.didChange(DOMDocument document)
Handler called when an XML document is changed.
|
void |
IDocumentLifecycleParticipant.didClose(DOMDocument document)
Handler called when an XML document is closed.
|
void |
IDocumentLifecycleParticipant.didOpen(DOMDocument document)
Handler called when an XML document is opened.
|
void |
IDocumentLifecycleParticipant.didSave(DOMDocument document)
Handler called when an XML document is saved.
|
void |
IDocumentLinkParticipant.findDocumentLinks(DOMDocument document,
List<org.eclipse.lsp4j.DocumentLink> links)
Find document links of the given XML document.
|
void |
ISymbolsProviderParticipant.findDocumentSymbols(DOMDocument document,
DocumentSymbolsResult symbols,
XMLSymbolFilter filter,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
Fill the given document symbol result with custom document symbol.
|
void |
IReferenceParticipant.findReference(DOMDocument document,
org.eclipse.lsp4j.Position position,
org.eclipse.lsp4j.ReferenceContext context,
List<org.eclipse.lsp4j.Location> locations,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
void |
AbstractReferenceParticipant.findReference(DOMDocument document,
org.eclipse.lsp4j.Position position,
org.eclipse.lsp4j.ReferenceContext context,
List<org.eclipse.lsp4j.Location> locations,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
void |
ISymbolsProviderParticipant.findSymbolInformations(DOMDocument document,
SymbolInformationResult symbols,
XMLSymbolFilter filter,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
Fill the given symbol information result with custom symbol informations.
|
protected abstract boolean |
AbstractTypeDefinitionParticipant.match(DOMDocument document)
Returns true if the type definition support is applicable for the given
document and false otherwise.
|
protected abstract boolean |
AbstractReferenceParticipant.match(DOMDocument document)
Returns true if the reference support is applicable for the given document
and false otherwise.
|
protected abstract boolean |
AbstractDefinitionParticipant.match(DOMDocument document)
Returns true if the definition support is applicable for the given document
and false otherwise.
|
Modifier and Type | Method and Description |
---|---|
DOMDocument |
IBaseCodeActionRequest.getDocument()
Returns the DOM document.
|
Modifier and Type | Method and Description |
---|---|
DOMDocument |
ICodeLensRequest.getDocument()
Returns the DOM document.
|
Modifier and Type | Method and Description |
---|---|
protected abstract Object |
AbstractDOMDocumentCommandHandler.executeCommand(DOMDocument document,
org.eclipse.lsp4j.ExecuteCommandParams params,
SharedSettings sharedSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
Executes a command
|
Modifier and Type | Method and Description |
---|---|
DOMDocument |
ICompletionItemResolverRequest.getDocument()
Returns the DOM document.
|
Modifier and Type | Method and Description |
---|---|
void |
IDiagnosticsParticipant.doDiagnostics(DOMDocument xmlDocument,
List<org.eclipse.lsp4j.Diagnostic> diagnostics,
XMLValidationSettings validationSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
Validate the given XML document.
|
Modifier and Type | Method and Description |
---|---|
void |
ISaveContext.collectDocumentToValidate(Predicate<DOMDocument> validateDocumentPredicate)
This method is called to collect document to validate after the save.
|
Modifier and Type | Method and Description |
---|---|
List<? extends org.eclipse.lsp4j.TextEdit> |
XMLFormatterDocument.format(DOMDocument document,
int start,
int end) |
Constructor and Description |
---|
XMLFormatterDocument(DOMDocument xmlDocument,
org.eclipse.lsp4j.Range range,
SharedSettings sharedSettings,
Collection<IFormatterParticipant> formatterParticipants)
XML formatter document.
|
Modifier and Type | Method and Description |
---|---|
protected abstract boolean |
NewFileSnippetContext.isMatchType(DOMDocument document) |
Modifier and Type | Method and Description |
---|---|
static void |
DocumentTelemetryInfo.collectDocumentTelemetryInfo(DOMDocument doc,
ContentModelManager manager,
TelemetryCache cache) |
void |
TelemetryManager.onDidOpen(DOMDocument document,
ContentModelManager manager) |
Modifier and Type | Method and Description |
---|---|
static DOMDocument |
DOMUtils.loadDocument(String documentURI,
URIResolverExtensionManager resolverExtensionManager)
Returns the DOM document from the given XML Schema uri.
|
Modifier and Type | Method and Description |
---|---|
static org.eclipse.lsp4j.Range |
XMLPositionUtility.createRange(int startOffset,
int endOffset,
DOMDocument document) |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.getElementDeclMissingContentOrCategory(int offset,
DOMDocument document) |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.getLastDTDDeclParameter(int offset,
DOMDocument document)
Will give the range for the last DTD Decl parameter at 'offset'.
|
static org.eclipse.lsp4j.Range |
XMLPositionUtility.getLastValidDTDDeclParameter(int offset,
DOMDocument document) |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.getLastValidDTDDeclParameter(int offset,
DOMDocument document,
boolean selectWholeParameter)
Will give the range for the last VALID DTD Decl parameter at 'offset'.
|
static org.eclipse.lsp4j.Range |
XMLPositionUtility.getLastValidDTDDeclParameterOrUnrecognized(int offset,
DOMDocument document)
Will give the range for the last VALID DTD Decl parameter at 'offset'.
|
static org.eclipse.lsp4j.Position |
XMLPositionUtility.getMatchingTagPosition(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position) |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.getTagNameRange(TokenType tokenType,
int startOffset,
DOMDocument xmlDocument) |
static boolean |
DOMUtils.isCatalog(DOMDocument document)
Returns true if the XML document is a XML Catalog and false otherwise.
|
static boolean |
XMLPositionUtility.isInAttributeValue(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position)
Returns true if the given position is within an attribute value, and false
otherwise
|
static boolean |
DOMUtils.isRelaxNG(DOMDocument document)
Returns true if the XML document is a RelaxNG grammar and false otherwise.
|
static boolean |
DOMUtils.isRelaxNGXMLSyntax(DOMDocument document)
Returns true if the XML document is a RelaxNG grammar XML syntax and false
otherwise.
|
static boolean |
DOMUtils.isXSD(DOMDocument document)
Returns true if the XML document is a XML Schema and false otherwise.
|
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectAllAttributes(int offset,
DOMDocument document) |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectAttributeFromGivenNameAt(String attrName,
int offset,
DOMDocument document) |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectAttributeNameAt(int offset,
DOMDocument document) |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectAttributeNameFromGivenNameAt(String attrName,
int offset,
DOMDocument document) |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectAttributePrefixFromGivenNameAt(String attrName,
int offset,
DOMDocument document)
Returns the range of the prefix of an attribute name
For example, if attrName = "xsi:example", the range for "xsi" will be
returned
|
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectAttributeValueAt(String attrName,
int offset,
boolean withouQuote,
DOMDocument document) |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectAttributeValueAt(String attrName,
int offset,
DOMDocument document) |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectAttributeValueByGivenValueAt(String attrValue,
int offset,
DOMDocument document) |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectAttributeValueFromGivenValue(String attrValue,
int offset,
DOMDocument document) |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectChildEndTag(String childTag,
int offset,
DOMDocument document) |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectChildNodeAttributeValueFromGivenNameAt(String childNodeName,
String attrName,
int offset,
DOMDocument document)
Returns the range of the attribute value of a specific child node, if it
exists
|
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectContent(int offset,
DOMDocument document) |
static int |
XMLPositionUtility.selectCurrentTagOffset(int offset,
DOMDocument document) |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectDTDDeclTagNameAt(int offset,
DOMDocument document) |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectDTDElementDeclAt(int offset,
DOMDocument document) |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectEndTagName(int offset,
DOMDocument document) |
static XMLPositionUtility.EntityReferenceRange |
XMLPositionUtility.selectEntityReference(int offset,
DOMDocument document)
Returns the range of the entity reference in a text node (ex : &) and
null otherwise.
|
static XMLPositionUtility.EntityReferenceRange |
XMLPositionUtility.selectEntityReference(int offset,
DOMDocument document,
boolean endsWithSemicolon)
Returns the range of the entity reference in a text node (ex : &) and
null otherwise.
|
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectFirstChild(int offset,
DOMDocument document)
Returns the range covering the first child of the node located at offset.
|
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectFirstNonWhitespaceText(int offset,
DOMDocument document) |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectRootAttributeValue(String attrName,
DOMDocument document)
Finds the root element of the given document and returns the attribute value
Range for the attribute attrName . |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectRootStartTag(DOMDocument document)
Returns the range of the root start tag (excludes the '<') of the given
document and null otherwise. |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectStartTagName(int offset,
DOMDocument document) |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectTrimmedText(int offset,
DOMDocument document)
Returns the range covering the trimmed text belonging to the node located at
offset.
|
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectWholeTag(int offset,
DOMDocument document) |
Copyright © 2022. All rights reserved.