|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.xmlbeans.impl.common.NameUtil
public class NameUtil
Field Summary | |
---|---|
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 Summary | |
---|---|
NameUtil()
|
Method Summary | |
---|---|
static int |
getCharClass(char c,
boolean useJaxRpcRules)
|
static java.lang.String |
getClassNameFromQName(javax.xml.namespace.QName qname)
|
static java.lang.String |
getClassNameFromQName(javax.xml.namespace.QName qname,
boolean useJaxRpcRules)
|
static java.lang.String |
getNamespaceFromPackage(java.lang.Class clazz)
|
static java.lang.String |
getPackageFromNamespace(java.lang.String uri)
|
static java.lang.String |
getPackageFromNamespace(java.lang.String uri,
boolean useJaxRpcRules)
|
static boolean |
isJavaCommonClassName(java.lang.String word)
|
static boolean |
isPunctuation(char c,
boolean useJaxRpcRules)
|
static boolean |
isValidJavaIdentifier(java.lang.String id)
|
static java.lang.String |
lowerCamelCase(java.lang.String xml_name)
Returns a camel-cased string using the JAXB rules, where the first component is lowercased. |
static java.lang.String |
lowerCamelCase(java.lang.String xml_name,
boolean useJaxRpcRules,
boolean fixGeneratedName)
Returns a camel-cased string using the JAXB or JAX-RPC rules |
static void |
main(java.lang.String[] args)
|
static java.lang.String |
nonExtraKeyword(java.lang.String word)
Intended to be applied to a lowercase-starting identifier that may collide with a Java keyword. |
static java.lang.String |
nonJavaCommonClassName(java.lang.String name)
Intended to be applied to an uppercase-starting identifier that may collide with a java.lang.* classname. |
static java.lang.String |
nonJavaKeyword(java.lang.String word)
Intended to be applied to a lowercase-starting identifier that may collide with a Java keyword. |
static java.util.List |
splitWords(java.lang.String name,
boolean useJaxRpcRules)
|
static java.lang.String |
upperCamelCase(java.lang.String xml_name)
Returns a camel-cased string using the JAXB rules. |
static java.lang.String |
upperCamelCase(java.lang.String xml_name,
boolean useJaxRpcRules)
Returns a camel-cased string, but either JAXB or JAX-RPC rules are used |
static java.lang.String |
upperCaseFirstLetter(java.lang.String s)
|
static java.lang.String |
upperCaseUnderbar(java.lang.String xml_name)
Returns a upper-case-and-underbar string using the JAXB rules. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public NameUtil()
Method Detail |
---|
public static boolean isValidJavaIdentifier(java.lang.String id)
public static java.lang.String getClassNameFromQName(javax.xml.namespace.QName qname)
public static java.lang.String getClassNameFromQName(javax.xml.namespace.QName qname, boolean useJaxRpcRules)
public static java.lang.String getNamespaceFromPackage(java.lang.Class clazz)
public static java.lang.String getPackageFromNamespace(java.lang.String uri)
public static java.lang.String getPackageFromNamespace(java.lang.String uri, boolean useJaxRpcRules)
public static void main(java.lang.String[] args)
public static java.lang.String upperCaseUnderbar(java.lang.String xml_name)
public static java.lang.String upperCamelCase(java.lang.String xml_name)
public static java.lang.String upperCamelCase(java.lang.String xml_name, boolean useJaxRpcRules)
public static java.lang.String lowerCamelCase(java.lang.String xml_name)
public static java.lang.String lowerCamelCase(java.lang.String xml_name, boolean useJaxRpcRules, boolean fixGeneratedName)
public static java.lang.String upperCaseFirstLetter(java.lang.String s)
public static java.util.List splitWords(java.lang.String name, boolean useJaxRpcRules)
public static int getCharClass(char c, boolean useJaxRpcRules)
public static boolean isPunctuation(char c, boolean useJaxRpcRules)
public static java.lang.String nonJavaKeyword(java.lang.String word)
public static java.lang.String nonExtraKeyword(java.lang.String word)
public static java.lang.String nonJavaCommonClassName(java.lang.String name)
public static boolean isJavaCommonClassName(java.lang.String word)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |