public class FilePathExpression extends SimpleFilePathExpression
{
"xpath": "@paths",
"separator": " "
}
| Constructor and Description |
|---|
FilePathExpression() |
FilePathExpression(String xpath) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
acceptFile(Path path) |
List<String> |
getFilter() |
Character |
getSeparator()
Returns the separator character (ex: ';') used to separate multiple files
declaration (ex:
file1.xml;file2.xml) and null otherwise.
|
String |
getXPath() |
boolean |
match(Node node)
Returns true if the given DOM node matches the file path expression and false
otherwise.
|
FilePathExpression |
setFilter(List<String> filter) |
FilePathExpression |
setSeparator(Character separator) |
FilePathExpression |
setXPath(String xpath) |
acceptPathpublic FilePathExpression()
public FilePathExpression(String xpath)
public String getXPath()
public Character getSeparator()
IFilePathExpressiongetSeparator in interface IFilePathExpressiongetSeparator in class SimpleFilePathExpressionpublic FilePathExpression setXPath(String xpath)
public FilePathExpression setSeparator(Character separator)
public FilePathExpression setFilter(List<String> filter)
public boolean match(Node node)
IFilePathExpressionmatch in interface IFilePathExpressionmatch in class SimpleFilePathExpressionnode - the DOM node.protected boolean acceptFile(Path path)
acceptFile in class SimpleFilePathExpressionCopyright © 2024. All rights reserved.