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 MockOption
static MockOption
static Option
static MockOption
static MockGenericValue
static MockGenericValue
static MockGenericValue
boolean
Return a list of options that exist under this option (i.e.Get the disabled status.org.ofbiz.core.entity.GenericValue
The 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) void
setAllChildren
(List<Option> allChildren) void
setChildOptions
(List childOptions) void
setDisabled
(Boolean disabled) void
setOptionId
(Long optionId) void
setParentOption
(Option parentOption) void
setParentoptionid
(Long parentoptionid) void
setRelatedCustomField
(FieldConfig relatedField) void
setSequence
(Long sequence) void
void
store()
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:
getParentOption
in interfaceOption
-
getParentOptionId
- Specified by:
getParentOptionId
in interfaceOption
-
setParentOption
-
getChildOptions
Description copied from interface:Option
Return 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:
getChildOptions
in interfaceOption
- Specified by:
getChildOptions
in 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:
getSequence
in interfaceOption
-
setSequence
- Specified by:
setSequence
in interfaceOption
-
getValue
Description copied from interface:Option
The 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:
getValue
in interfaceOption
- Specified by:
getValue
in interfaceSimpleOption<Option>
- Returns:
- the value of the option.
-
setValue
-
getRelatedCustomField
Description copied from interface:Option
Get related CustomField's FieldConfig.- Specified by:
getRelatedCustomField
in interfaceOption
- Returns:
- FieldConfig of a CustomField
-
setRelatedCustomField
-
getOptionId
Description copied from interface:Option
The 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:
getOptionId
in interfaceOption
- Specified by:
getOptionId
in interfaceSimpleOption<Option>
- Returns:
- the ID of the option or null if it does not have one.
-
setOptionId
-
getDisabled
Description copied from interface:Option
Get 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:
getDisabled
in interfaceOption
-
setDisabled
- Specified by:
setDisabled
in interfaceOption
-
retrieveAllChildren
- Specified by:
retrieveAllChildren
in 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:
getGenericValue
in interfaceOption
-
equals
-
toString
-
getParentoptionid
-
setParentoptionid
-
_newMockChild2GV
-
_newMockChild1GV
-
_newMockParentOptionGV
-
_getMockParentOption
-
_getMockChild1Option
-
_getMockChild2Option
-
_getMockParent2Option
-