org.apache.ws.jaxme.generator.util
Class JavaNamer

java.lang.Object
  extended by org.apache.ws.jaxme.generator.util.JavaNamer

public class JavaNamer
extends java.lang.Object

Author:
Ias

Field Summary
static char[] PUNCTUATION_CHARS
          punctuation characters defined in JAXB spec
 
Constructor Summary
JavaNamer()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PUNCTUATION_CHARS

public static final char[] PUNCTUATION_CHARS
punctuation characters defined in JAXB spec

Constructor Detail

JavaNamer

public JavaNamer()
Method Detail

isPunctuationCharacter

public static boolean isPunctuationCharacter(char c,
                                             SchemaSG pSchema)
Check whether the given character is a punctuation one or not.

Parameters:
c - character to check out
pSchema - hint for handling underscore
Returns:
true if c belongs to the punctuation characters, otherwise false.

convert

public 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.

Parameters:
pLocalName - a given local name
pSchema - hint for following Java naming conventions and handling underscore
Returns:
the converted name based on the given hints.