public class

MockOption

extends Object
implements Option
java.lang.Object
   ↳ com.atlassian.jira.action.issue.customfields.option.MockOption

Summary

Fields
public static final Long CHILD_1_ID
public static final Long PARENT_OPTION_ID
Public Constructors
MockOption(Option parentOption, List childOptions, Long sequence, String value, FieldConfig relatedField, Long optionId)
MockOption(Map params)
MockOption(GenericValue params)
Public Methods
static MockOption _getMockChild1Option()
static MockOption _getMockChild2Option()
static Option _getMockParent2Option()
static MockOption _getMockParentOption()
static MockGenericValue _newMockChild1GV()
static MockGenericValue _newMockChild2GV()
static MockGenericValue _newMockParentOptionGV()
boolean equals(Object o)
@Nonnull List getChildOptions()
Return a list of options that exist under this option (i.e.

NOTE: This method is here is keep the API checker happy (JRADEV-23901).

Boolean getDisabled()
Get the disabled status.
GenericValue getGenericValue()
Long getOptionId()
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).

Option getParentOption()
Long getParentoptionid()
FieldConfig getRelatedCustomField()
Long getSequence()
String getValue()
The current value of the option.

NOTE: This method is here is keep the API checker happy (JRADEV-23901).

List retrieveAllChildren(List listToAddTo)
void setAllChildren(List 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 setValue(String value)
void store()
String toString()
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.customfields.option.Option
From interface com.atlassian.jira.issue.customfields.option.SimpleOption

Fields

public static final Long CHILD_1_ID

public static final Long PARENT_OPTION_ID

Public Constructors

public MockOption (Option parentOption, List childOptions, Long sequence, String value, FieldConfig relatedField, Long optionId)

public MockOption (Map params)

public MockOption (GenericValue params)

Public Methods

public static MockOption _getMockChild1Option ()

public static MockOption _getMockChild2Option ()

public static Option _getMockParent2Option ()

public static MockOption _getMockParentOption ()

public static MockGenericValue _newMockChild1GV ()

public static MockGenericValue _newMockChild2GV ()

public static MockGenericValue _newMockParentOptionGV ()

public boolean equals (Object o)

@Nonnull public List getChildOptions ()

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).

Returns
  • the list of options that exist under this option. An empty list is returned when such options exist.

public Boolean getDisabled ()

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.

public GenericValue getGenericValue ()

public Long getOptionId ()

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).

Returns
  • the ID of the option or null if it does not have one.

public Option getParentOption ()

public Long getParentoptionid ()

public FieldConfig getRelatedCustomField ()

public Long getSequence ()

public String getValue ()

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).

Returns
  • the value of the option.

public List retrieveAllChildren (List listToAddTo)

public void setAllChildren (List allChildren)

public void setChildOptions (List childOptions)

public void setDisabled (Boolean disabled)

public void setOptionId (Long optionId)

public void setParentOption (Option parentOption)

public void setParentoptionid (Long parentoptionid)

public void setRelatedCustomField (FieldConfig relatedField)

public void setSequence (Long sequence)

public void setValue (String value)

public void store ()

public String toString ()