Static Public Member Functions | Static Public Attributes

org.exolab.castor.xml.JavaNaming Class Reference

List of all members.

Static Public Member Functions

static boolean isKeyword (String name)
static boolean isValidJavaIdentifier (String string)
static String toJavaClassName (String name)
static String toJavaMemberName (String name)
static String toJavaMemberName (String name, boolean useKeywordSubstitutions)
static String packageToPath (String packageName)

Static Public Attributes

static final String UPPER_CASE_AFTER_UNDERSCORE_PROPERTY = "org.exolab.castor.xml.JavaNaming.upperCaseAfterUnderscore"
static boolean upperCaseAfterUnderscore = false

Detailed Description

This class converts XML Names to proper Java names. Also see Unmarshaller and Marshaller since they use some of their own methods for now.

Author:
Keith Visco
Version:
Revision:
1.1.1.1
Date:
2003/03/03 07:09:10

Member Function Documentation

static boolean org.exolab.castor.xml.JavaNaming.isKeyword ( String  name  )  [static]

Returns true if the given String is a Java keyword which will cause a problem when used as a variable name

Referenced by org.exolab.castor.xml.JavaNaming.isValidJavaIdentifier(), and org.exolab.castor.xml.JavaNaming.toJavaMemberName().

static boolean org.exolab.castor.xml.JavaNaming.isValidJavaIdentifier ( String  string  )  [static]

Returns true if the given String matches the production of a valid Java identifier

Parameters:
string,the String to check the production of
Returns:
true if the given String matches the production of a valid Java name, otherwise false

References org.exolab.castor.xml.JavaNaming.isKeyword().

static String org.exolab.castor.xml.JavaNaming.packageToPath ( String  packageName  )  [static]

Converts the given Package name to it's corresponding Path. The path will be a relative path.

static String org.exolab.castor.xml.JavaNaming.toJavaClassName ( String  name  )  [static]
static String org.exolab.castor.xml.JavaNaming.toJavaMemberName ( String  name,
boolean  useKeywordSubstitutions 
) [static]
static String org.exolab.castor.xml.JavaNaming.toJavaMemberName ( String  name  )  [static]

Member Data Documentation

final String org.exolab.castor.xml.JavaNaming.UPPER_CASE_AFTER_UNDERSCORE_PROPERTY = "org.exolab.castor.xml.JavaNaming.upperCaseAfterUnderscore" [static]

The property name to use in the castor.properties file to specify the value of the upperCaseAfterUnderscore variable.

Used for backward compatibility, if you wish to be backward compatible with 0.9.3.9 and earlier set this boolean to true.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations Properties