org.kuali.rice.kew.messaging
Class ParameterTranslator

java.lang.Object
  extended by org.kuali.rice.kew.messaging.ParameterTranslator

public class ParameterTranslator
extends Object

A simple utility class which can handle translated a comma-seperated String into an array of String paramters and vice-versa.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Field Summary
private static String COMMA_ESCAPE
           
private static String COMMA_REGEXP
           
private static String SLASH_ESCAPE
           
private static String SLASH_REGEXP
           
private  String untranslatedString
           
 
Constructor Summary
ParameterTranslator()
           
ParameterTranslator(String untranslatedString)
           
 
Method Summary
 void addParameter(String value)
           
private  String escape(String value)
           
 String[] getParameters()
           
 String getUntranslatedString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SLASH_REGEXP

private static final String SLASH_REGEXP
See Also:
Constant Field Values

SLASH_ESCAPE

private static final String SLASH_ESCAPE
See Also:
Constant Field Values

COMMA_REGEXP

private static final String COMMA_REGEXP
See Also:
Constant Field Values

COMMA_ESCAPE

private static final String COMMA_ESCAPE
See Also:
Constant Field Values

untranslatedString

private String untranslatedString
Constructor Detail

ParameterTranslator

public ParameterTranslator()

ParameterTranslator

public ParameterTranslator(String untranslatedString)
Method Detail

addParameter

public void addParameter(String value)

escape

private String escape(String value)

getUntranslatedString

public String getUntranslatedString()

getParameters

public String[] getParameters()


Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.