public class PathspecParser extends Object
List> res = new PathspecParser(factoryInstance, relativeResource, "../../foobar");
Where factoryInstance is an instance of ResourceFactory, relativeResource is a resource,
such as a file or directory, for which the relative result for ../../foobar will be calculated.
Wildcards * and ? are accepted.| Constructor and Description |
|---|
PathspecParser(ResourceFactory factory,
Resource<?> res,
String path) |
| Modifier and Type | Method and Description |
|---|---|
static String |
pathspecToRegEx(String pathSpec) |
List<Resource<?>> |
resolve()
Resolve the results.
|
List<Resource<?>> |
search()
Perform a search, by doing a breadth-first traversal of the resource tree for resources that match the path
string.
|
public PathspecParser(ResourceFactory factory, Resource<?> res, String path)
public List<Resource<?>> resolve()
public List<Resource<?>> search()
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.