Class NtFilePredicate

  • All Implemented Interfaces:
    Predicate

    public class NtFilePredicate
    extends java.lang.Object
    implements Predicate
    The nt file item filter matches all properties that are defined my the nt:file or nt:resource nodetype. the later only, if the respective nodes name is 'jcr:content'. Additionally the properties 'jcr:encoding' can be configured to be excluded.
    • Constructor Detail

      • NtFilePredicate

        public NtFilePredicate()
      • NtFilePredicate

        public NtFilePredicate​(boolean ignoreEncoding,
                               boolean ignoreMimeType)
    • Method Detail

      • isIgnoreEncoding

        public boolean isIgnoreEncoding()
        Returns the ignore encoding flag.
        Returns:
        the ignore encoding flag.
      • isIgnoreMimeType

        public boolean isIgnoreMimeType()
        Returns the ignore mime type flag.
        Returns:
        the ignore mime type flag.
      • evaluate

        public boolean evaluate​(java.lang.Object item)
        Description copied from interface: Predicate
        Evaluates the predicate for the given object.
        Specified by:
        evaluate in interface Predicate
        Parameters:
        item - some object
        Returns:
        true if the item is a nt:file or nt:resource property
        See Also:
        Predicate.evaluate(java.lang.Object)