Option

Inheritance: java.lang.Object

public final class Option

Class represents option of choice field.

Methods

MethodDescription
getValue()Gets option export value.
setValue(String value)Sets option export value.
getName()Gets name of option.
setName(String value)Sets name of option.
getSelected()Gets selected status of option.
setSelected(boolean value)Sets selected status of option.
getIndex()Gets index of the option.
hasExportValue()Return true if has Export Value

getValue()

public String getValue()

Gets option export value.

Returns: java.lang.String - String value

setValue(String value)

public void setValue(String value)

Sets option export value.

Parameters:

ParameterTypeDescription
valuejava.lang.StringString value

getName()

public String getName()

Gets name of option.

Returns: java.lang.String - String value

setName(String value)

public void setName(String value)

Sets name of option.

Parameters:

ParameterTypeDescription
valuejava.lang.StringString value

getSelected()

public boolean getSelected()

Gets selected status of option. Returns true if option is selected.

Returns: boolean - boolean value

setSelected(boolean value)

public void setSelected(boolean value)

Sets selected status of option. Returns true if option is selected.

Parameters:

ParameterTypeDescription
valuebooleanboolean value

getIndex()

public int getIndex()

Gets index of the option.

Returns: int - int value

hasExportValue()

public boolean hasExportValue()

Return true if has Export Value

Returns: boolean - boolean value