public class NameUtils extends Object
extensions and
their components| Modifier and Type | Method and Description |
|---|---|
static String |
camel(String hyphenizedValue)
Transforms a hyphenized value into a camel case one.
|
static String |
getTopLevelTypeName(org.mule.extension.introspection.DataType type)
Returns the name of the give top level
type. |
static String |
hyphenize(String camelCaseName)
Transforms a camel case value into a hyphenizedone.
|
static boolean |
isUncountable(String word)
Return true if the word is uncountable.
|
static String |
pluralize(String word)
Return the pluralized version of a word.
|
static String |
singularize(String word)
Return the singularized version of a word.
|
public static String camel(String hyphenizedValue)
message-processor would be transformed to messageProcessorhyphenizedValue - a String in hypenized formhyphenizedValue in camel case formatpublic static String hyphenize(String camelCaseName)
messageProcessor would be transformed to message-processorcamelCaseName - a String in camel case formcamelCaseName in hypenized formpublic static String pluralize(String word)
word - The wordpublic static String singularize(String word)
word - The wordpublic static boolean isUncountable(String word)
word - The wordpublic static String getTopLevelTypeName(org.mule.extension.introspection.DataType type)
type.
If the type's DataType.getRawType() contains the Alias
annotation, then the Alias.value() is returned. Otherwise, the raw
type's Class.getName() is returnedtype - the DataType which name you wanttypeCopyright © 2003–2023 MuleSoft, Inc.. All rights reserved.