com.atlassian.jira.issue.customfields.option
Interface SimpleOption<T extends SimpleOption<T>>

All Known Subinterfaces:
Option
All Known Implementing Classes:
CustomFieldOptionsResource.Option, LazyLoadedOption, MockOption, MockSimpleOption

@ExperimentalApi
public interface SimpleOption<T extends SimpleOption<T>>

Represents the basic properties of a custom field option in JIRA. The Option is more heavy weight interface that can be used when the options actually exist in the database.

Since:
v6.2

Method Summary
 List<T> getChildOptions()
          Return a list of options that exist under this option (i.e.
 Long getOptionId()
          The ID of the option or null if it currently does not have one.
 String getValue()
          The current value of the option.
 

Method Detail

getOptionId

@Nullable
Long getOptionId()
The ID of the option or null if it currently does not have one.

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

getValue

String getValue()
The current value of the option. This is the option displayed to the user.

Returns:
the value of the option.

getChildOptions

@Nonnull
List<T> getChildOptions()
Return a list of options that exist under this option (i.e. its children).

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.