public enum SearchScope extends java.lang.Enum<SearchScope>
| Modifier and Type | Field and Description |
|---|---|
private java.lang.String |
ldapUrlValue
The LDAP URL string value of either base, one or sub as defined in RFC
2255.
|
private int |
scope
The corresponding LDAP scope constant value as defined in
RFC 4511
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getLdapUrlValue()
Gets the LDAP URL value for the scope: according to RFC 2255 this is
either base, one, or sub.
|
int |
getScope()
Gets the corresponding scope constant value as defined in
RFC 4511.
|
SearchScope |
getScope(java.lang.String scope)
Gets the SeacrhScope associated with a scope String
|
static SearchScope |
getSearchScope(int scope)
Gets the SearchScope enumerated type for the corresponding
scope numeric value.
|
static int |
getSearchScope(java.lang.String scope)
Gets the SearchScope enumerated type for the corresponding
scope value of either base, one or sub.
|
java.lang.String |
toString() |
static SearchScope |
valueOf(java.lang.String name)
Returns 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.
|
public static final SearchScope OBJECT
public static final SearchScope ONELEVEL
public static final SearchScope SUBTREE
private final int scope
private final java.lang.String ldapUrlValue
public static SearchScope[] values()
for (SearchScope c : SearchScope.values()) System.out.println(c);
public static SearchScope 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 java.lang.String getLdapUrlValue()
public int getScope()
public static SearchScope getSearchScope(int scope)
scope - the numeric value to get SearchScope forpublic SearchScope getScope(java.lang.String scope)
public static int getSearchScope(java.lang.String scope)
scope - the scope value to get SearchScope forpublic java.lang.String toString()
toString in class java.lang.Enum<SearchScope>