Enum Constant and Description |
---|
FIND_MISSING_FIELDS_ARE_ERROR
Searching flag added to the
type that specifies how to handle fields that are missing in the target catalog. |
FIND_MISSING_FIELDS_FIND_NOTHING
Searching flag added to the
type that specifies how to handle fields that are missing in the target catalog. |
FIND_MISSING_FIELDS_REPLACE
Searching flag added to the
type that specifies how to handle fields that are missing in the target catalog. |
FIND_MISSING_STRING_LIST_VALUES_ARE_ERROR
Searching flag added to the
type that specifies how to handle the case that the query uses string list values that are missing in the target
catalog. |
FIND_MISSING_STRING_LIST_VALUES_REPLACE
Searching flag added to the
type that specifies how to handle the case that the query uses string list values that are missing in the target
catalog. |
QUICK_SEARCH_STRING
This flag specifies that the given string is a quick search text and not a query.
|
SEARCH_CATEGORIES_ABOVE
Also include all parent categories of the categories matching the given query.
|
SEARCH_CATEGORIES_BELOW
Also include all sub-categories of the categories matching the given query.
|
SEARCH_CATEGORIES_EXACT
Only find categories that exactly match the given query.
|
SEARCH_CATEGORIES_MATCH_ONE
When searching by multiple categories (by calling
RecordItemCollection.find(java.util.Set, java.util.EnumSet, CombineMode) this
flag indicates to return records that are assigned to at least one of the categories. |
SEARCH_CATEGORIES_RESOLVE_RELATED
Resolve all related categories matching the given query and include the originals.
|
SEARCH_CATEGORIES_USE_USER_SETTINGS
This flag is a placeholder to use the user settings when searching categories.
|
Modifier and Type | Method and Description |
---|---|
static FindFlag |
find(int id)
Find the flag for the given id.
|
static java.util.EnumSet<FindFlag> |
findAll(int id)
Returns all flags that have been encoded into the given id.
|
static int |
getAll(java.util.EnumSet<FindFlag> flags)
Returns all given flags as an encoded int.
|
int |
getID()
Returns the id for this flag.
|
static FindFlag |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static FindFlag[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FindFlag SEARCH_CATEGORIES_EXACT
public static final FindFlag SEARCH_CATEGORIES_ABOVE
public static final FindFlag SEARCH_CATEGORIES_BELOW
public static final FindFlag SEARCH_CATEGORIES_RESOLVE_RELATED
public static final FindFlag SEARCH_CATEGORIES_MATCH_ONE
RecordItemCollection.find(java.util.Set, java.util.EnumSet, CombineMode)
this
flag indicates to return records that are assigned to at least one of the categories. If this flag is not specified then only records assigned to all
given categories are returned.public static final FindFlag SEARCH_CATEGORIES_USE_USER_SETTINGS
public static final FindFlag QUICK_SEARCH_STRING
public static final FindFlag FIND_MISSING_FIELDS_ARE_ERROR
type
that specifies how to handle fields that are missing in the target catalog. By adding this flag the find
method throws an error if a field is missing. This is the default if you do not specify any specific handling.public static final FindFlag FIND_MISSING_FIELDS_FIND_NOTHING
type
that specifies how to handle fields that are missing in the target catalog. By adding this flag the find
method returns an empty result if a field is missing.public static final FindFlag FIND_MISSING_FIELDS_REPLACE
type
that specifies how to handle fields that are missing in the target catalog. By adding this flag the find
method tries to return "natural" results without any error (e.g. a search for "<missing field> has value" produces an empty result).public static final FindFlag FIND_MISSING_STRING_LIST_VALUES_ARE_ERROR
type
that specifies how to handle the case that the query uses string list values that are missing in the target
catalog. By adding this flag the find method throws an error if a value is missing. This is the default if you do not specify any specific handling.public static final FindFlag FIND_MISSING_STRING_LIST_VALUES_REPLACE
type
that specifies how to handle the case that the query uses string list values that are missing in the target
catalog. By adding this flag the find method tries to return "natural" results without any error (e.g. a search for "<),some_field>), is
<),missing_value>)," produces an empty result).public static FindFlag[] values()
for (FindFlag c : FindFlag.values()) System.out.println(c);
public static FindFlag valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is nullpublic int getID()
public static FindFlag find(int id)
id
- wanted idpublic static java.util.EnumSet<FindFlag> findAll(int id)
id
- encoded idgetAll(java.util.EnumSet)
public static int getAll(java.util.EnumSet<FindFlag> flags)
flags
- flags to encodefindAll(int)
www.canto.com
Canto, the Canto logo, the Cumulus logo, and Cumulus are registered trademarks of Canto GmbH, registered in the U.S. and other countries.