public enum SearchScope extends Enum<SearchScope>
| Enum Constant and Description |
|---|
EVERYWHERE
Everywhere.
|
WORKSPACE
Current workspace.
|
| Modifier and Type | Field and Description |
|---|---|
static SearchScope |
DEFAULT
Default search scope.
|
| Modifier and Type | Method and Description |
|---|---|
static SearchScope |
fromId(String id)
Get search scope from identifier.
|
String |
getId() |
String |
getKey() |
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 WORKSPACE
public static final SearchScope EVERYWHERE
public static final SearchScope DEFAULT
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 static SearchScope fromId(String id)
id - identifierpublic String getId()
public String getKey()
Copyright © 2021 OSIVIA. All rights reserved.