|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<ScopeEnum>
org.apache.directory.shared.ldap.message.ScopeEnum
public enum ScopeEnum
Type-safe scope parameter enumeration.
| Enum Constant Summary | |
|---|---|
BASE_OBJECT
Search scope parameter value for base object search |
|
SINGLE_LEVEL
Search scope parameter value for single level search |
|
WHOLE_SUBTREE
Search scope parameter value for whole subtree level search |
|
| Method Summary | |
|---|---|
static ScopeEnum |
getScope(int value)
Gets the enum corresponding to the given integer value. |
static ScopeEnum |
getScope(javax.naming.directory.SearchControls controls)
Gets the type safe enumeration constant corresponding to a SearchControls scope value. |
int |
getValue()
Gets the LdapValue for the scope enumeration as opposed to the JNDI value which is returned using getValue(). |
static ScopeEnum |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. |
static ScopeEnum[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final ScopeEnum BASE_OBJECT
public static final ScopeEnum SINGLE_LEVEL
public static final ScopeEnum WHOLE_SUBTREE
| Method Detail |
|---|
public static ScopeEnum[] values()
for (ScopeEnum c : ScopeEnum.values()) System.out.println(c);
public static ScopeEnum 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 name
java.lang.NullPointerException - if the argument is nullpublic int getValue()
public static ScopeEnum getScope(javax.naming.directory.SearchControls controls)
controls - the SearchControls whose scope value we convert to enum
public static ScopeEnum getScope(int value)
value - The integer we want the corresponding enum
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||