Class PropertyNamerDLC

java.lang.Object
org.apache.juneau.commons.bean.PropertyNamerDLC
All Implemented Interfaces:
PropertyNamer

public class PropertyNamerDLC extends Object implements PropertyNamer
Converts property names to dashed-lower-case format.
Example:
  • "fooBar" -> "foo-bar"
  • "fooBarURL" -> "foo-bar-url"
  • "FooBarURL" -> "foo-bar-url"
  • Field Details

  • Constructor Details

  • Method Details

    • getPropertyName

      public String getPropertyName(String name)
      Description copied from interface: PropertyNamer
      Convert the specified default property name to some other value.
      Specified by:
      getPropertyName in interface PropertyNamer
      Parameters:
      name - The original bean property name. Can be null (implementations should then return null).
      Returns:
      The converted property name, or null if the input was null.