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 class
CharFilter.Builder
-
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<CharFilter>
_DESERIALIZER
static java.lang.String
HTML_STRIP
static java.lang.String
MAPPING
static java.lang.String
PATTERN_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.HtmlStripCharFilter
htmlStrip()
Get thehtml_strip
variant value.MappingCharFilter
mapping()
Get themapping
variant value.PatternReplaceTokenFilter
patternReplace()
Get thepattern_replace
variant value.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupCharFilterDeserializer(DelegatingDeserializer<CharFilter.Builder> op)
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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:TaggedUnion
Get the of the type of the variant held by this union object.- Specified by:
_type
in interfaceTaggedUnion<JsonpSerializable>
- Returns:
- the variant type
-
_get
- Specified by:
_get
in interfaceTaggedUnion<JsonpSerializable>
-
htmlStrip
Get thehtml_strip
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thehtml_strip
kind.
-
mapping
Get themapping
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of themapping
kind.
-
patternReplace
Get thepattern_replace
variant value.- Throws:
java.lang.IllegalStateException
- if the current variant is not of thepattern_replace
kind.
-
serialize
- Specified by:
serialize
in interfaceJsonpSerializable
-
setupCharFilterDeserializer
-