InputType Class

public final class InputType
extends ExpandableStringEnum<InputType>

Question input type.

Field Summary

Modifier and Type Field and Description
static final InputType BOOLEAN

The input content should be a boolean.

static final InputType DATE

The input content should be a date.

static final InputType EMAIL

The input content should be an email address.

static final InputType GROUP

The input content is a group of answers.

static final InputType MULTILINE_TEXT

The input content should be multiline text.

static final InputType MULTI_SELECT_CHECKBOX

The input content are multiple results seleted from the checkboxes.

static final InputType MULTI_SELECT_DROPDOWN

The input content are multiple results seleted from the dropdown options.

static final InputType MULTI_SELECT_DROPDOWN_CUSTOM

The input content are result seleted from the custom dropdown options.

static final InputType NONE

The input type is a text box.

static final InputType NUMBER

The input content should be a number.

static final InputType SINGLE_SELECTION

The input content is a single result seleted from the options.

static final InputType SINGLE_SELECT_DROPDOWN

The input content is a single result seleted from the dropdown options.

static final InputType TELEPHONE

The input content should be a telephone number.

static final InputType TEXT

The input content is text string.

static final InputType UPLOAD

The input content is a uploaded file.

static final InputType URL

The input content should be a URL.

static final InputType YEAR_PICKER

The input content is a Year, pick from the dropdown list.

static final InputType YES_NO_NA

The input content should be Yes, No or Na.

Constructor Summary

Constructor Description
InputType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of InputType value.

Method Summary

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

Creates or finds a InputType from its string representation.

static Collection<InputType> values()

Gets known InputType values.

Methods inherited from ExpandableStringEnum

Methods inherited from java.lang.Object

Field Details

BOOLEAN

public static final InputType BOOLEAN

The input content should be a boolean.

DATE

public static final InputType DATE

The input content should be a date.

EMAIL

public static final InputType EMAIL

The input content should be an email address.

GROUP

public static final InputType GROUP

The input content is a group of answers.

MULTILINE_TEXT

public static final InputType MULTILINE_TEXT

The input content should be multiline text.

MULTI_SELECT_CHECKBOX

public static final InputType MULTI_SELECT_CHECKBOX

The input content are multiple results seleted from the checkboxes.

MULTI_SELECT_DROPDOWN

public static final InputType MULTI_SELECT_DROPDOWN

The input content are multiple results seleted from the dropdown options.

MULTI_SELECT_DROPDOWN_CUSTOM

public static final InputType MULTI_SELECT_DROPDOWN_CUSTOM

The input content are result seleted from the custom dropdown options.

NONE

public static final InputType NONE

The input type is a text box.

NUMBER

public static final InputType NUMBER

The input content should be a number.

SINGLE_SELECTION

public static final InputType SINGLE_SELECTION

The input content is a single result seleted from the options.

SINGLE_SELECT_DROPDOWN

public static final InputType SINGLE_SELECT_DROPDOWN

The input content is a single result seleted from the dropdown options.

TELEPHONE

public static final InputType TELEPHONE

The input content should be a telephone number.

TEXT

public static final InputType TEXT

The input content is text string.

UPLOAD

public static final InputType UPLOAD

The input content is a uploaded file.

URL

public static final InputType URL

The input content should be a URL.

YEAR_PICKER

public static final InputType YEAR_PICKER

The input content is a Year, pick from the dropdown list.

YES_NO_NA

public static final InputType YES_NO_NA

The input content should be Yes, No or Na.

Constructor Details

InputType

@Deprecated
public InputType()

Deprecated

Use the fromString(String name) factory method.

Creates a new instance of InputType value.

Method Details

fromString

public static InputType fromString(String name)

Creates or finds a InputType from its string representation.

Parameters:

name - a name to look for.

Returns:

the corresponding InputType.

values

public static Collection<InputType> values()

Gets known InputType values.

Returns:

known InputType values.

Applies to