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 Details

    • TreeFilter

      public TreeFilter(String path)
  • Method Details

    • 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:
      true if the path mathces the filter, false otherwise
    • toString

      public String toString()
      Overrides:
      toString in class Object