public class NtFilePredicate extends Object implements Predicate
Modifier and Type | Field and Description |
---|---|
protected boolean |
ignoreEncoding
indicates if the jcr:encoding property is to be excluded from this filter.
|
protected boolean |
ignoreMimeType
indicates if the jcr:mimeType property is to be excluded from this filter.
|
static String |
JCR_CONTENT |
static String |
JCR_ENCODING |
static String |
JCR_MIMETYPE |
static String |
JCR_PRIMARY_TYPE |
static String |
NT_FILE |
static String |
NT_HIERARCHYNODE |
static String |
NT_RESOURCE |
Constructor and Description |
---|
NtFilePredicate() |
NtFilePredicate(boolean ignoreEncoding,
boolean ignoreMimeType) |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(Object item)
Evaluates the predicate for the given object.
|
boolean |
isIgnoreEncoding()
Returns the
ignore encoding flag. |
boolean |
isIgnoreMimeType()
Returns the
ignore mime type flag. |
public static final String NT_FILE
public static final String NT_HIERARCHYNODE
public static final String NT_RESOURCE
public static final String JCR_CONTENT
public static final String JCR_ENCODING
public static final String JCR_MIMETYPE
public static final String JCR_PRIMARY_TYPE
protected final boolean ignoreEncoding
protected final boolean ignoreMimeType
public NtFilePredicate()
public NtFilePredicate(boolean ignoreEncoding, boolean ignoreMimeType)
public boolean isIgnoreEncoding()
ignore encoding
flag.ignore encoding
flag.public boolean isIgnoreMimeType()
ignore mime type
flag.ignore mime type
flag.public boolean evaluate(Object item)
Predicate
evaluate
in interface Predicate
item
- some objecttrue
if the item is a nt:file or nt:resource propertyPredicate.evaluate(java.lang.Object)
Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.