public class NameUtils extends Object
extensions
and
their componentsModifier 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 messageProcessor
hyphenizedValue
- a String in hypenized formhyphenizedValue
in camel case formatpublic static String hyphenize(String camelCaseName)
messageProcessor
would be transformed to message-processor
camelCaseName
- 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 wanttype
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.