public class PathMatcher extends Object
Constructor and Description |
---|
PathMatcher() |
Modifier and Type | Method and Description |
---|---|
void |
addExactPath(String path) |
PathPattern |
addPattern(PathPattern pattern) |
void |
addPattern(String path) |
void |
addPatterns(String pathExpr)
Parse and add patterns from a class path expression.
|
void |
addPatterns(String[] paths) |
List<File> |
getAbsoluteMatches() |
List<String> |
getExactPaths() |
List<org.jboss.virtual.VirtualFile> |
getMatches(org.jboss.virtual.VirtualFile root)
Returns null if nothing matches.
|
List<File> |
getMatchesAsFiles(File root) |
List<String> |
getMatchesAsPaths(File root) |
Map<String,PathPattern> |
getPatterns() |
boolean |
isEmpty() |
public void addExactPath(String path)
public void addPattern(String path)
public boolean isEmpty()
public PathPattern addPattern(PathPattern pattern)
public void addPatterns(String[] paths)
public Map<String,PathPattern> getPatterns()
public void addPatterns(String pathExpr)
lib/*.jar:bundles/*:nuxeo-core-*.rar
pathExpr
- a class path pattenr expressionpublic List<org.jboss.virtual.VirtualFile> getMatches(org.jboss.virtual.VirtualFile root) throws IOException
IOException
public List<File> getMatchesAsFiles(File root) throws IOException
IOException
public List<String> getMatchesAsPaths(File root) throws IOException
IOException
public List<File> getAbsoluteMatches() throws IOException
IOException
Copyright © 2011 Nuxeo SA. All Rights Reserved.