com.atlassian.jira.issue.customfields
Class NumberRangeCustomFieldValueProvider

java.lang.Object
  extended by com.atlassian.jira.issue.customfields.NumberRangeCustomFieldValueProvider
All Implemented Interfaces:
CustomFieldValueProvider

public final class NumberRangeCustomFieldValueProvider
extends Object
implements CustomFieldValueProvider

An implementation of the CustomFieldValueProvider for retreiving number range values.

Since:
v4.0

Constructor Summary
NumberRangeCustomFieldValueProvider()
           
 
Method Summary
 String getGreaterThanKey()
           
 String getLessThanKey()
           
 Object getStringValue(CustomField customField, FieldValuesHolder fieldValuesHolder)
          Provides a string value representation of the value specified for this searcher.
 Object getValue(CustomField customField, FieldValuesHolder fieldValuesHolder)
          Provides an object value representation of the value specified for this searcher.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberRangeCustomFieldValueProvider

public NumberRangeCustomFieldValueProvider()
Method Detail

getStringValue

public Object getStringValue(CustomField customField,
                             FieldValuesHolder fieldValuesHolder)
Description copied from interface: CustomFieldValueProvider
Provides a string value representation of the value specified for this searcher. The result is used to populate the velocity context with the variable "value".

Specified by:
getStringValue in interface CustomFieldValueProvider
Parameters:
customField - the custom field that is using this searcher.
fieldValuesHolder - contains values populated by the populate methods of the input transformer.
Returns:
a string value representation of the value specified for this searcher.

getValue

public Object getValue(CustomField customField,
                       FieldValuesHolder fieldValuesHolder)
Description copied from interface: CustomFieldValueProvider
Provides an object value representation of the value specified for this searcher. The result is used to populate the velocity context with the variable "valueObject".

Specified by:
getValue in interface CustomFieldValueProvider
Parameters:
customField - the custom field that is using this searcher.
fieldValuesHolder - contains values populated by the populate methods of the input transformer.
Returns:
an object value representation of the value specified for this searcher.

getGreaterThanKey

public String getGreaterThanKey()

getLessThanKey

public String getLessThanKey()


Copyright © 2002-2013 Atlassian. All Rights Reserved.