org.pentaho.platform.engine.services.solution
Class ActionSequenceCompatibilityFormatter

java.lang.Object
  extended by org.pentaho.platform.engine.services.solution.ActionSequenceCompatibilityFormatter
All Implemented Interfaces:
PropertyNameFormatter

public class ActionSequenceCompatibilityFormatter
extends Object
implements PropertyNameFormatter

This formatter exists to make old-style action sequence inputs, outputs and resource names work with bean utils which adheres to the Java bean spec. All action definition inputs outputs and resources should be named in camel case and dash characters "-" should be avoided. This method will convert a dash-style arg name into camel case and print a warning, or just return the original name if there are no dashes found.

Author:
aphillips

Constructor Summary
ActionSequenceCompatibilityFormatter()
           
 
Method Summary
 String format(String name)
          Format the name to match the bean property name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ActionSequenceCompatibilityFormatter

public ActionSequenceCompatibilityFormatter()
Method Detail

format

public String format(String name)
Description copied from interface: PropertyNameFormatter
Format the name to match the bean property name.

Specified by:
format in interface PropertyNameFormatter
Parameters:
name - the name to translate into the property name
Returns:
the property name to match the bean