public final class

SingleValueCustomFieldValueProvider

extends Object
implements CustomFieldValueProvider
java.lang.Object
   ↳ com.atlassian.jira.issue.customfields.SingleValueCustomFieldValueProvider

Class Overview

An implementation of the CustomFieldValueProvider for retreiving single values. If a holder contains a non-empty lsit the first value is returned.

Summary

Public Constructors
SingleValueCustomFieldValueProvider()
Public Methods
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.
[Expand]
Inherited Methods
From class java.lang.Object
From interface com.atlassian.jira.issue.customfields.CustomFieldValueProvider

Public Constructors

public SingleValueCustomFieldValueProvider ()

Public Methods

public Object getStringValue (CustomField customField, FieldValuesHolder fieldValuesHolder)

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".

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.

public Object getValue (CustomField customField, FieldValuesHolder fieldValuesHolder)

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".

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.