|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.exolab.castor.xml.XMLNaming
org.exolab.castor.xml.util.DefaultNaming
public final class DefaultNaming
The default implementation of org.exolab.castor.xml.Naming
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 | |
---|---|
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. |
Methods inherited from class org.exolab.castor.xml.XMLNaming |
---|
getInstance |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final short LOWER_CASE_STYLE
public static final short MIXED_CASE_STYLE
Constructor Detail |
---|
public DefaultNaming()
Method Detail |
---|
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 XMLNaming
name
- the String to convert to an XML namec
- the Class to create the XML Name for
XMLNaming
public java.lang.String toXMLName(java.lang.String name)
toXMLName
in class XMLNaming
name
- the String to convert to an XML name
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |