com.atlassian.jira.projectconfig.rest.global
Class CustomFieldOptionsResource.Option

java.lang.Object
  extended by com.atlassian.jira.projectconfig.rest.global.CustomFieldOptionsResource.Option
All Implemented Interfaces:
SimpleOption<CustomFieldOptionsResource.Option>
Enclosing class:
CustomFieldOptionsResource

public static class CustomFieldOptionsResource.Option
extends Object
implements SimpleOption<CustomFieldOptionsResource.Option>


Constructor Summary
CustomFieldOptionsResource.Option(Long id, String name)
           
 
Method Summary
 List<CustomFieldOptionsResource.Option> getChildOptions()
          Return a list of options that exist under this option (i.e.
 Long getId()
           
 String getName()
           
 Long getOptionId()
          The ID of the option or null if it currently does not have one.
 String getValue()
          The current value of the option.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CustomFieldOptionsResource.Option

public CustomFieldOptionsResource.Option(Long id,
                                         String name)
Method Detail

getId

public Long getId()

getName

public String getName()

getOptionId

public Long getOptionId()
Description copied from interface: SimpleOption
The ID of the option or null if it currently does not have one.

Specified by:
getOptionId in interface SimpleOption<CustomFieldOptionsResource.Option>
Returns:
the ID of the option or null if it does not have one.

getValue

public String getValue()
Description copied from interface: SimpleOption
The current value of the option. This is the option displayed to the user.

Specified by:
getValue in interface SimpleOption<CustomFieldOptionsResource.Option>
Returns:
the value of the option.

getChildOptions

@Nonnull
public List<CustomFieldOptionsResource.Option> getChildOptions()
Description copied from interface: SimpleOption
Return a list of options that exist under this option (i.e. its children).

Specified by:
getChildOptions in interface SimpleOption<CustomFieldOptionsResource.Option>
Returns:
the list of options that exist under this option. An empty list is returned when such options exist.


Copyright © 2002-2014 Atlassian. All Rights Reserved.