com.atlassian.jira.issue.customfields.option
Class OptionsImpl

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended bycom.atlassian.jira.issue.customfields.option.OptionsImpl
All Implemented Interfaces:
java.lang.Cloneable, java.util.Collection, java.util.List, Options, java.util.RandomAccess, java.io.Serializable

public class OptionsImpl
extends java.util.ArrayList
implements Options

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
OptionsImpl(java.util.List options, CustomField relatedCustomField, CollectionReorderer reorderer, OptionsManager optionsManager)
           
 
Method Summary
 Option addOption(Option parent, java.lang.String value)
           
 void decrementSequence(Option option)
           
 Option getOptionById(java.lang.Long optionId)
           
 Option getOptionForValue(java.lang.String value, java.lang.Long parentOptionId)
           
 CustomField getRelatedCustomField()
           
 java.util.Collection getRootOptions()
          This is the same as getOptions(null)
 void incrementSequence(Option option)
           
 void removeOption(Option option)
           
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
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
 

Constructor Detail

OptionsImpl

public OptionsImpl(java.util.List options,
                   CustomField relatedCustomField,
                   CollectionReorderer reorderer,
                   OptionsManager optionsManager)
Method Detail

getRootOptions

public java.util.Collection getRootOptions()
Description copied from interface: Options
This is the same as getOptions(null)

Specified by:
getRootOptions in interface Options
Returns:

getOptionForValue

public Option getOptionForValue(java.lang.String value,
                                java.lang.Long parentOptionId)
Specified by:
getOptionForValue in interface Options

addOption

public Option addOption(Option parent,
                        java.lang.String value)
Specified by:
addOption in interface Options

removeOption

public void removeOption(Option option)
Specified by:
removeOption in interface Options

incrementSequence

public void incrementSequence(Option option)
Specified by:
incrementSequence in interface Options

decrementSequence

public void decrementSequence(Option option)
Specified by:
decrementSequence in interface Options

getOptionById

public Option getOptionById(java.lang.Long optionId)
Specified by:
getOptionById in interface Options

getRelatedCustomField

public CustomField getRelatedCustomField()
Specified by:
getRelatedCustomField in interface Options


Copyright © 2002-2005 Atlassian. All Rights Reserved.