Class DefaultStringDecapitalizer

java.lang.Object
de.hybris.platform.cmsfacades.common.service.impl.DefaultStringDecapitalizer
All Implemented Interfaces:
StringDecapitalizer

public class DefaultStringDecapitalizer extends Object implements StringDecapitalizer
Default implementation of StringDecapitalizer.
  • Constructor Details

    • DefaultStringDecapitalizer

      public DefaultStringDecapitalizer()
  • Method Details

    • decapitalize

      public Optional<String> decapitalize(Class<?> theClass)
      Description copied from interface: StringDecapitalizer
      Decapitalize the string the same way it expects to be used in the deserialization process, for unmarshalling correctness.
      Specified by:
      decapitalize in interface StringDecapitalizer
      Parameters:
      theClass - the java class used to decapitalize the name
      Returns:
      an Optional String with the decapitalized java class string name
    • decapitalizeString

      protected String decapitalizeString(String className)
      Convert class names to XML names based on the rules defined in the JAXB specification to convert the first letter(s) to lower case.
      Parameters:
      className - - the class name to be decapitalized
      Returns:
      the transformed class name