org.pentaho.platform.engine.services.solution
Class ActionSequenceCompatibilityFormatter
java.lang.Object
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
Method Summary |
String |
format(String name)
Format the name to match the bean property name. |
ActionSequenceCompatibilityFormatter
public ActionSequenceCompatibilityFormatter()
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