public class CmsPathIncludeExcludeSet extends java.lang.Object
Constructor and Description |
---|
CmsPathIncludeExcludeSet() |
Modifier and Type | Method and Description |
---|---|
void |
addExclude(java.lang.String exclude)
Adds an excluded path.
|
void |
addInclude(java.lang.String include)
Adds an included path.
|
java.util.Set<java.lang.String> |
getIncludeRoots()
Gets the root include paths, i.e. those include paths which don't have an ancestor path which is also an include path.
|
boolean |
isExcluded(java.lang.String path)
Checks if the given path is excluded by the include/exclude configuration.
|
protected java.lang.String |
normalizePath(java.lang.String path)
Converts a path to a normalized form.
|
public CmsPathIncludeExcludeSet()
public void addExclude(java.lang.String exclude)
exclude
- the path to addpublic void addInclude(java.lang.String include)
include
- the path to addpublic java.util.Set<java.lang.String> getIncludeRoots()
public boolean isExcluded(java.lang.String path)
path
- the path to checkprotected java.lang.String normalizePath(java.lang.String path)
path
- the path to normalize