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 Object
implements TaggedUnion<Normalizer.Kind,NormalizerVariant>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal NormalizerVariant_get()final Normalizer.Kind_kind()Get the of the kind of variant held by this object.custom()Get thecustomvariant value.booleanisCustom()Is this variant instance of kindcustom?booleanIs this variant instance of kindlowercase?Get thelowercasevariant value.static Normalizervoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
Normalizer
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<Normalizer.Kind,NormalizerVariant> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<Normalizer.Kind,NormalizerVariant>
-
of
-
isCustom
public boolean isCustom()Is this variant instance of kindcustom? -
custom
Get thecustomvariant value.- Throws:
IllegalStateException- if the current variant is not of thecustomkind.
-
isLowercase
public boolean isLowercase()Is this variant instance of kindlowercase? -
lowercase
Get thelowercasevariant value.- Throws:
IllegalStateException- if the current variant is not of thelowercasekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupNormalizerDeserializer
-