Class TokenFilter
java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.TokenFilter
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<TokenFilter.Kind,Object>
@JsonpDeserializable
public class TokenFilter
extends Object
implements TaggedUnion<TokenFilter.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionfinal Object_get()final TokenFilter.Kind_kind()Get the of the kind of variant held by this object.Get thedefinitionvariant value.booleanIs this variant instance of kinddefinition?booleanisName()Is this variant instance of kindname?name()Get thenamevariant value.static TokenFiltervoidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) toString()
-
Field Details
-
_DESERIALIZER
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<TokenFilter.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<TokenFilter.Kind,Object>
-
of
-
isDefinition
public boolean isDefinition()Is this variant instance of kinddefinition? -
definition
Get thedefinitionvariant value.- Throws:
IllegalStateException- if the current variant is not of thedefinitionkind.
-
isName
public boolean isName()Is this variant instance of kindname? -
name
Get thenamevariant value.- Throws:
IllegalStateException- if the current variant is not of thenamekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-