Class DefaultStringDecapitalizer
- java.lang.Object
-
- de.hybris.platform.cmsfacades.common.service.impl.DefaultStringDecapitalizer
-
- All Implemented Interfaces:
StringDecapitalizer
public class DefaultStringDecapitalizer extends java.lang.Object implements StringDecapitalizer
Default implementation ofStringDecapitalizer.
-
-
Constructor Summary
Constructors Constructor Description 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.StringdecapitalizeString(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.
-
-
-
Method Detail
-
decapitalize
public java.util.Optional<java.lang.String> decapitalize(java.lang.Class<?> theClass)
Description copied from interface:StringDecapitalizerDecapitalize the string the same way it expects to be used in the deserialization process, for unmarshalling correctness.- Specified by:
decapitalizein interfaceStringDecapitalizer- Parameters:
theClass- the java class used to decapitalize the name- Returns:
- an
OptionalString 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
-
-