Class NtFilePredicate

java.lang.Object
org.apache.jackrabbit.commons.predicate.NtFilePredicate
All Implemented Interfaces:
Predicate

public class NtFilePredicate extends 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.
  • Field Details

  • Constructor Details

    • NtFilePredicate

      public NtFilePredicate()
    • NtFilePredicate

      public NtFilePredicate(boolean ignoreEncoding, boolean ignoreMimeType)
  • Method Details

    • 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(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: