public class JavaNamer
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static char[] |
PUNCTUATION_CHARS
punctuation characters defined in JAXB spec
|
Constructor and Description |
---|
JavaNamer() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
convert(java.lang.String pLocalName,
SchemaSG pSchema)
Convert a local part name in XML to a class or field name in Java.
|
static boolean |
isPunctuationCharacter(char c,
SchemaSG pSchema)
Check whether the given character is a punctuation one or not.
|
public static final char[] PUNCTUATION_CHARS
public static boolean isPunctuationCharacter(char c, SchemaSG pSchema)
c
- character to check outpSchema
- hint for handling underscorepublic static java.lang.String convert(java.lang.String pLocalName, SchemaSG pSchema)
pLocalName
- a given local namepSchema
- hint for following Java naming conventions and handling underscore