Class SimpleFilePathExpression
java.lang.Object
org.eclipse.lemminx.extensions.filepath.SimpleFilePathExpression
- All Implemented Interfaces:
IFilePathExpression
- Direct Known Subclasses:
FilePathExpression
Basic implementation of the
IFilePathExpression.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanacceptFile(Path path) booleanacceptPath(Path path) Returns true if given file path is allowed for the file path completion and false otherwise.Returns the separator character (ex: ';') used to separate multiple files declaration (ex: file1.xml;file2.xml) and null otherwise.booleanReturns true if the given DOM node matches the file path expression and false otherwise.
-
Constructor Details
-
SimpleFilePathExpression
public SimpleFilePathExpression()
-
-
Method Details
-
match
Description copied from interface:IFilePathExpressionReturns true if the given DOM node matches the file path expression and false otherwise.- Specified by:
matchin interfaceIFilePathExpression- Parameters:
node- the DOM node.- Returns:
- true if the given DOM node matches the file path expression and false otherwise.
-
getSeparator
Description copied from interface:IFilePathExpressionReturns the separator character (ex: ';') used to separate multiple files declaration (ex: file1.xml;file2.xml) and null otherwise.- Specified by:
getSeparatorin interfaceIFilePathExpression- Returns:
- the separator character (ex: ';') used to separate multiple files declaration (ex: file1.xml;file2.xml) and null otherwise.
-
acceptPath
Description copied from interface:IFilePathExpressionReturns true if given file path is allowed for the file path completion and false otherwise.- Specified by:
acceptPathin interfaceIFilePathExpression- Parameters:
path- the file path.- Returns:
- true if given file path is allowed for the file path completion and false otherwise.
-
acceptFile
-