public enum PredicateType extends Enum<PredicateType>
| Enum Constant and Description |
|---|
EXTERNAL_FILE_SYSTEM
Custom predicate implementation independent of the file system
|
LOCAL_FILE_SYSTEM
Default predicate using path marcher provided by FileSystem class
|
| Modifier and Type | Method and Description |
|---|---|
abstract Predicate<String> |
getPredicate(String pattern,
boolean caseSensitive) |
static PredicateType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static PredicateType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PredicateType EXTERNAL_FILE_SYSTEM
public static final PredicateType LOCAL_FILE_SYSTEM
public static PredicateType[] values()
for (PredicateType c : PredicateType.values()) System.out.println(c);
public static PredicateType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic abstract Predicate<String> getPredicate(String pattern, boolean caseSensitive)
pattern - glob pattern to be converted to predicatecaseSensitive - if the predicate type is EXTERNAL_FILE_SYSTEM set up if it's case-insensitive or case-sensitivePredicate predicate to match the filesCopyright © 2003–2023 MuleSoft, Inc.. All rights reserved.