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()
Creates a new 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.
|
getInstance
public 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 XMLNaming
createXMLName
in class AbstractXMLNaming
c
- the Class to create the XML Name forAbstractXMLNaming
public String toXMLName(String name)
toXMLName
in interface XMLNaming
toXMLName
in class AbstractXMLNaming
name
- the String to convert to an XML nameAbstractXMLNaming
Copyright © 2024. All rights reserved.