public class MockOption extends Object implements Option
| Modifier and Type | Field and Description |
|---|---|
static Long |
CHILD_1_ID |
static Long |
PARENT_OPTION_ID |
| Constructor and Description |
|---|
MockOption(org.ofbiz.core.entity.GenericValue params) |
MockOption(Map params) |
MockOption(Option parentOption,
List childOptions,
Long sequence,
String value,
FieldConfig relatedField,
Long optionId) |
public static final Long PARENT_OPTION_ID
public static final Long CHILD_1_ID
public MockOption(Option parentOption, List childOptions, Long sequence, String value, FieldConfig relatedField, Long optionId)
public MockOption(Map params)
public MockOption(org.ofbiz.core.entity.GenericValue params)
public Option getParentOption()
getParentOption in interface Optionpublic void setParentOption(Option parentOption)
@Nonnull public List<Option> getChildOptions()
OptionNOTE: This method is here is keep the API checker happy (JRADEV-23901).
getChildOptions in interface OptiongetChildOptions in interface SimpleOption<Option>public void setChildOptions(List childOptions)
public Long getSequence()
getSequence in interface Optionpublic void setSequence(Long sequence)
setSequence in interface Optionpublic String getValue()
OptionNOTE: This method is here is keep the API checker happy (JRADEV-23901).
getValue in interface OptiongetValue in interface SimpleOption<Option>public FieldConfig getRelatedCustomField()
getRelatedCustomField in interface Optionpublic void setRelatedCustomField(FieldConfig relatedField)
public Long getOptionId()
OptionNOTE: This method is here is keep the API checker happy (see JRADEV-23901).
getOptionId in interface OptiongetOptionId in interface SimpleOption<Option>public void setOptionId(Long optionId)
public Boolean getDisabled()
OptiongetDisabled in interface Optionpublic void setDisabled(Boolean disabled)
setDisabled in interface Optionpublic List retrieveAllChildren(List listToAddTo)
retrieveAllChildren in interface Optionpublic void setAllChildren(List allChildren)
public org.ofbiz.core.entity.GenericValue getGenericValue()
getGenericValue in interface Optionpublic Long getParentoptionid()
public void setParentoptionid(Long parentoptionid)
public static MockGenericValue _newMockChild2GV()
public static MockGenericValue _newMockChild1GV()
public static MockGenericValue _newMockParentOptionGV()
public static MockOption _getMockParentOption()
public static MockOption _getMockChild1Option()
public static MockOption _getMockChild2Option()
public static Option _getMockParent2Option()
Copyright © 2002-2023 Atlassian. All Rights Reserved.