public static enum SearchDetails.MatchingContextType extends Enum<SearchDetails.MatchingContextType>
The type of matching context returned in the response. If you specify HIGHLIGHTS, then the service will highlight fragments in its response. (For more information, see ResourceSummary.searchContext and SearchContext.) The default setting is NONE.
| Enum Constant and Description |
|---|
Highlights |
None |
| Modifier and Type | Method and Description |
|---|---|
static SearchDetails.MatchingContextType |
create(String key) |
String |
getValue() |
static SearchDetails.MatchingContextType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SearchDetails.MatchingContextType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchDetails.MatchingContextType None
public static final SearchDetails.MatchingContextType Highlights
public static SearchDetails.MatchingContextType[] values()
for (SearchDetails.MatchingContextType c : SearchDetails.MatchingContextType.values()) System.out.println(c);
public static SearchDetails.MatchingContextType 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 String getValue()
public static SearchDetails.MatchingContextType create(String key)
Copyright © 2016–2021. All rights reserved.