public final class DefaultNaming extends AbstractXMLNaming implements 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() |
| Modifier and Type | Method and Description |
|---|---|
String |
createXMLName(Class<?> c)
Deprecated.
extracting name parts from a Class is responsibility of JavaNaming
|
void |
setStyle(short style)
Sets the style for this DefaultNaming.
|
String |
toXMLName(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 String createXMLName(Class<?> c)
createXMLName in interface XMLNamingc - the Class to create the XML Name forpublic String toXMLName(String name)
Copyright © 2016. All rights reserved.