Class NewFileSnippetContext
java.lang.Object
org.eclipse.lemminx.services.snippets.NewFileSnippetContext
- All Implemented Interfaces:
ISnippetContext<ICompletionRequest>,IXMLSnippetContext
Snippet context used to filter snippets if XML file is empty or not.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final IXMLSnippetContextstatic final IXMLSnippetContextstatic final IXMLSnippetContextstatic final IXMLSnippetContext -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanisMatch(ICompletionRequest request, Map<String, String> model) Return true if the given value match the snippet context and false otherwise.protected abstract booleanisMatchType(DOMDocument document)
-
Field Details
-
XML_CONTEXT
-
XSD_CONTEXT
-
DTD_CONTEXT
-
RNG_CONTEXT
-
-
Constructor Details
-
NewFileSnippetContext
public NewFileSnippetContext()
-
-
Method Details
-
isMatch
Description copied from interface:ISnippetContextReturn true if the given value match the snippet context and false otherwise.- Specified by:
isMatchin interfaceISnippetContext<ICompletionRequest>- Parameters:
request- the value to check.- Returns:
- true if the given value match the snippet context and false otherwise.
-
isMatchType
-