public class NameUtil extends Object
Modifier and Type | Field and Description |
---|---|
static char |
AYAH |
static char |
COLON |
static char |
DOT |
static char |
ELHIZB |
static char |
HYPHEN |
static char |
PERIOD |
static char |
TELEIA |
static char |
USCORE |
Constructor and Description |
---|
NameUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
getCharClass(char c,
boolean useJaxRpcRules) |
static String |
getClassNameFromQName(QName qname) |
static String |
getClassNameFromQName(QName qname,
boolean useJaxRpcRules) |
static String |
getNamespaceFromPackage(Class clazz) |
static String |
getPackageFromNamespace(String uri) |
static String |
getPackageFromNamespace(String uri,
boolean useJaxRpcRules) |
static boolean |
isJavaCommonClassName(String word) |
static boolean |
isPunctuation(char c,
boolean useJaxRpcRules) |
static boolean |
isValidJavaIdentifier(String id) |
static String |
lowerCamelCase(String xml_name)
Returns a camel-cased string using the JAXB rules,
where the first component is lowercased.
|
static String |
lowerCamelCase(String xml_name,
boolean useJaxRpcRules,
boolean fixGeneratedName)
Returns a camel-cased string using the JAXB or JAX-RPC rules
|
static void |
main(String[] args) |
static String |
nonExtraKeyword(String word)
Intended to be applied to a lowercase-starting identifier that
may collide with a Java keyword.
|
static String |
nonJavaCommonClassName(String name)
Intended to be applied to an uppercase-starting identifier that
may collide with a java.lang.* classname.
|
static String |
nonJavaKeyword(String word)
Intended to be applied to a lowercase-starting identifier that
may collide with a Java keyword.
|
static List |
splitWords(String name,
boolean useJaxRpcRules) |
static String |
upperCamelCase(String xml_name)
Returns a camel-cased string using the JAXB rules.
|
static String |
upperCamelCase(String xml_name,
boolean useJaxRpcRules)
Returns a camel-cased string, but either JAXB or JAX-RPC rules
are used
|
static String |
upperCaseFirstLetter(String s) |
static String |
upperCaseUnderbar(String xml_name)
Returns a upper-case-and-underbar string using the JAXB rules.
|
public static final char HYPHEN
public static final char PERIOD
public static final char COLON
public static final char USCORE
public static final char DOT
public static final char TELEIA
public static final char AYAH
public static final char ELHIZB
public static boolean isValidJavaIdentifier(String id)
public static String getClassNameFromQName(QName qname, boolean useJaxRpcRules)
public static String getPackageFromNamespace(String uri, boolean useJaxRpcRules)
public static void main(String[] args)
public static String upperCaseUnderbar(String xml_name)
public static String upperCamelCase(String xml_name)
public static String upperCamelCase(String xml_name, boolean useJaxRpcRules)
public static String lowerCamelCase(String xml_name)
public static String lowerCamelCase(String xml_name, boolean useJaxRpcRules, boolean fixGeneratedName)
public static int getCharClass(char c, boolean useJaxRpcRules)
public static boolean isPunctuation(char c, boolean useJaxRpcRules)
public static String nonJavaKeyword(String word)
public static String nonExtraKeyword(String word)
public static String nonJavaCommonClassName(String name)
public static boolean isJavaCommonClassName(String word)
Copyright © 2010 - 2020 Adobe. All Rights Reserved