Package com.unboundid.ldap.sdk.persist
Enum PersistFilterType
- All Implemented Interfaces:
Serializable,Comparable<PersistFilterType>,java.lang.constant.Constable
This enum defines a set of filter types for filters that may be generated
for an object using the LDAP SDK persistence framework. Classes created by
GenerateSourceFromSchema (including the
generate-source-from-schema command-line tool) will include methods
that may be used to generate filters for object contents.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe filter type that may be used to generate an approximate match filter, like "(attrName~=value)".The filter type that may be used to generate a substring filter with a subAny element, like "(attrName=*value*)".The filter type that may be used to generate a substring filter with a subFinal element, like "(attrName=*value)".The filter type that may be used to generate an equality filter, like "(attrName=value)".The filter type that may be used to generate a greater-than-or-equal-to filter, like "(attrName>=value)".The filter type that may be used to generate a less-than-or-equal-to filter, like "(attrName<=value)".The filter type that may be used to generate a presence filter, like "(attrName=*)".The filter type that may be used to generate a substring filter with a subInitial element, like "(attrName=value*)". -
Method Summary
Modifier and TypeMethodDescriptionstatic PersistFilterTypeRetrieves the filter type with the specified name.static PersistFilterTypeReturns the enum constant of this type with the specified name.static PersistFilterType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
PRESENCE
The filter type that may be used to generate a presence filter, like "(attrName=*)". -
EQUALITY
The filter type that may be used to generate an equality filter, like "(attrName=value)". -
STARTS_WITH
The filter type that may be used to generate a substring filter with a subInitial element, like "(attrName=value*)". -
ENDS_WITH
The filter type that may be used to generate a substring filter with a subFinal element, like "(attrName=*value)". -
CONTAINS
The filter type that may be used to generate a substring filter with a subAny element, like "(attrName=*value*)". -
GREATER_OR_EQUAL
The filter type that may be used to generate a greater-than-or-equal-to filter, like "(attrName>=value)". -
LESS_OR_EQUAL
The filter type that may be used to generate a less-than-or-equal-to filter, like "(attrName<=value)". -
APPROXIMATELY_EQUAL_TO
The filter type that may be used to generate an approximate match filter, like "(attrName~=value)".
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forName
Retrieves the filter type with the specified name.- Parameters:
name- The name of the filter type to retrieve. It must not benull.- Returns:
- The requested filter type, or
nullif no such type is defined.
-