public final class DefaultNaming extends XMLNaming
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
DefaultNaming()
Creates a new DefaultNaming
|
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
createXMLName(java.lang.Class c)
Creates the XML Name for the given class.
|
void |
setStyle(short style)
Sets the style for this DefaultNaming.
|
java.lang.String |
toXMLName(java.lang.String name)
Converts the given name to an XML name.
|
getInstancepublic static final short LOWER_CASE_STYLE
public static final short MIXED_CASE_STYLE
public void setStyle(short style)
DefaultNaming.LOWER_CASE_STYLE DefaultNaming.MIXED_CASE_STYLE
style - the style to usepublic java.lang.String createXMLName(java.lang.Class c)
createXMLName in class XMLNamingc - the Class to create the XML Name forXMLNamingpublic java.lang.String toXMLName(java.lang.String name)
Intalio Inc. (C) 1999-2006. All rights reserved http://www.intalio.com