org.exolab.castor.xml.util
public final class DefaultNaming extends XMLNaming
Version: $Revision: 1.1.1.1 $ $Date: 2003/03/03 07:09:47 $
| Field Summary | |
|---|---|
| static short | LOWER_CASE_STYLE
The lower case style with hyphens to separate
words. |
| static short | MIXED_CASE_STYLE
The mixed case style with uppercase characters to
separate words.
|
| Constructor Summary | |
|---|---|
| DefaultNaming()
Creates a new DefaultNaming
| |
| Method Summary | |
|---|---|
| String | createXMLName(Class c)
Creates the XML Name for the given class. |
| void | setStyle(short style)
Sets the style for this DefaultNaming.
|
| String | toXMLName(String name)
Converts the given name to an XML name. |
Parameters: name the String to convert to an XML name c the Class to create the XML Name for
Returns: the xml name representation of the given String
examples:
"Blob" becomes "blob" and "DataSource" becomes "data-source".
the xml name for the given class
DefaultNaming.LOWER_CASE_STYLE DefaultNaming.MIXED_CASE_STYLE
Parameters: style the style to use
Parameters: name the String to convert to an XML name
Returns: the xml name representation of the given String
examples:
"Blob" becomes "blob" and "DataSource" becomes "data-source".
@ see org.exolab.castor.xml.Naming