Class FilePathExpression
- java.lang.Object
-
- org.eclipse.lemminx.extensions.filepath.SimpleFilePathExpression
-
- org.eclipse.lemminx.extensions.filepath.settings.FilePathExpression
-
- All Implemented Interfaces:
IFilePathExpression
public class FilePathExpression extends SimpleFilePathExpression
File path expression{ "xpath": "@paths", "separator": " " }- Author:
- Angelo ZERR
-
-
Constructor Summary
Constructors Constructor Description FilePathExpression()FilePathExpression(String xpath)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected booleanacceptFile(Path path)List<String>getFilter()CharactergetSeparator()Returns the separator character (ex: ';') used to separate multiple files declaration (ex: file1.xml;file2.xml) and null otherwise.StringgetXPath()booleanmatch(Node node)Returns true if the given DOM node matches the file path expression and false otherwise.FilePathExpressionsetFilter(List<String> filter)FilePathExpressionsetSeparator(Character separator)FilePathExpressionsetXPath(String xpath)-
Methods inherited from class org.eclipse.lemminx.extensions.filepath.SimpleFilePathExpression
acceptPath
-
-
-
-
Constructor Detail
-
FilePathExpression
public FilePathExpression()
-
FilePathExpression
public FilePathExpression(String xpath)
-
-
Method Detail
-
getXPath
public String getXPath()
-
getSeparator
public Character 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.
-
setXPath
public FilePathExpression setXPath(String xpath)
-
setSeparator
public FilePathExpression setSeparator(Character separator)
-
setFilter
public FilePathExpression setFilter(List<String> filter)
-
match
public boolean match(Node node)
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
protected boolean acceptFile(Path path)
- Overrides:
acceptFilein classSimpleFilePathExpression
-
-