public class NtFilePredicate extends java.lang.Object implements Predicate
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
JCR_CONTENT |
static java.lang.String |
JCR_ENCODING |
static java.lang.String |
JCR_MIMETYPE |
static java.lang.String |
JCR_PRIMARY_TYPE |
static java.lang.String |
NT_FILE |
static java.lang.String |
NT_HIERARCHYNODE |
static java.lang.String |
NT_RESOURCE |
Constructor and Description |
---|
NtFilePredicate() |
NtFilePredicate(boolean ignoreEncoding,
boolean ignoreMimeType) |
Modifier and Type | Method and Description |
---|---|
boolean |
evaluate(java.lang.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 java.lang.String NT_FILE
public static final java.lang.String NT_HIERARCHYNODE
public static final java.lang.String NT_RESOURCE
public static final java.lang.String JCR_CONTENT
public static final java.lang.String JCR_ENCODING
public static final java.lang.String JCR_MIMETYPE
public static final java.lang.String JCR_PRIMARY_TYPE
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(java.lang.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 © 2010 - 2020 Adobe Systems Incorporated. All Rights Reserved"