org.itracker.services.util
Class Convert

java.lang.Object
  extended by org.itracker.services.util.Convert

public class Convert
extends Object


Constructor Summary
Convert()
           
 
Method Summary
static List<NameValuePair> componentsToNameValuePairs(List<Component> components)
          Converts an array of ComponentModels to NameValuePairs
static List<NameValuePair> customFieldOptionsToNameValuePairs(List<CustomFieldValue> options)
          Converts an array of CustomFieldValueModels to NameValuePairs
static List<NameValuePair> customFieldOptionsToNameValuePairs(List<CustomFieldValue> options, Locale locale)
          Converts an array of CustomFieldValueModels to NameValuePairs
static String[] stringToArray(String input)
           
static List<NameValuePair> usersToNameValuePairs(List<User> users)
          Converts an array of UserModels to NameValuePairs
static List<NameValuePair> versionsToNameValuePairs(List<Version> versions)
          Converts an array of VersionModels to NameValuePairs
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Convert

public Convert()
Method Detail

customFieldOptionsToNameValuePairs

public static List<NameValuePair> customFieldOptionsToNameValuePairs(List<CustomFieldValue> options)
Converts an array of CustomFieldValueModels to NameValuePairs

Parameters:
options - the array of CustomFieldValueModels to convert
Returns:
the new NameValuePair array

customFieldOptionsToNameValuePairs

public static List<NameValuePair> customFieldOptionsToNameValuePairs(List<CustomFieldValue> options,
                                                                     Locale locale)
Converts an array of CustomFieldValueModels to NameValuePairs

Parameters:
options - the array of CustomFieldValueModels to convert
Returns:
the new NameValuePair array

usersToNameValuePairs

public static List<NameValuePair> usersToNameValuePairs(List<User> users)
Converts an array of UserModels to NameValuePairs

Parameters:
options - the array of UserModels to convert
Returns:
the new NameValuePair array

componentsToNameValuePairs

public static List<NameValuePair> componentsToNameValuePairs(List<Component> components)
Converts an array of ComponentModels to NameValuePairs

Parameters:
options - the array of ComponentModels to convert
Returns:
the new NameValuePair array

versionsToNameValuePairs

public static List<NameValuePair> versionsToNameValuePairs(List<Version> versions)
Converts an array of VersionModels to NameValuePairs

Parameters:
options - the array of VersionModels to convert
Returns:
the new NameValuePair array

stringToArray

public static String[] stringToArray(String input)


Copyright © 2002-2012 itracker. All Rights Reserved.