Modifier and Type | Method and Description |
---|---|
CMElementDeclaration |
CMRelaxNGDocument.findCMElement(DOMElement element,
String namespace) |
Collection<CMElementDeclaration> |
CMRelaxNGElementDeclaration.getPossibleElements(DOMElement parentElement,
int offset) |
Modifier and Type | Method and Description |
---|---|
DOMElement |
DOMDocument.createElement(int start,
int end) |
DOMElement |
DOMDocument.createElement(String tagName) |
DOMElement |
DOMDocument.createElementNS(String namespaceURI,
String qualifiedName) |
DOMElement |
DOMDocument.getDocumentElement() |
DOMElement |
DOMDocument.getElementById(String elementId) |
DOMElement |
DOMNode.getOrphanEndElement(int offset,
String tagName)
Returns the orphan end element after the given offset which matches the given
tagName and null otherwise.
|
DOMElement |
DOMNode.getOrphanEndElement(int offset,
String tagName,
boolean anyOrphan)
Returns the orphan end element after the given offset which matches the given
tagName and the first orphan end element otherwise and null otherwise.
|
DOMElement |
DOMElement.getOrphanEndElement(int offset,
String tagName,
boolean anyOrphan) |
DOMElement |
DOMAttr.getOwnerElement() |
DOMElement |
DOMNode.getParentElement() |
Modifier and Type | Method and Description |
---|---|
protected DOMElement |
CatalogEntry.getEntryElement()
Returns the element that corresponds with this catalog entry
|
Modifier and Type | Method and Description |
---|---|
static DOMAttr |
CatalogUtils.getCatalogEntryCatalog(DOMElement element)
Returns the catalog attribute node of the given catalog entry or null if
there is no catalog attribute
|
static DOMAttr |
CatalogUtils.getCatalogEntryURI(DOMElement element)
Returns the uri attribute node of the given catalog entry or null if there is
no uri attribute
|
Constructor and Description |
---|
CatalogCatalogEntry(String baseURI,
DOMElement entryElement) |
CatalogEntry(String baseURI,
DOMElement entryElement) |
URICatalogEntry(String baseURI,
DOMElement entryElement) |
Modifier and Type | Method and Description |
---|---|
Collection<CMDocument> |
ContentModelManager.findCMDocument(DOMElement element)
Returns the owner document of the declared element which matches the given
XML element and null otherwise.
|
Collection<CMDocument> |
ContentModelManager.findCMDocument(DOMElement element,
String namespaceURI)
Returns the owner document of the declared element which matches the given
XML element and null otherwise.
|
default CMElementDeclaration |
CMDocument.findCMElement(DOMElement element)
Returns the declared element which matches the given XML element and null
otherwise.
|
CMElementDeclaration |
CMDocument.findCMElement(DOMElement element,
String namespace)
Returns the declared element which matches the given XML element and null
otherwise.
|
Collection<CMElementDeclaration> |
CMElementDeclaration.getPossibleElements(DOMElement parentElement,
int offset)
Returns the possible declared elements at the given offset of the given
parent element.
|
Modifier and Type | Method and Description |
---|---|
FormatElementCategory |
ContentModelFormatterParticipant.getFormatElementCategory(DOMElement element,
XMLFormattingConstraints parentConstraints,
Map<String,Collection<CMDocument>> formattingContext,
SharedSettings sharedSettings) |
boolean |
ContentModelFormatterParticipant.shouldCollapseEmptyElement(DOMElement element,
SharedSettings sharedSettings) |
Modifier and Type | Method and Description |
---|---|
protected void |
AttributeValueCompletionResolver.resolveCompletionItem(DOMElement element,
org.eclipse.lsp4j.CompletionItem toResolve,
ICompletionItemResolverRequest request,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
protected void |
AttributeNameCompletionResolver.resolveCompletionItem(DOMElement element,
org.eclipse.lsp4j.CompletionItem toResolve,
ICompletionItemResolverRequest request,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) |
Modifier and Type | Method and Description |
---|---|
CMElementDeclaration |
CMDTDDocument.findCMElement(DOMElement element,
String namespace) |
Collection<CMElementDeclaration> |
CMDTDElementDeclaration.getPossibleElements(DOMElement parentElement,
int offset) |
Modifier and Type | Method and Description |
---|---|
static DOMAttr |
RelaxNGUtils.getHref(DOMElement element) |
Modifier and Type | Method and Description |
---|---|
CMElementDeclaration |
CMXSDDocument.findCMElement(DOMElement element,
String namespace) |
Collection<CMElementDeclaration> |
CMXSDElementDeclaration.getPossibleElements(DOMElement parentElement,
int offset) |
Modifier and Type | Method and Description |
---|---|
static DOMAttr |
XSDUtils.getSchemaLocation(DOMElement element) |
static boolean |
XSDUtils.isXSAttribute(DOMElement element) |
Modifier and Type | Method and Description |
---|---|
DOMElement |
IPositionRequest.getParentElement()
Returns the parent element of the node where completion was triggered and
null otherwise.
|
Modifier and Type | Method and Description |
---|---|
protected static boolean |
AbstractElementCompletionItem.hasContentAfterTagName(DOMElement element) |
static boolean |
AbstractElementCompletionItem.isElementClosed(DOMElement element) |
protected abstract void |
AbstractAttributeCompletionResolver.resolveCompletionItem(DOMElement element,
org.eclipse.lsp4j.CompletionItem toResolve,
ICompletionItemResolverRequest request,
org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker)
Resolve the completion item from the content model to the given completion
request.
|
Constructor and Description |
---|
DOMElementCompletionItem(DOMElement element,
ICompletionRequest request) |
Modifier and Type | Method and Description |
---|---|
default FormatElementCategory |
IFormatterParticipant.getFormatElementCategory(DOMElement element,
XMLFormattingConstraints parentConstraints,
Map<String,Collection<CMDocument>> formattingContext,
SharedSettings sharedSettings)
Returns the format element category for the given DOM element and null
otherwise.
|
default boolean |
IFormatterParticipant.shouldCollapseEmptyElement(DOMElement element,
SharedSettings sharedSettings)
Returns true if the given element can be collapsed according to grammar
constraints.
|
Modifier and Type | Method and Description |
---|---|
void |
DOMElementFormatter.formatElement(DOMElement element,
XMLFormattingConstraints parentConstraints,
int start,
int end,
List<org.eclipse.lsp4j.TextEdit> edits) |
FormatElementCategory |
XMLFormatterDocument.getFormatElementCategory(DOMElement element,
XMLFormattingConstraints parentConstraints)
Returns the format element category of the given DOM element.
|
boolean |
XMLFormatterDocument.shouldCollapseEmptyElement(DOMElement element,
SharedSettings sharedSettings) |
Modifier and Type | Method and Description |
---|---|
FormatElementCategory |
XMLFormattingOptions.getFormatElementCategory(DOMElement element) |
Modifier and Type | Method and Description |
---|---|
static DOMElement |
DOMUtils.findFirstChildElementByTagName(DOMElement element,
String tagName) |
Modifier and Type | Method and Description |
---|---|
static boolean |
DOMUtils.containsTextOnly(DOMElement element)
Returns true if element contains only DOMText and false otherwise.
|
static DOMElement |
DOMUtils.findFirstChildElementByTagName(DOMElement element,
String tagName) |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectEndTagLocalName(DOMElement element)
Returns the range of the end tag of the given LOCAL
element name
and null otherwise. |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectEndTagName(DOMElement element)
Returns the range of the end tag of the given
element name and
null otherwise. |
static org.eclipse.lsp4j.Range |
XMLPositionUtility.selectEndTagName(DOMElement element,
boolean localNameOnly)
Returns the range of the end tag of the given
element and null
otherwise. |
Copyright © 2022. All rights reserved.