|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.exolab.castor.xml.JavaNaming
This class converts XML Names to proper Java names. Also see Unmarshaller and Marshaller since they use some of their own methods for now.
Field Summary | |
static java.lang.String |
UPPER_CASE_AFTER_UNDERSCORE_PROPERTY
The property name to use in the castor.properties file to specify the value of the upperCaseAfterUnderscore variable. |
static boolean |
upperCaseAfterUnderscore
Used for backward compatibility, if you wish to be backward compatible with 0.9.3.9 and earlier set this boolean to true. |
Method Summary | |
static boolean |
isKeyword(java.lang.String name)
Returns true if the given String is a Java keyword which will cause a problem when used as a variable name |
static boolean |
isValidJavaIdentifier(java.lang.String string)
Returns true if the given String matches the production of a valid Java identifier |
static java.lang.String |
packageToPath(java.lang.String packageName)
Converts the given Package name to it's corresponding Path. |
static java.lang.String |
toJavaClassName(java.lang.String name)
|
static java.lang.String |
toJavaMemberName(java.lang.String name)
|
static java.lang.String |
toJavaMemberName(java.lang.String name,
boolean useKeywordSubstitutions)
|
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String UPPER_CASE_AFTER_UNDERSCORE_PROPERTY
upperCaseAfterUnderscore
variable.
public static boolean upperCaseAfterUnderscore
Method Detail |
public static boolean isKeyword(java.lang.String name)
public static boolean isValidJavaIdentifier(java.lang.String string)
public static java.lang.String toJavaClassName(java.lang.String name)
public static java.lang.String toJavaMemberName(java.lang.String name)
public static java.lang.String toJavaMemberName(java.lang.String name, boolean useKeywordSubstitutions)
public static java.lang.String packageToPath(java.lang.String packageName)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |