Modifier and Type | Method and Description |
---|---|
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) |
Modifier and Type | Method and Description |
---|---|
<R> CompletableFuture<R> |
XMLTextDocumentService.computeDOMAsync(org.eclipse.lsp4j.TextDocumentIdentifier documentIdentifier,
BiFunction<org.eclipse.lsp4j.jsonrpc.CancelChecker,DOMDocument,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 |
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.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
XMLValidationFileCommand.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) an dnull
otherwise.
|
CMDocument |
ContentModelProvider.createInternalCMDocument(DOMDocument xmlDocument) |
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) |
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 |
ContentModelCodeActionParticipant.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
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) |
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) |
void |
src_import_1_2CodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
void |
s4s_elt_invalid_content_3CodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
void |
cvc_type_3_1_1CodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
void |
cvc_enumeration_validCodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
void |
cvc_complex_type_4CodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
void |
cvc_complex_type_3_2_2CodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
void |
cvc_complex_type_2_4_aCodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
void |
cvc_complex_type_2_3CodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
void |
cvc_complex_type_2_1CodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
void |
cvc_attribute_3CodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
void |
TargetNamespace_2CodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
void |
TargetNamespace_1CodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
void |
RootElementTypeMustMatchDoctypedeclCodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
void |
OpenQuoteExpectedCodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
void |
NoGrammarConstraintsCodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
void |
FixMissingSpaceCodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
void |
EqRequiredInAttributeCodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
void |
EntityNotDeclaredCodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
void |
ElementDeclUnterminatedCodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
void |
CloseTagCodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
void |
AbstractFixMissingGrammarCodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
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)
Create the LSP range from the SAX error.
|
Constructor and Description |
---|
LSPErrorReporterForXML(DOMDocument xmlDocument,
List<org.eclipse.lsp4j.Diagnostic> diagnostics,
ContentModelManager contentModelManager,
boolean hasRelatedInformation,
Map<String,org.eclipse.lemminx.extensions.contentmodel.participants.diagnostics.ReferencedGrammarDiagnosticsInfo> referencedGrammarDiagnosticsInfoCache) |
LSPSAXParser(DOMDocument document,
LSPErrorReporterForXML reporter,
org.apache.xerces.xni.parser.XMLParserConfiguration config,
org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool) |
Modifier and Type | Method and Description |
---|---|
boolean |
CMDTDContentModelProvider.adaptFor(DOMDocument document,
boolean internal) |
CMDocument |
CMDTDContentModelProvider.createInternalCMDocument(DOMDocument xmlDocument) |
Collection<ContentModelProvider.Identifier> |
CMDTDContentModelProvider.getIdentifiers(DOMDocument xmlDocument,
String namespaceURI) |
Modifier and Type | Method and Description |
---|---|
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,
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 |
---|---|
protected DOMDocument |
AbstractLSPErrorReporter.getDOMDocument()
Returns the DOM document which is validating.
|
Modifier and Type | Method and Description |
---|---|
protected org.eclipse.lsp4j.Range |
AbstractLSPErrorReporter.createDefaultRange(org.apache.xerces.xni.XMLLocator location,
DOMDocument document) |
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. |
Constructor and Description |
---|
AbstractLSPErrorReporter(String source,
DOMDocument xmlDocument,
List<org.eclipse.lsp4j.Diagnostic> diagnostics,
boolean hasRelatedInfo) |
Modifier and Type | Method and Description |
---|---|
boolean |
CMXMLModelContentModelProvider.adaptFor(DOMDocument document,
boolean internal) |
CMDocument |
CMXMLModelContentModelProvider.createInternalCMDocument(DOMDocument xmlDocument) |
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) |
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 cancelChecker) |
static void |
XSDValidator.doDiagnostics(DOMDocument document,
org.apache.xerces.xni.parser.XMLEntityResolver entityResolver,
List<org.eclipse.lsp4j.Diagnostic> diagnostics,
boolean isRelatedInformation,
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)
Create the LSP range from the SAX error.
|
Constructor and Description |
---|
LSPErrorReporterForXSD(DOMDocument xmlDocument,
List<org.eclipse.lsp4j.Diagnostic> diagnostics,
boolean hasRelatedInfo) |
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 |
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) |
List<org.eclipse.lsp4j.CodeAction> |
XMLCodeActions.doCodeActions(org.eclipse.lsp4j.CodeActionContext context,
org.eclipse.lsp4j.Range range,
DOMDocument document,
SharedSettings sharedSettings) |
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,
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.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,
XMLValidationSettings validationSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
void |
IXMLValidationService.validate(DOMDocument document)
Performs XML document validation
|
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 |
ICodeActionParticipant.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
SharedSettings sharedSettings,
IComponentProvider componentProvider) |
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 |
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 |
---|---|
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 |
---|---|
protected abstract boolean |
NewFileSnippetContext.isMatchType(DOMDocument document) |
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 |
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,
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.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 © 2021. All rights reserved.