Freigeben über


ContentFieldType Class

public final class ContentFieldType
extends ExpandableStringEnum<ContentFieldType>

Semantic data type of the field value.

Field Summary

Modifier and Type Field and Description
static final ContentFieldType ARRAY

List of subfields of the same type.

static final ContentFieldType BOOLEAN

Boolean value.

static final ContentFieldType DATE

Date, normalized to ISO 8601 (YYYY-MM-DD) format.

static final ContentFieldType INTEGER

Integer as 64-bit signed integer.

static final ContentFieldType JSON

JSON object.

static final ContentFieldType NUMBER

Number as double precision floating point.

static final ContentFieldType OBJECT

Named list of subfields.

static final ContentFieldType STRING

Plain text.

static final ContentFieldType TIME

Time, normalized to ISO 8601 (hh:mm:ss) format.

Constructor Summary

Constructor Description
ContentFieldType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ContentFieldType value.

Method Summary

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

Creates or finds a ContentFieldType from its string representation.

static Collection<ContentFieldType> values()

Gets known ContentFieldType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

ARRAY

public static final ContentFieldType ARRAY

List of subfields of the same type.

BOOLEAN

public static final ContentFieldType BOOLEAN

Boolean value.

DATE

public static final ContentFieldType DATE

Date, normalized to ISO 8601 (YYYY-MM-DD) format.

INTEGER

public static final ContentFieldType INTEGER

Integer as 64-bit signed integer.

JSON

public static final ContentFieldType JSON

JSON object.

NUMBER

public static final ContentFieldType NUMBER

Number as double precision floating point.

OBJECT

public static final ContentFieldType OBJECT

Named list of subfields.

STRING

public static final ContentFieldType STRING

Plain text.

TIME

public static final ContentFieldType TIME

Time, normalized to ISO 8601 (hh:mm:ss) format.

Constructor Details

ContentFieldType

@Deprecated
public ContentFieldType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of ContentFieldType value.

Method Details

fromString

public static ContentFieldType fromString(String name)

Creates or finds a ContentFieldType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding ContentFieldType.

values

public static Collection<ContentFieldType> values()

Gets known ContentFieldType values.

Returns:

known ContentFieldType values.

Applies to