Enum SearchScope
- All Implemented Interfaces:
Serializable, Comparable<SearchScope>
A search scope enumerated type.
- Author:
- Apache Directory Project
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionGets the LDAP URL value for the scope: according to RFC 2255 this is either base, one, or sub.intgetScope()Gets the corresponding scope constant value as defined in RFC 4511.Gets the SearchScope associated with a scope Stringstatic SearchScopegetSearchScope(int scope) Gets the SearchScope enumerated type for the corresponding scope numeric value.static intgetSearchScope(String scope) Gets the SearchScope enumerated type for the corresponding scope value of either base, one or sub.toString()static SearchScopeReturns the enum constant of this type with the specified name.static SearchScope[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
OBJECT
Base scope -
ONELEVEL
One Level scope -
SUBTREE
Subtree scope
-
-
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
-
getLdapUrlValue
Gets the LDAP URL value for the scope: according to RFC 2255 this is either base, one, or sub.- Returns:
- the LDAP URL value
- See Also:
-
getScope
public int getScope()Gets the corresponding scope constant value as defined in RFC 4511.- Returns:
- the scope
-
getSearchScope
Gets the SearchScope enumerated type for the corresponding scope numeric value.- Parameters:
scope- the numeric value to get SearchScope for- Returns:
- the SearchScope enumerated type for the scope numeric value
-
getScope
Gets the SearchScope associated with a scope String- Parameters:
scope- The scope we are looking for- Returns:
- the scope
-
getSearchScope
Gets the SearchScope enumerated type for the corresponding scope value of either base, one or sub.- Parameters:
scope- the scope value to get SearchScope for- Returns:
- the SearchScope enumerated type for the LDAP URL scope value
-
toString
- Overrides:
toStringin classEnum<SearchScope>
-