public static interface Find.Expression extends de.unkrig.commons.lang.protocol.Predicate<de.unkrig.commons.lang.protocol.Mapping<String,Object>>
| Modifier and Type | Method and Description |
|---|---|
boolean |
evaluate(de.unkrig.commons.lang.protocol.Mapping<String,Object> properties)
Evaluates to
true or false, depending on the properties:
String name
The name of the file, directory or archive entry. |
boolean evaluate(de.unkrig.commons.lang.protocol.Mapping<String,Object> properties)
true or false, depending on the properties:
/").
directory"file"archive-file"archive-xxx-resource" (e.g. xxx="http")compressed-file"compressed-xxx-resource" (e.g. xxx="http")directory-entry"archive"compressed-contents"normal-contents"The following properties apply to the current file or directory, or, iff the current document is the contents of a compressed file, or the contents of an archive entry, to the enclosing compressed resp. archive file:
File.getAbsolutePath().
File.getCanonicalPath().
==") silently convert dates into strings with
format "EEE MMM dd HH:mm:ss zzz yyyy" (see SimpleDateFormat).
File.getFreeSpace().
File.getTotalSpace().
File.getUsableSpace().
true for a directory, otherwise false.
false for a directory, otherwise true.
File.isHidden()).
File.canRead().
File.canWrite().
File.canExecute()).
The following properties are available iff the current file is an archive file, or the current document exists within the contents of an archive:
The following properties are available iff the current file is a compressed file, or the current document exists within compressed contents:
Copyright © 2019 Arno Unkrig. All rights reserved.