Class IsMandatoryFilter

    • Constructor Detail

      • IsMandatoryFilter

        public IsMandatoryFilter()
      • IsMandatoryFilter

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

        public IsMandatoryFilter​(boolean isMandatory)
    • Method Detail

      • 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