Class 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 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
      • compatibilityToCamelCase

        protected String compatibilityToCamelCase​(String name)