public enum TypeNameMappingStrategyName extends Enum<TypeNameMappingStrategyName>
| Enum Constant and Description |
|---|
DISCRIMINATOR
Rely on a discriminator field added to each document to resolve the type name.
|
INDEX_NAME
Rely on the "_index" meta-field.
|
| Modifier and Type | Method and Description |
|---|---|
static TypeNameMappingStrategyName |
of(String value) |
static TypeNameMappingStrategyName |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TypeNameMappingStrategyName[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TypeNameMappingStrategyName INDEX_NAME
public static final TypeNameMappingStrategyName DISCRIMINATOR
public static TypeNameMappingStrategyName[] values()
for (TypeNameMappingStrategyName c : TypeNameMappingStrategyName.values()) System.out.println(c);
public static TypeNameMappingStrategyName 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 TypeNameMappingStrategyName of(String value)
Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.