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 Option
public void setParentOption(Option parentOption)
@Nonnull public List<Option> getChildOptions()
Option
NOTE: This method is here is keep the API checker happy (JRADEV-23901).
getChildOptions
in interface Option
getChildOptions
in interface SimpleOption<Option>
public void setChildOptions(List childOptions)
public Long getSequence()
getSequence
in interface Option
public void setSequence(Long sequence)
setSequence
in interface Option
public String getValue()
Option
NOTE: This method is here is keep the API checker happy (JRADEV-23901).
getValue
in interface Option
getValue
in interface SimpleOption<Option>
public FieldConfig getRelatedCustomField()
getRelatedCustomField
in interface Option
public void setRelatedCustomField(FieldConfig relatedField)
public Long getOptionId()
Option
NOTE: This method is here is keep the API checker happy (see JRADEV-23901).
getOptionId
in interface Option
getOptionId
in interface SimpleOption<Option>
public void setOptionId(Long optionId)
public Boolean getDisabled()
Option
getDisabled
in interface Option
public void setDisabled(Boolean disabled)
setDisabled
in interface Option
public List retrieveAllChildren(List listToAddTo)
retrieveAllChildren
in interface Option
public void setAllChildren(List allChildren)
public org.ofbiz.core.entity.GenericValue getGenericValue()
getGenericValue
in interface Option
public 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-2021 Atlassian. All Rights Reserved.