Class CharFilter
java.lang.Object
co.elastic.clients.elasticsearch._types.analysis.CharFilter
- All Implemented Interfaces:
JsonpSerializable,TaggedUnion<JsonpSerializable>
@JsonpDeserializable public class CharFilter extends java.lang.Object implements TaggedUnion<JsonpSerializable>, JsonpSerializable
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classCharFilter.Builder -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CharFilter>_DESERIALIZERstatic java.lang.StringHTML_STRIPstatic java.lang.StringMAPPINGstatic java.lang.StringPATTERN_REPLACE -
Constructor Summary
Constructors Constructor Description CharFilter(CharFilterVariant value)CharFilter(ObjectBuilder<T> builder)CharFilter(java.util.function.Function<CharFilter.Builder,CharFilter.Builder> fn) -
Method Summary
Modifier and Type Method Description JsonpSerializable_get()java.lang.String_type()Get the of the type of the variant held by this union object.HtmlStripCharFilterhtmlStrip()Get thehtml_stripvariant value.MappingCharFiltermapping()Get themappingvariant value.PatternReplaceTokenFilterpatternReplace()Get thepattern_replacevariant value.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)protected static voidsetupCharFilterDeserializer(DelegatingDeserializer<CharFilter.Builder> op)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface co.elastic.clients.util.TaggedUnion
_is
-
Field Details
-
HTML_STRIP
public static final java.lang.String HTML_STRIP- See Also:
- Constant Field Values
-
MAPPING
public static final java.lang.String MAPPING- See Also:
- Constant Field Values
-
PATTERN_REPLACE
public static final java.lang.String PATTERN_REPLACE- See Also:
- Constant Field Values
-
_DESERIALIZER
-
-
Constructor Details
-
CharFilter
-
CharFilter
-
CharFilter
-
-
Method Details
-
_type
public java.lang.String _type()Description copied from interface:TaggedUnionGet the of the type of the variant held by this union object.- Specified by:
_typein interfaceTaggedUnion<JsonpSerializable>- Returns:
- the variant type
-
_get
- Specified by:
_getin interfaceTaggedUnion<JsonpSerializable>
-
htmlStrip
Get thehtml_stripvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thehtml_stripkind.
-
mapping
Get themappingvariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of themappingkind.
-
patternReplace
Get thepattern_replacevariant value.- Throws:
java.lang.IllegalStateException- if the current variant is not of thepattern_replacekind.
-
serialize
- Specified by:
serializein interfaceJsonpSerializable
-
setupCharFilterDeserializer
-