Class Normalizer
java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.Normalizer
- All Implemented Interfaces:
JsonpSerializable
,TaggedUnion<Normalizer.Kind,NormalizerVariant>
@JsonpDeserializable public class Normalizer extends java.lang.Object implements TaggedUnion<Normalizer.Kind,NormalizerVariant>, JsonpSerializable
- See Also:
- Documentation on elastic.co, API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Normalizer.Builder
static class
Normalizer.Kind
Normalizer
variant kinds. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<Normalizer>
_DESERIALIZER
-
Constructor Summary
Constructors Constructor Description Normalizer(NormalizerVariant value)
-
Method Summary
Modifier and Type Method Description NormalizerVariant
_get()
Normalizer.Kind
_kind()
Get the of the kind of variant held by this object.CustomNormalizer
custom()
Get thecustom
variant value.boolean
isCustom()
Is this variant instance of kindcustom
?boolean
isLowercase()
Is this variant instance of kindlowercase
?LowercaseNormalizer
lowercase()
Get thelowercase
variant value.static Normalizer
of(java.util.function.Function<Normalizer.Builder,ObjectBuilder<Normalizer>> fn)
void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupNormalizerDeserializer(ObjectDeserializer<Normalizer.Builder> op)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Normalizer
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnion
Get the of the kind of variant held by this object.- Specified by:
_kind
in interfaceTaggedUnion<Normalizer.Kind,NormalizerVariant>
- Returns:
- the variant kind
-
_get
- Specified by:
_get
in interfaceTaggedUnion<Normalizer.Kind,NormalizerVariant>
-
of
public static Normalizer of(java.util.function.Function<Normalizer.Builder,ObjectBuilder<Normalizer>> fn) -
isCustom
public boolean isCustom()Is this variant instance of kindcustom
? -
custom
Get thecustom
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thecustom
kind.
-
isLowercase
public boolean isLowercase()Is this variant instance of kindlowercase
? -
lowercase
Get thelowercase
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thelowercase
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupNormalizerDeserializer
-