Class DefaultStringDecapitalizer

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.String> decapitalize​(java.lang.Class<?> theClass)
      Decapitalize the string the same way it expects to be used in the deserialization process, for unmarshalling correctness.
      protected java.lang.String decapitalizeString​(java.lang.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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • DefaultStringDecapitalizer

        public DefaultStringDecapitalizer()
    • Method Detail

      • decapitalize

        public java.util.Optional<java.lang.String> decapitalize​(java.lang.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 java.lang.String decapitalizeString​(java.lang.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