This class represents the option model of a specific product and
for a specific currency. It provides accessor methods to the configured
options and the values of those options. It has also methods to set a
specific selection of option values.
Returns the selected value for the specified product option. If no
option values was set as selected option explicitly, the method
returns the default option value for this option.
Parameters:
option - The option to get the selected value for.
Returns:
a selected value for the specified product option.
Returns a URL that can be used to select one or more option values. The
optional varOptionAndValues argument can be empty, or can
contain one or more option / value pairs. This variable list must be even
in length, with options and values alternating. If the list is odd in
length, the last argument will be ignored. Options can be specified as
instances of ProductOption, or String option ID. Values can be specified
as instances of ProductOptionValue or as strings representing the value
ID. If a parameter is invalid, then the parameter pair is not included in
the generated URL. The returned URL will contain options and values
already selected in the product option model, as well as options and
values specified as method parameters. This includes option values
explicitly selected and implicitly selected by default.
Parameters:
action - The pipeline action, must not be null.
varOptionAndValues - Variable length list of options and values.