Class MockOption
java.lang.Object
com.atlassian.jira.action.issue.customfields.option.MockOption
- All Implemented Interfaces:
Option,SimpleOption<Option>
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMockOption(Option parentOption, List<Option> childOptions, Long sequence, String value, FieldConfig relatedField, Long optionId) MockOption(Map params) MockOption(org.ofbiz.core.entity.GenericValue params) -
Method Summary
Modifier and TypeMethodDescriptionstatic MockOptionstatic MockOptionstatic Optionstatic MockOptionstatic MockGenericValuestatic MockGenericValuestatic MockGenericValuebooleanReturn a list of options that exist under this option (i.e.Get the disabled status.org.ofbiz.core.entity.GenericValueThe ID of the option or null if it currently does not have one.Get related CustomField's FieldConfig.getValue()The current value of the option.retrieveAllChildren(List<Option> listToAddTo) voidsetAllChildren(List<Option> allChildren) voidsetChildOptions(List childOptions) voidsetDisabled(Boolean disabled) voidsetOptionId(Long optionId) voidsetParentOption(Option parentOption) voidsetParentoptionid(Long parentoptionid) voidsetRelatedCustomField(FieldConfig relatedField) voidsetSequence(Long sequence) voidvoidstore()toString()static Option
-
Field Details
-
PARENT_OPTION_ID
-
CHILD_1_ID
-
-
Constructor Details
-
MockOption
-
MockOption
-
MockOption
public MockOption(org.ofbiz.core.entity.GenericValue params)
-
-
Method Details
-
value
-
getParentOption
- Specified by:
getParentOptionin interfaceOption
-
getParentOptionId
- Specified by:
getParentOptionIdin interfaceOption
-
setParentOption
-
getChildOptions
Description copied from interface:OptionReturn a list of options that exist under this option (i.e. its children).NOTE: This method is here is keep the API checker happy (JRADEV-23901).
- Specified by:
getChildOptionsin interfaceOption- Specified by:
getChildOptionsin interfaceSimpleOption<Option>- Returns:
- the list of options that exist under this option. An empty list is returned when such options exist.
-
setChildOptions
-
getSequence
- Specified by:
getSequencein interfaceOption
-
setSequence
- Specified by:
setSequencein interfaceOption
-
getValue
Description copied from interface:OptionThe current value of the option. This is the option displayed to the user.NOTE: This method is here is keep the API checker happy (JRADEV-23901).
- Specified by:
getValuein interfaceOption- Specified by:
getValuein interfaceSimpleOption<Option>- Returns:
- the value of the option.
-
setValue
-
getRelatedCustomField
Description copied from interface:OptionGet related CustomField's FieldConfig.- Specified by:
getRelatedCustomFieldin interfaceOption- Returns:
- FieldConfig of a CustomField
-
setRelatedCustomField
-
getOptionId
Description copied from interface:OptionThe ID of the option or null if it currently does not have one.NOTE: This method is here is keep the API checker happy (see JRADEV-23901).
- Specified by:
getOptionIdin interfaceOption- Specified by:
getOptionIdin interfaceSimpleOption<Option>- Returns:
- the ID of the option or null if it does not have one.
-
setOptionId
-
getDisabled
Description copied from interface:OptionGet the disabled status. A disabled option will is not available to be assigned to this associated custom field, It remains valid historically and for searching with.- Specified by:
getDisabledin interfaceOption
-
setDisabled
- Specified by:
setDisabledin interfaceOption
-
retrieveAllChildren
- Specified by:
retrieveAllChildrenin interfaceOption- Parameters:
listToAddTo- the list to add the options to- Returns:
- a list of all descendant options
-
setAllChildren
-
store
public void store() -
getGenericValue
public org.ofbiz.core.entity.GenericValue getGenericValue()- Specified by:
getGenericValuein interfaceOption
-
equals
-
toString
-
getParentoptionid
-
setParentoptionid
-
_newMockChild2GV
-
_newMockChild1GV
-
_newMockParentOptionGV
-
_getMockParentOption
-
_getMockChild1Option
-
_getMockChild2Option
-
_getMockParent2Option
-