com.atlassian.jira.issue.customfields.option
Interface Options

All Superinterfaces:
Collection<Option>, Iterable<Option>, List<Option>
All Known Implementing Classes:
OptionsImpl

@PublicApi
public interface Options
extends List<Option>


Method Summary
 Option addOption(Option parent, String value)
           
 void decrementSequence(Option option)
           
 void disableOption(Option option)
           
 void enableOption(Option option)
           
 Option getOptionById(Long optionId)
           
 Option getOptionForValue(String value, Long parentOptionId)
           
 FieldConfig getRelatedFieldConfig()
           
 List<Option> getRootOptions()
          This is the same as getOptions(null)
 void incrementSequence(Option option)
           
 void moveOptionToPosition(Map<Integer,Option> positionsToOptions)
           
 void moveToLastSequence(Option option)
           
 void moveToStartSequence(Option option)
           
 void removeOption(Option option)
           
 void setValue(Option option, String value)
           
 void sortOptionsByValue(Option parentOption)
           
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Method Detail

getRootOptions

List<Option> getRootOptions()
This is the same as getOptions(null)


getOptionById

Option getOptionById(Long optionId)

getOptionForValue

Option getOptionForValue(String value,
                         Long parentOptionId)

addOption

Option addOption(Option parent,
                 String value)

removeOption

void removeOption(Option option)

moveToStartSequence

void moveToStartSequence(Option option)

incrementSequence

void incrementSequence(Option option)

decrementSequence

void decrementSequence(Option option)

moveToLastSequence

void moveToLastSequence(Option option)

setValue

void setValue(Option option,
              String value)

enableOption

void enableOption(Option option)

disableOption

void disableOption(Option option)

getRelatedFieldConfig

FieldConfig getRelatedFieldConfig()

sortOptionsByValue

void sortOptionsByValue(Option parentOption)

moveOptionToPosition

void moveOptionToPosition(Map<Integer,Option> positionsToOptions)


Copyright © 2002-2012 Atlassian. All Rights Reserved.