Class IsMandatoryFilter

java.lang.Object
org.apache.jackrabbit.vault.fs.filter.DepthItemFilter
org.apache.jackrabbit.vault.fs.filter.IsMandatoryFilter
All Implemented Interfaces:
Dumpable, Filter, ItemFilter

public class IsMandatoryFilter extends DepthItemFilter
IsNodeFilter...
  • Constructor Details

    • IsMandatoryFilter

      public IsMandatoryFilter()
    • IsMandatoryFilter

      public IsMandatoryFilter(boolean isMandatory, int minDepth, int maxDepth)
    • IsMandatoryFilter

      public IsMandatoryFilter(boolean isMandatory)
  • Method Details

    • setCondition

      public void setCondition(String node)
    • setIsMandatory

      public void setIsMandatory(String node)
    • matches

      public boolean matches(Item item) throws RepositoryException
      Description copied from class: DepthItemFilter
      Returns true. Subclasses can override to implement something useful that is dependant of the depth.
      Overrides:
      matches in class DepthItemFilter
      Parameters:
      item - the item to match
      Returns:
      true if the item matches; false otherwise.
      Throws:
      RepositoryException - if an error occurs.
    • dump

      public void dump(DumpContext ctx, boolean isLast)
      Dumps some human readable information using the given context.
      Specified by:
      dump in interface Dumpable
      Overrides:
      dump in class DepthItemFilter
      Parameters:
      ctx - the dump context
      isLast - specifies if this is the last element to dump on this level