TextType Class

public final class TextType
extends ExpandableStringEnum<TextType>

Translation text type.

Field Summary

Modifier and Type Field and Description
static final TextType HTML

HTML-encoded text.

static final TextType PLAIN

Plain text.

Constructor Summary

Constructor Description
TextType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of TextType value.

Method Summary

Modifier and Type Method and Description
static TextType fromString(String name)

Creates or finds a TextType from its string representation.

static Collection<TextType> values()

Gets known TextType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

HTML

public static final TextType HTML

HTML-encoded text.

PLAIN

public static final TextType PLAIN

Plain text.

Constructor Details

TextType

@Deprecated
public TextType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of TextType value.

Method Details

fromString

public static TextType fromString(String name)

Creates or finds a TextType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding TextType.

values

public static Collection<TextType> values()

Gets known TextType values.

Returns:

known TextType values.

Applies to