public enum SearchScope extends Enum<SearchScope>
Enum Constant and Description |
---|
OBJECT
Corresponds to
SearchControls.OBJECT_SCOPE |
ONELEVEL
Corresponds to
SearchControls.ONELEVEL_SCOPE |
SUBTREE
Corresponds to
SearchControls.SUBTREE_SCOPE |
Modifier and Type | Method and Description |
---|---|
int |
getId() |
static SearchScope |
valueOf(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
SearchControls.OBJECT_SCOPE
public static final SearchScope ONELEVEL
SearchControls.ONELEVEL_SCOPE
public static final SearchScope SUBTREE
SearchControls.SUBTREE_SCOPE
public static SearchScope[] values()
for (SearchScope c : SearchScope.values()) System.out.println(c);
public static SearchScope valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic int getId()