Search in sources :

Example 1 with OptionImpl

use of org.asqatasun.webapp.entity.option.OptionImpl in project Asqatasun by Asqatasun.

the class OptionFactoryImpl method createOption.

@Override
public Option createOption(OptionFamily optionFamily, String code, String label, String description, boolean isRestriction) {
    Option option = new OptionImpl();
    option.setCode(code);
    option.setDescription(description);
    option.setLabel(label);
    option.setOptionFamily(optionFamily);
    option.setIsRestriction(isRestriction);
    return option;
}
Also used : Option(org.asqatasun.webapp.entity.option.Option) OptionImpl(org.asqatasun.webapp.entity.option.OptionImpl)

Aggregations

Option (org.asqatasun.webapp.entity.option.Option)1 OptionImpl (org.asqatasun.webapp.entity.option.OptionImpl)1