Class DistributionExportFilter.TreeFilter
- java.lang.Object
-
- org.apache.sling.distribution.serialization.DistributionExportFilter.TreeFilter
-
- Enclosing class:
- DistributionExportFilter
public static class DistributionExportFilter.TreeFilter extends Object
a filter is responsible for finding the resources that should be serialized unders a certain path
-
-
Constructor Summary
Constructors Constructor Description TreeFilter(String path)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddDeepInclude(String path)voidaddExclude(String path)voidaddInclude(String path)@NotNull StringgetPath()booleanmatches(String path)check whether a resource with a certain path should be included in the serialized outputStringtoString()
-
-
-
Constructor Detail
-
TreeFilter
public TreeFilter(String path)
-
-
Method Detail
-
addInclude
public void addInclude(String path)
-
addDeepInclude
public void addDeepInclude(String path)
-
addExclude
public void addExclude(String path)
-
getPath
@NotNull public @NotNull String getPath()
-
matches
public boolean matches(String path)
check whether a resource with a certain path should be included in the serialized output- Parameters:
path- a path- Returns:
trueif the path mathces the filter,falseotherwise
-
-