Freigeben über


CharFilter Class

  • java.lang.Object
    • com.azure.search.documents.indexes.models.CharFilter

Implements

public class CharFilter
implements JsonSerializable<CharFilter>

Base type for character filters.

Constructor Summary

Constructor Description
CharFilter(String name)

Creates an instance of CharFilter class.

Method Summary

Modifier and Type Method and Description
static CharFilter fromJson(JsonReader jsonReader)

Reads an instance of CharFilter from the JsonReader.

String getName()

Get the name property: The name of the char filter.

String getOdataType()

Get the odataType property: A URI fragment specifying the type of char filter.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Constructor Details

CharFilter

public CharFilter(String name)

Creates an instance of CharFilter class.

Parameters:

name - the name value to set.

Method Details

fromJson

public static CharFilter fromJson(JsonReader jsonReader)

Reads an instance of CharFilter from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CharFilter if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getName

public String getName()

Get the name property: The name of the char filter. It must only contain letters, digits, spaces, dashes or underscores, can only start and end with alphanumeric characters, and is limited to 128 characters.

Returns:

the name value.

getOdataType

public String getOdataType()

Get the odataType property: A URI fragment specifying the type of char filter.

Returns:

the odataType value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to