Uses of Class
org.eclipse.lemminx.dom.DOMElement
Packages that use DOMElement
Package
Description
-
Uses of DOMElement in com.thaiopensource.relaxng.pattern
Methods in com.thaiopensource.relaxng.pattern that return DOMElementMethods in com.thaiopensource.relaxng.pattern with parameters of type DOMElementModifier and TypeMethodDescriptionCMRelaxNGDocument.findCMElement(DOMElement element, String namespace) CMRelaxNGElementDeclaration.getPossibleAttributes(DOMElement parentElement) Returns the possible attributes for the given parent element, usingPatternMatcherto narrow down the valid attributes based on already-specified attributes.CMRelaxNGElementDeclaration.getPossibleElements(DOMElement parentElement, int offset) -
Uses of DOMElement in org.eclipse.lemminx.dom
Methods in org.eclipse.lemminx.dom that return DOMElementModifier and TypeMethodDescriptionDOMDocument.createElement(int start, int end) DOMDocument.createElement(String tagName) DOMDocument.createElementNS(String namespaceURI, String qualifiedName) DOMDocument.getDocumentElement()DOMDocument.getElementById(String elementId) DOMElement.getOrphanEndElement(int offset, String tagName, boolean anyOrphan) DOMNode.getOrphanEndElement(int offset, String tagName) Returns the orphan end element after the given offset which matches the given tagName and null otherwise.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.DOMAttr.getOwnerElement()DOMNode.getParentElement() -
Uses of DOMElement in org.eclipse.lemminx.extensions.catalog
Methods in org.eclipse.lemminx.extensions.catalog that return DOMElementModifier and TypeMethodDescriptionCatalogEntry.getEntryElement()Returns the DOM element that corresponds with this catalog entry.Methods in org.eclipse.lemminx.extensions.catalog with parameters of type DOMElementModifier and TypeMethodDescriptionstatic DOMAttrCatalogUtils.getCatalogEntryCatalog(DOMElement element) Returns the catalog attribute node of the given catalog entry or null if there is no catalog attributestatic DOMAttrCatalogUtils.getCatalogEntryURI(DOMElement element) Returns the uri attribute node of the given catalog entry or null if there is no uri attributestatic StringCatalogUtils.getCatalogIdentifier(DOMElement el) Returns the catalog identifier value for the given entry element:systemIdfor<system>,publicIdfor<public>, andnamefor<uri>.static DOMAttrCatalogUtils.getCatalogIdentifierAttr(DOMElement el) Returns the identifier attribute node for the given catalog entry element: thesystemIdattribute for<system>,publicIdfor<public>, andnamefor<uri>.Constructors in org.eclipse.lemminx.extensions.catalog with parameters of type DOMElementModifierConstructorDescriptionCatalogCatalogEntry(String baseURI, DOMElement entryElement) protectedCatalogEntry(String baseURI, DOMElement entryElement) URICatalogEntry(String baseURI, DOMElement entryElement) -
Uses of DOMElement in org.eclipse.lemminx.extensions.contentmodel.generator
Methods in org.eclipse.lemminx.extensions.contentmodel.generator with parameters of type DOMElementModifier and TypeMethodDescriptionXMLElementGenerator.generate(Collection<CMAttributeDeclaration> attributes, String tagName, boolean filterRequired, DOMElement element) XMLElementGenerator.generateMissingElements(ContentModelManager contentModelManager, DOMElement element, boolean generateOnlyRequired) -
Uses of DOMElement in org.eclipse.lemminx.extensions.contentmodel.model
Methods in org.eclipse.lemminx.extensions.contentmodel.model with parameters of type DOMElementModifier and TypeMethodDescriptionContentModelManager.findCMDocument(DOMElement element) Returns the owner document of the declared element which matches the given XML element and null otherwise.ContentModelManager.findCMDocument(DOMElement element, String namespaceURI) Returns the owner document of the declared element which matches the given XML element and null otherwise.default CMElementDeclarationCMDocument.findCMElement(DOMElement element) Returns the declared element which matches the given XML element and null otherwise.CMDocument.findCMElement(DOMElement element, String namespace) Returns the declared element which matches the given XML element and null otherwise.default Collection<String> CMDocument.findDerivedTypeNames(DOMElement element) Returns the names of types that can be used as xsi:type values for the given element (i.e. derived types of the element's declared type).default Collection<CMElementDeclaration> CMDocument.findXsiTypeDerivedElements(DOMElement element) Returns the child element declarations of the xsi:type-derived type for the given element.default Collection<String> CMAttributeDeclaration.getEnumerationValues(DOMElement element) Returns enumeration values of the declared attribute filtered by the context of the given DOM element.default Collection<CMAttributeDeclaration> CMElementDeclaration.getPossibleAttributes(DOMElement parentElement) Returns the possible attributes for the given parent element, taking into account already-specified attributes to narrow choices (e.g. in RelaxNG choice groups).CMElementDeclaration.getPossibleElements(DOMElement parentElement, int offset) Returns the possible declared elements at the given offset of the given parent element. -
Uses of DOMElement in org.eclipse.lemminx.extensions.contentmodel.participants
Methods in org.eclipse.lemminx.extensions.contentmodel.participants with parameters of type DOMElementModifier and TypeMethodDescriptionContentModelFormatterParticipant.getFormatElementCategory(DOMElement element, XMLFormattingConstraints parentConstraints, Map<String, Collection<CMDocument>> formattingContext, SharedSettings sharedSettings) booleanContentModelFormatterParticipant.shouldCollapseEmptyElement(DOMElement element, SharedSettings sharedSettings) -
Uses of DOMElement in org.eclipse.lemminx.extensions.contentmodel.participants.codeactions
Methods in org.eclipse.lemminx.extensions.contentmodel.participants.codeactions with parameters of type DOMElementModifier and TypeMethodDescriptionprotected Collection<CMAttributeDeclaration> required_attribute_missingCodeAction.getAttributesToInsert(DOMElement element, ICodeActionRequest request) -
Uses of DOMElement in org.eclipse.lemminx.extensions.contentmodel.participants.completion
Methods in org.eclipse.lemminx.extensions.contentmodel.participants.completion with parameters of type DOMElementModifier and TypeMethodDescriptionprotected voidAttributeNameCompletionResolver.resolveCompletionItem(DOMElement element, org.eclipse.lsp4j.CompletionItem toResolve, ICompletionItemResolverRequest request, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) protected voidAttributeValueCompletionResolver.resolveCompletionItem(DOMElement element, org.eclipse.lsp4j.CompletionItem toResolve, ICompletionItemResolverRequest request, org.eclipse.lsp4j.jsonrpc.CancelChecker cancelChecker) -
Uses of DOMElement in org.eclipse.lemminx.extensions.dtd.contentmodel
Methods in org.eclipse.lemminx.extensions.dtd.contentmodel with parameters of type DOMElementModifier and TypeMethodDescriptionCMDTDDocument.findCMElement(DOMElement element, String namespace) CMDTDElementDeclaration.getPossibleElements(DOMElement parentElement, int offset) -
Uses of DOMElement in org.eclipse.lemminx.extensions.relaxng.utils
Methods in org.eclipse.lemminx.extensions.relaxng.utils with parameters of type DOMElementModifier and TypeMethodDescriptionstatic StringRelaxNGUtils.getEffectiveDatatypeLibrary(DOMElement element) Returns the effectivedatatypeLibraryattribute value for the given element by walking up the DOM ancestors.static DOMAttrRelaxNGUtils.getHref(DOMElement element) -
Uses of DOMElement in org.eclipse.lemminx.extensions.xinclude
Methods in org.eclipse.lemminx.extensions.xinclude with parameters of type DOMElementModifier and TypeMethodDescriptionstatic DOMAttrXIncludeUtils.getHref(DOMElement element) static booleanXIncludeUtils.isInclude(DOMElement element) -
Uses of DOMElement in org.eclipse.lemminx.extensions.xsd.contentmodel
Methods in org.eclipse.lemminx.extensions.xsd.contentmodel with parameters of type DOMElementModifier and TypeMethodDescriptionCMXSDDocument.findCMElement(DOMElement element, String namespace) CMXSDDocument.findDerivedTypeNames(DOMElement element) CMXSDDocument.findXsiTypeDerivedElements(DOMElement element) Returns all child element declarations from the xsi:type-derived complex type.CMXSDElementDeclaration.getPossibleElements(DOMElement parentElement, int offset) -
Uses of DOMElement in org.eclipse.lemminx.extensions.xsd.utils
Methods in org.eclipse.lemminx.extensions.xsd.utils with parameters of type DOMElementModifier and TypeMethodDescriptionstatic DOMAttrXSDUtils.getSchemaLocation(DOMElement element) static booleanXSDUtils.isXSAttribute(DOMElement element) -
Uses of DOMElement in org.eclipse.lemminx.services.extensions
Methods in org.eclipse.lemminx.services.extensions that return DOMElementModifier and TypeMethodDescriptionIPositionRequest.getParentElement()Returns the parent element of the node where completion was triggered and null otherwise. -
Uses of DOMElement in org.eclipse.lemminx.services.extensions.codeaction
Methods in org.eclipse.lemminx.services.extensions.codeaction with parameters of type DOMElementModifier and TypeMethodDescriptionprotected static CMAttributeDeclarationInsertAttributeCodeAction.findCMAttribute(DOMElement element, String attributeName, ICodeActionRequest request) Finds a CM attribute declaration for the given attribute name on the given element, using the content model.protected static Collection<CMAttributeDeclaration> InsertAttributeCodeAction.findRequiredAttributes(DOMElement element, ICodeActionRequest request) Finds the missing required attributes from the content model for the given element.protected Collection<CMAttributeDeclaration> InsertAttributeCodeAction.getAttributesToInsert(DOMElement element, ICodeActionRequest request) Returns the attributes to insert on the element.protected static org.eclipse.lsp4j.PositionInsertAttributeCodeAction.getInsertPosition(DOMElement element, DOMDocument document) Returns the position where new attributes should be inserted: after the last existing attribute's closing quote, or after the tag name if no attributes exist. -
Uses of DOMElement in org.eclipse.lemminx.services.extensions.completion
Methods in org.eclipse.lemminx.services.extensions.completion with parameters of type DOMElementModifier and TypeMethodDescriptionprotected static booleanAbstractElementCompletionItem.hasContentAfterTagName(DOMElement element) static booleanAbstractElementCompletionItem.isElementClosed(DOMElement element) protected abstract voidAbstractAttributeCompletionResolver.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.Constructors in org.eclipse.lemminx.services.extensions.completion with parameters of type DOMElementModifierConstructorDescriptionDOMElementCompletionItem(DOMElement element, ICompletionRequest request) -
Uses of DOMElement in org.eclipse.lemminx.services.extensions.format
Methods in org.eclipse.lemminx.services.extensions.format with parameters of type DOMElementModifier and TypeMethodDescriptiondefault FormatElementCategoryIFormatterParticipant.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 booleanIFormatterParticipant.shouldCollapseEmptyElement(DOMElement element, SharedSettings sharedSettings) Returns true if the given element can be collapsed according to grammar constraints. -
Uses of DOMElement in org.eclipse.lemminx.services.format
Methods in org.eclipse.lemminx.services.format with parameters of type DOMElementModifier and TypeMethodDescriptionvoidDOMElementFormatter.formatElement(DOMElement element, XMLFormattingConstraints parentConstraints, int start, int end, List<org.eclipse.lsp4j.TextEdit> edits) Formats a DOM element: start tag, children, and end tag.XMLFormatterDocument.getFormatElementCategory(DOMElement element, XMLFormattingConstraints parentConstraints) Returns the format element category of the given DOM element.booleanXMLFormatterDocument.isBlockElement(DOMElement element) Returnstrueif the given element is an inline element in mixed content.booleanXMLFormatterDocument.shouldCollapseEmptyElement(DOMElement element, SharedSettings sharedSettings) Returns true if the given empty element should be collapsed to self-closing form (<foo></foo>→<foo />). -
Uses of DOMElement in org.eclipse.lemminx.settings
Methods in org.eclipse.lemminx.settings with parameters of type DOMElementModifier and TypeMethodDescriptionXMLFormattingOptions.getFormatElementCategory(DOMElement element) -
Uses of DOMElement in org.eclipse.lemminx.utils
Methods in org.eclipse.lemminx.utils that return DOMElementModifier and TypeMethodDescriptionstatic DOMElementDOMUtils.findFirstChildElementByTagName(DOMElement element, String tagName) static DOMElementXMLPositionUtility.findUnclosedParentElement(DOMNode node, int offset) Finds the nearest parent element that is not closed at the given offset.Methods in org.eclipse.lemminx.utils with parameters of type DOMElementModifier and TypeMethodDescriptionstatic booleanDOMUtils.containsTextOnly(DOMElement element) Returns true if element contains only DOMText and false otherwise.static DOMElementDOMUtils.findFirstChildElementByTagName(DOMElement element, String tagName) static org.eclipse.lsp4j.RangeXMLPositionUtility.selectEndTagLocalName(DOMElement element) Returns the range of the end tag of the given LOCALelementname and null otherwise.static org.eclipse.lsp4j.RangeXMLPositionUtility.selectEndTagName(DOMElement element) Returns the range of the end tag of the givenelementname and null otherwise.static org.eclipse.lsp4j.RangeXMLPositionUtility.selectEndTagName(DOMElement element, boolean localNameOnly) Returns the range of the end tag of the givenelementand null otherwise.