public interface RebelSource
dir or a jar element
defined in a rebel.xml.| Modifier and Type | Method and Description |
|---|---|
boolean |
acceptPath(String path) |
Set<String> |
getAllPaths()
Returns all paths of this source (using pattern matching if enabled).
|
File |
getDir() |
File |
getFile() |
Set<String> |
getSubPaths(String parent)
Returns a listing of all direct sub-paths beginning with the given prefix.
|
boolean |
hasPatterns() |
boolean |
isDir() |
boolean |
isJar() |
boolean isDir()
true if this is a directory source.boolean isJar()
true if this is a JAR source.File getFile()
File getDir()
boolean hasPatterns()
true if this source uses pattern matching.boolean acceptPath(String path)
true if this source may contain specified path i.e. path matches the
pattern used by this source.Set<String> getAllPaths()
All paths are relative to this source.
Only / is used as a directory separator.
All directory paths end with a / character.
No leading characters are used.
Set<String> getSubPaths(String parent)
The returned set contains both directories (ending with '/') and files.
parent - parent path (prefix for all sub-paths).null).Copyright © 2016. All rights reserved.