Class FilePathExpression
java.lang.Object
org.eclipse.lemminx.extensions.filepath.SimpleFilePathExpression
org.eclipse.lemminx.extensions.filepath.settings.FilePathExpression
- All Implemented Interfaces:
IFilePathExpression
File path expression
{
"xpath": "@paths",
"separator": " "
}
- Author:
- Angelo ZERR
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected booleanacceptFile(Path path) Returns the separator character (ex: ';') used to separate multiple files declaration (ex: file1.xml;file2.xml) and null otherwise.getXPath()booleanReturns true if the given DOM node matches the file path expression and false otherwise.setSeparator(Character separator) Methods inherited from class org.eclipse.lemminx.extensions.filepath.SimpleFilePathExpression
acceptPath
-
Constructor Details
-
FilePathExpression
public FilePathExpression() -
FilePathExpression
-
-
Method Details
-
getXPath
-
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- Overrides:
getSeparatorin classSimpleFilePathExpression- Returns:
- the separator character (ex: ';') used to separate multiple files declaration (ex: file1.xml;file2.xml) and null otherwise.
-
getFilter
-
setXPath
-
setSeparator
-
setFilter
-
match
Description copied from interface:IFilePathExpressionReturns true if the given DOM node matches the file path expression and false otherwise.- Specified by:
matchin interfaceIFilePathExpression- Overrides:
matchin classSimpleFilePathExpression- Parameters:
node- the DOM node.- Returns:
- true if the given DOM node matches the file path expression and false otherwise.
-
acceptFile
- Overrides:
acceptFilein classSimpleFilePathExpression
-