Class CharFilterDefinition
java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.CharFilterDefinition
- All Implemented Interfaces:
JsonpSerializable,OpenTaggedUnion<CharFilterDefinition.Kind,,Object> TaggedUnion<CharFilterDefinition.Kind,Object>
@JsonpDeserializable
public class CharFilterDefinition
extends Object
implements OpenTaggedUnion<CharFilterDefinition.Kind,Object>, JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCharFilterDefinition(String kind, JsonData value) Build a custom plugin-definedCharFilterDefinition, given its kind and some JSON data -
Method Summary
Modifier and TypeMethodDescription_custom()Get the custom plugin-defined variant value.final StringGet the actual kind when_kind()equalsCharFilterDefinition.Kind._Custom(plugin-defined variant).final Object_get()booleanIs this a customCharFilterDefinitiondefined by a plugin?_kind()Get the of the kind of variant held by this object.Get thehtml_stripvariant value.Get theicu_normalizervariant value.booleanIs this variant instance of kindhtml_strip?booleanIs this variant instance of kindicu_normalizer?booleanIs this variant instance of kindkuromoji_iteration_mark?booleanIs this variant instance of kindmapping?booleanIs this variant instance of kindpattern_replace?Get thekuromoji_iteration_markvariant value.mapping()Get themappingvariant value.static CharFilterDefinitionGet thepattern_replacevariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidtoString()
-
Field Details
-
_DESERIALIZER
-
-
Constructor Details
-
CharFilterDefinition
-
CharFilterDefinition
Build a custom plugin-definedCharFilterDefinition, given its kind and some JSON data
-
-
Method Details
-
_kind
Description copied from interface:TaggedUnionGet the of the kind of variant held by this object.- Specified by:
_kindin interfaceTaggedUnion<CharFilterDefinition.Kind,Object> - Returns:
- the variant kind
-
_get
- Specified by:
_getin interfaceTaggedUnion<CharFilterDefinition.Kind,Object>
-
of
public static CharFilterDefinition of(Function<CharFilterDefinition.Builder, ObjectBuilder<CharFilterDefinition>> fn) -
isHtmlStrip
public boolean isHtmlStrip()Is this variant instance of kindhtml_strip? -
htmlStrip
Get thehtml_stripvariant value.- Throws:
IllegalStateException- if the current variant is not of thehtml_stripkind.
-
isIcuNormalizer
public boolean isIcuNormalizer()Is this variant instance of kindicu_normalizer? -
icuNormalizer
Get theicu_normalizervariant value.- Throws:
IllegalStateException- if the current variant is not of theicu_normalizerkind.
-
isKuromojiIterationMark
public boolean isKuromojiIterationMark()Is this variant instance of kindkuromoji_iteration_mark? -
kuromojiIterationMark
Get thekuromoji_iteration_markvariant value.- Throws:
IllegalStateException- if the current variant is not of thekuromoji_iteration_markkind.
-
isMapping
public boolean isMapping()Is this variant instance of kindmapping? -
mapping
Get themappingvariant value.- Throws:
IllegalStateException- if the current variant is not of themappingkind.
-
isPatternReplace
public boolean isPatternReplace()Is this variant instance of kindpattern_replace? -
patternReplace
Get thepattern_replacevariant value.- Throws:
IllegalStateException- if the current variant is not of thepattern_replacekind.
-
_isCustom
public boolean _isCustom()Is this a customCharFilterDefinitiondefined by a plugin? -
_customKind
Get the actual kind when_kind()equalsCharFilterDefinition.Kind._Custom(plugin-defined variant).- Specified by:
_customKindin interfaceOpenTaggedUnion<CharFilterDefinition.Kind,Object>
-
_custom
Get the custom plugin-defined variant value.- Throws:
IllegalStateException- if the current variant is notCharFilterDefinition.Kind._Custom.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
toString
-
setupCharFilterDefinitionDeserializer
protected static void setupCharFilterDefinitionDeserializer(ObjectDeserializer<CharFilterDefinition.Builder> op)
-