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