org.exolab.castor.xml.util
public final class DefaultNaming extends XMLNaming
Version: $Revision: 6230 $ $Date: 2003-03-03 00:05:44 -0700 (Mon, 03 Mar 2003) $
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: 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".
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 Also: org.exolab.castor.xml.Naming