Modifier and Type | Method and Description |
---|---|
DOMDocument |
XMLLanguageServer.getDocument(String uri) |
Modifier and Type | Method and Description |
---|---|
ModelTextDocument<DOMDocument> |
XMLTextDocumentService.getDocument(String uri)
Returns the text document from the given uri.
|
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 |
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 |
---|---|
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.
|
CMDocument |
ContentModelManager.findCMDocument(DOMDocument xmlDocument,
String namespaceURI) |
CMDocument |
ContentModelManager.findInternalCMDocument(DOMDocument xmlDocument,
String namespaceURI) |
String |
ContentModelProvider.getSystemId(DOMDocument xmlDocument,
String namespaceURI) |
Modifier and Type | Method and Description |
---|---|
void |
ContentModelCodeActionParticipant.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
XMLFormattingOptions formattingSettings,
IComponentProvider componentProvider) |
void |
ContentModelDocumentLinkParticipant.findDocumentLinks(DOMDocument document,
List<org.eclipse.lsp4j.DocumentLink> links) |
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 void |
MarkupEntityMismatchCodeAction.createEndTagInsertCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
XMLFormattingOptions formattingSettings,
IComponentProvider componentProvider) |
void |
src_import_1_2CodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
XMLFormattingOptions formattingSettings,
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,
XMLFormattingOptions formattingSettings,
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,
XMLFormattingOptions formattingSettings,
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,
XMLFormattingOptions formattingSettings,
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,
XMLFormattingOptions formattingSettings,
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,
XMLFormattingOptions formattingSettings,
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,
XMLFormattingOptions formattingSettings,
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,
XMLFormattingOptions formattingSettings,
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,
XMLFormattingOptions formattingSettings,
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,
XMLFormattingOptions formattingSettings,
IComponentProvider componentProvider) |
void |
OpenQuoteExpectedCodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
XMLFormattingOptions formattingSettings,
IComponentProvider componentProvider) |
void |
MarkupEntityMismatchCodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
XMLFormattingOptions formattingSettings,
IComponentProvider componentProvider) |
void |
EqRequiredInAttributeCodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
XMLFormattingOptions formattingSettings,
IComponentProvider componentProvider) |
void |
ElementUnterminatedCodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
XMLFormattingOptions formattingSettings,
IComponentProvider componentProvider) |
void |
ElementDeclUnterminatedCodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
XMLFormattingOptions formattingSettings,
IComponentProvider componentProvider) |
void |
ETagRequiredCodeAction.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
XMLFormattingOptions formattingSettings,
IComponentProvider componentProvider) |
Modifier and Type | Method and Description |
---|---|
void |
ContentModelDiagnosticsParticipant.doDiagnostics(DOMDocument xmlDocument,
List<org.eclipse.lsp4j.Diagnostic> diagnostics,
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,
ContentModelSettings contentModelSettings,
org.apache.xerces.xni.grammars.XMLGrammarPool grammarPool,
org.eclipse.lsp4j.jsonrpc.CancelChecker monitor) |
protected org.eclipse.lsp4j.Range |
LSPErrorReporterForXML.toLSPRange(org.apache.xerces.xni.XMLLocator location,
String key,
Object[] arguments,
DOMDocument document)
Create the LSP range from the SAX error.
|
Constructor and Description |
---|
LSPErrorReporterForXML(DOMDocument xmlDocument,
List<org.eclipse.lsp4j.Diagnostic> diagnostics) |
Modifier and Type | Method and Description |
---|---|
boolean |
CMDTDContentModelProvider.adaptFor(DOMDocument document,
boolean internal) |
CMDocument |
CMDTDContentModelProvider.createInternalCMDocument(DOMDocument xmlDocument) |
String |
CMDTDContentModelProvider.getSystemId(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,
org.eclipse.lsp4j.jsonrpc.CancelChecker monitor) |
static void |
DTDValidator.doDiagnostics(DOMDocument document,
org.apache.xerces.xni.parser.XMLEntityResolver entityResolver,
List<org.eclipse.lsp4j.Diagnostic> diagnostics,
org.eclipse.lsp4j.jsonrpc.CancelChecker monitor) |
Modifier and Type | Method and Description |
---|---|
static void |
PrologModel.computeAttributeNameCompletionResponses(ICompletionRequest request,
ICompletionResponse response,
org.eclipse.lsp4j.Range editRange,
DOMDocument document,
XMLFormattingOptions formattingsSettings) |
static void |
PrologModel.computeValueCompletionResponses(ICompletionRequest request,
ICompletionResponse response,
org.eclipse.lsp4j.Range editRange,
DOMDocument document,
XMLFormattingOptions formattingSettings) |
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 |
---|---|
boolean |
CMXSDContentModelProvider.adaptFor(DOMDocument document,
boolean internal) |
CMDocument |
CMXSDContentModelProvider.createInternalCMDocument(DOMDocument xmlDocument) |
String |
CMXSDContentModelProvider.getSystemId(DOMDocument xmlDocument,
String namespaceURI) |
Modifier and Type | Method and Description |
---|---|
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,
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,
org.eclipse.lsp4j.jsonrpc.CancelChecker monitor) |
protected org.eclipse.lsp4j.Range |
LSPErrorReporterForXSD.toLSPRange(org.apache.xerces.xni.XMLLocator location,
String key,
Object[] arguments,
DOMDocument document)
Create the LSP range from the SAX error.
|
Constructor and Description |
---|
LSPErrorReporterForXSD(DOMDocument xmlDocument,
List<org.eclipse.lsp4j.Diagnostic> diagnostics) |
Modifier and Type | Method and Description |
---|---|
static void |
XSISchemaModel.computeCompletionResponses(ICompletionRequest request,
ICompletionResponse response,
DOMDocument document,
boolean generateValue,
XMLFormattingOptions formattingSettings) |
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 |
---|---|
AutoCloseTagResponse |
XMLLanguageService.doAutoClose(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
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,
XMLFormattingOptions formattingSettings) |
List<org.eclipse.lsp4j.CodeAction> |
XMLCodeActions.doCodeActions(org.eclipse.lsp4j.CodeActionContext context,
org.eclipse.lsp4j.Range range,
DOMDocument document,
XMLFormattingOptions formattingSettings) |
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,
org.eclipse.lsp4j.jsonrpc.CancelChecker monitor,
XMLValidationSettings validationSettings) |
org.eclipse.lsp4j.Hover |
XMLLanguageService.doHover(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
XMLHoverSettings settings) |
org.eclipse.lsp4j.Hover |
XMLLanguageService.doHover(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
XMLHoverSettings settings,
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) |
AutoCloseTagResponse |
XMLLanguageService.doTagComplete(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
AutoCloseTagResponse |
XMLCompletions.doTagComplete(DOMDocument xmlDocument,
org.eclipse.lsp4j.Position position,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
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) |
List<org.eclipse.lsp4j.DocumentSymbol> |
XMLLanguageService.findDocumentSymbols(DOMDocument xmlDocument,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
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) |
List<org.eclipse.lsp4j.SymbolInformation> |
XMLLanguageService.findSymbolInformations(DOMDocument xmlDocument,
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) |
CompletableFuture<Path> |
XMLLanguageService.publishDiagnostics(DOMDocument xmlDocument,
Consumer<org.eclipse.lsp4j.PublishDiagnosticsParams> publishDiagnostics,
Consumer<TextDocument> triggerValidation,
XMLValidationSettings validationSettings,
org.eclipse.lsp4j.jsonrpc.CancelChecker monitor) |
Modifier and Type | Method and Description |
---|---|
DOMDocument |
IPositionRequest.getXMLDocument()
Returns the XML document.
|
Modifier and Type | Method and Description |
---|---|
void |
ICodeActionParticipant.doCodeAction(org.eclipse.lsp4j.Diagnostic diagnostic,
org.eclipse.lsp4j.Range range,
DOMDocument document,
List<org.eclipse.lsp4j.CodeAction> codeActions,
XMLFormattingOptions formattingSettings,
IComponentProvider componentProvider) |
void |
IDocumentLinkParticipant.findDocumentLinks(DOMDocument document,
List<org.eclipse.lsp4j.DocumentLink> links)
Find document links of the given XML document.
|
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) |
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 |
---|---|
void |
IDiagnosticsParticipant.doDiagnostics(DOMDocument xmlDocument,
List<org.eclipse.lsp4j.Diagnostic> diagnostics,
org.eclipse.lsp4j.jsonrpc.CancelChecker monitor)
Validate the given XML document.
|
protected abstract org.eclipse.lsp4j.Range |
AbstractLSPErrorReporter.toLSPRange(org.apache.xerces.xni.XMLLocator location,
String key,
Object[] arguments,
DOMDocument document) |
Constructor and Description |
---|
AbstractLSPErrorReporter(String source,
DOMDocument xmlDocument,
List<org.eclipse.lsp4j.Diagnostic> diagnostics) |
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 |
---|---|
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 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.selectPreviousNodesEndTag(int offset,
DOMDocument document)
Finds the offset of the first tag it comes across behind the given offset.
|
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 © 2020. All rights reserved.