public enum SearchScope extends java.lang.Enum<SearchScope>
SearchParameters
Enum Constant and Description |
---|
ANNOTATION |
DESCRIPTION |
NAME |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getStringRepresentation()
Get a String representation of this scope which can be used in a
lucene search
|
static java.lang.String |
getStringRepresentation(java.util.Collection<SearchScope> scopes)
Get a String representation of the given scopes which can be used in a
lucence search
|
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 NAME
public static final SearchScope DESCRIPTION
public static final SearchScope ANNOTATION
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 getStringRepresentation()
public static java.lang.String getStringRepresentation(java.util.Collection<SearchScope> scopes)
scopes
- The scopes
Version: 5.4.6-ice35-b87
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.