Class pvr.controller.value.types.ChoiceList

Represents a flat or hierarchical choice list.
Defined in: <pvr\controller\value\types\ChoiceList.js>.

Constructor Summary

Constructor Attributes Constructor Name and Description
 

Method Summary

Method Attributes Method Name and Description
 
equals(choiceList)
Indicates whether this choice list is equal to the specified choice list.
 
fromJson(value)
Parses the specific JSON string into a pvr.controller.value.types.ChoiceList object.
 
Indicates whether the choice list is hierarchical.
 
parse(value)
Parses the specific object into a pvr.controller.value.types.ChoiceList object.
 
Converts the choice list to a JSON string.

Constructor Detail

pvr.controller.value.types.ChoiceList()

Method Detail

equals(choiceList)

Indicates whether this choice list is equal to the specified choice list.
Parameters:
choiceList
The choice list to compare against.
Returns:
true if the choice lists are equal.

fromJson(value)

Parses the specific JSON string into a pvr.controller.value.types.ChoiceList object.
Parameters:
value
The JSON string to parse.
Returns:
A pvr.controller.value.types.ChoiceList object.

isHierarchical()

Indicates whether the choice list is hierarchical.
Returns:
true if the choice list is hierarchical.

parse(value)

Parses the specific object into a pvr.controller.value.types.ChoiceList object.

A variety of formats are supported.

Parameters:
value
The object to parse.
Returns:
A pvr.controller.value.types.ChoiceList object.

toJson()

Converts the choice list to a JSON string.
Returns:
A JSON string representing the choice list.