SpellingFlaggedToken Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.language.spellcheck.models.SpellingFlaggedToken

public class SpellingFlaggedToken

The SpellingFlaggedToken model.

Constructor Summary

Constructor Description
SpellingFlaggedToken()

Method Summary

Modifier and Type Method and Description
int offset()

Get the offset value.

java.lang.String pingUrlSuffix()

Get the pingUrlSuffix value.

java.util.List<SpellingTokenSuggestion> suggestions()

Get the suggestions value.

java.lang.String token()

Get the token value.

ErrorType type()

Get the type value.

SpellingFlaggedToken withOffset(int offset)

Set the offset value.

SpellingFlaggedToken withToken(String token)

Set the token value.

SpellingFlaggedToken withType(ErrorType type)

Set the type value.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

SpellingFlaggedToken

public SpellingFlaggedToken()

Method Details

offset

public int offset()

Get the offset value.

Returns:

the offset value

pingUrlSuffix

public String pingUrlSuffix()

Get the pingUrlSuffix value.

Returns:

the pingUrlSuffix value

suggestions

public List suggestions()

Get the suggestions value.

Returns:

the suggestions value

token

public String token()

Get the token value.

Returns:

the token value

type

public ErrorType type()

Get the type value.

Returns:

the type value

withOffset

public SpellingFlaggedToken withOffset(int offset)

Set the offset value.

Parameters:

offset - the offset value to set

Returns:

the SpellingFlaggedToken object itself.

withToken

public SpellingFlaggedToken withToken(String token)

Set the token value.

Parameters:

token - the token value to set

Returns:

the SpellingFlaggedToken object itself.

withType

public SpellingFlaggedToken withType(ErrorType type)

Set the type value.

Parameters:

type - the type value to set

Returns:

the SpellingFlaggedToken object itself.

Applies to