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
-
-
Constructor Summary
Constructors Constructor Description ActionSequenceCompatibilityFormatter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected String
compatibilityToCamelCase(String name)
String
format(String name)
Format the name to match the bean property name.
-
-
-
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 interfacePropertyNameFormatter
- Parameters:
name
- the name to translate into the property name- Returns:
- the property name to match the bean
-
-