org.apache.ws.jaxme.generator.util
Class JavaNamer
java.lang.Object
org.apache.ws.jaxme.generator.util.JavaNamer
public class JavaNamer
extends java.lang.Object
static String | convert(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.
|
PUNCTUATION_CHARS
public static final char[] PUNCTUATION_CHARS
punctuation characters defined in JAXB spec
convert
public static String convert(String pLocalName,
SchemaSG pSchema)
Convert a local part name in XML to a class or field name in Java.
pLocalName
- a given local namepSchema
- hint for following Java naming conventions and handling underscore
- the converted name based on the given hints.
isPunctuationCharacter
public static boolean isPunctuationCharacter(char c,
SchemaSG pSchema)
Check whether the given character is a punctuation one or not.
c
- character to check outpSchema
- hint for handling underscore
- true if c belongs to the punctuation characters, otherwise false.