Search in sources :

Example 1 with OptionImpl

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

the class OptionFactory method createOption.

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

Example 2 with OptionImpl

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

the class AuditSetUpControllerTest method getOptionElementSet.

private Set<OptionElementImpl> getOptionElementSet() {
    OptionElementImpl oe = new OptionElementImpl();
    OptionImpl option = new OptionImpl();
    option.setCode("");
    oe.setOption(option);
    return Collections.singleton(oe);
}
Also used : OptionElementImpl(org.asqatasun.entity.option.OptionElementImpl) OptionImpl(org.asqatasun.entity.option.OptionImpl)

Aggregations

OptionImpl (org.asqatasun.entity.option.OptionImpl)2 OptionElementImpl (org.asqatasun.entity.option.OptionElementImpl)1