|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.jackrabbit.commons.predicate.NtFilePredicate
public class NtFilePredicate
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 Summary | |
|---|---|
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 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
|
| Fields inherited from interface org.apache.jackrabbit.commons.predicate.Predicate |
|---|
TRUE |
| Constructor Summary | |
|---|---|
NtFilePredicate()
|
|
NtFilePredicate(boolean ignoreEncoding,
boolean ignoreMimeType)
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
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
protected final boolean ignoreEncoding
protected final boolean ignoreMimeType
| Constructor Detail |
|---|
public NtFilePredicate()
public NtFilePredicate(boolean ignoreEncoding,
boolean ignoreMimeType)
| Method Detail |
|---|
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 Predicateitem - some object
true if the item is a nt:file or nt:resource propertyorg.apache.commons.collections.Predicate#evaluate(java.lang.Object)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||