Class PropertyNamerDUCS

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

public class PropertyNamerDUCS extends Object implements PropertyNamer
Converts property names to dashed-upper-case-start 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.