com.atlassian.jira.action.issue.customfields.option
Class MockOption

java.lang.Object
  extended by com.atlassian.jira.action.issue.customfields.option.MockOption
All Implemented Interfaces:
Option

public class MockOption
extends Object
implements Option


Field Summary
static Long CHILD_1_ID
           
static Long PARENT_OPTION_ID
           
 
Constructor Summary
MockOption(org.ofbiz.core.entity.GenericValue params)
           
MockOption(Map params)
           
MockOption(Option parentOption, List childOptions, Long sequence, String value, FieldConfig relatedField, Long optionId)
           
 
Method Summary
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)
           
 List getChildOptions()
           
 Boolean getDisabled()
          Get the disabled status.
 org.ofbiz.core.entity.GenericValue getGenericValue()
           
 Long getOptionId()
           
 Option getParentOption()
           
 Long getParentoptionid()
           
 FieldConfig getRelatedCustomField()
           
 Long getSequence()
           
 String getValue()
           
 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()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PARENT_OPTION_ID

public static final Long PARENT_OPTION_ID

CHILD_1_ID

public static final Long CHILD_1_ID
Constructor Detail

MockOption

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

MockOption

public MockOption(Map params)

MockOption

public MockOption(org.ofbiz.core.entity.GenericValue params)
Method Detail

getParentOption

public Option getParentOption()
Specified by:
getParentOption in interface Option

setParentOption

public void setParentOption(Option parentOption)

getChildOptions

public List getChildOptions()
Specified by:
getChildOptions in interface Option

setChildOptions

public void setChildOptions(List childOptions)

getSequence

public Long getSequence()
Specified by:
getSequence in interface Option

setSequence

public void setSequence(Long sequence)
Specified by:
setSequence in interface Option

getValue

public String getValue()
Specified by:
getValue in interface Option

setValue

public void setValue(String value)
Specified by:
setValue in interface Option

getRelatedCustomField

public FieldConfig getRelatedCustomField()
Specified by:
getRelatedCustomField in interface Option

setRelatedCustomField

public void setRelatedCustomField(FieldConfig relatedField)

getOptionId

public Long getOptionId()
Specified by:
getOptionId in interface Option

setOptionId

public void setOptionId(Long optionId)

getDisabled

public Boolean 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 interface Option

setDisabled

public void setDisabled(Boolean disabled)
Specified by:
setDisabled in interface Option

retrieveAllChildren

public List retrieveAllChildren(List listToAddTo)
Specified by:
retrieveAllChildren in interface Option

setAllChildren

public void setAllChildren(List allChildren)

store

public void store()
Specified by:
store in interface Option

getGenericValue

public org.ofbiz.core.entity.GenericValue getGenericValue()
Specified by:
getGenericValue in interface Option

equals

public boolean equals(Object o)
Overrides:
equals in class Object

toString

public String toString()
Overrides:
toString in class Object

getParentoptionid

public Long getParentoptionid()

setParentoptionid

public void setParentoptionid(Long parentoptionid)

_newMockChild2GV

public static MockGenericValue _newMockChild2GV()

_newMockChild1GV

public static MockGenericValue _newMockChild1GV()

_newMockParentOptionGV

public static MockGenericValue _newMockParentOptionGV()

_getMockParentOption

public static MockOption _getMockParentOption()

_getMockChild1Option

public static MockOption _getMockChild1Option()

_getMockChild2Option

public static MockOption _getMockChild2Option()

_getMockParent2Option

public static Option _getMockParent2Option()


Copyright © 2002-2013 Atlassian. All Rights Reserved.