com.force.sdk.jpa.query.formatter
Class MultiPicklistFormatter

java.lang.Object
  extended by com.force.sdk.jpa.query.formatter.MultiPicklistFormatter

public class MultiPicklistFormatter
extends Object

This is a convenience class to format a multipicklist value i.e. 'AAA;BBB,CCC' will be formatted as 'AAA;BBB','CCC' for use in the expression of a query.

Author:
Fiaz Hossain

Constructor Summary
MultiPicklistFormatter(String value)
          Create a formatter for the given string.
 
Method Summary
 String getFormattedString()
          Formats the string.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MultiPicklistFormatter

public MultiPicklistFormatter(String value)
Create a formatter for the given string.

Parameters:
value - the string to be formatted.
Method Detail

getFormattedString

public String getFormattedString()
Formats the string.

Returns:
a string that separates groups of picklist values by ','

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2011. All Rights Reserved.