com.atlassian.jira.issue.statistics.util
Class ObjectToFieldValueMapper
java.lang.Object
com.atlassian.jira.issue.statistics.util.ObjectToFieldValueMapper
public class ObjectToFieldValueMapper
- extends Object
Converts a given object returned from a StatisticsMapperWrapper
result set into an appropriate form, e.g. a label for a pie chart. Determines what the type is and invokes
the appropriate method on a transformer for conversion
- Since:
- v4.1
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ObjectToFieldValueMapper
public ObjectToFieldValueMapper()
transform
public static <T> T transform(String fieldType,
Object input,
String url,
FieldValueToDisplayTransformer<T> transformer)
- Transforms the object in stats result set into an appropriate type specified by the given
transformer.
- Type Parameters:
T
- the conversion result type, e.g. a string or a StatsMarkup- Parameters:
fieldType
- the fieldType the statsMapperWrapper was created forinput
- the object to converturl
- an optional url to associate with the objecttransformer
- the transformer to do the actual conversion. The return type is determined by this object
- Returns:
- the result of the conversion
Copyright © 2002-2013 Atlassian. All Rights Reserved.