com.lifecde.jxm
Class JavaNaming

java.lang.Object
  |
  +--com.lifecde.jxm.JavaNaming

public class JavaNaming
extends java.lang.Object

Convert XML names to Java names.

Author:
Brian King

Constructor Summary
JavaNaming()
           
 
Method Summary
 java.lang.String attributeToGetter(java.lang.String name)
          Given an XML attribute name return a Java accessor method name.
 java.lang.String attributeToSetter(java.lang.String name)
          Given an XML attribute name return a Java accessor method name.
 java.lang.String javaName(java.lang.String name)
          Go from underscore separated words to Capitalization separated words.
 java.lang.String relationshipToMethod(java.lang.String name)
          Given an XML element name return a Java accessor method name.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JavaNaming

public JavaNaming()
Method Detail

attributeToGetter

public java.lang.String attributeToGetter(java.lang.String name)
Given an XML attribute name return a Java accessor method name.


attributeToSetter

public java.lang.String attributeToSetter(java.lang.String name)
Given an XML attribute name return a Java accessor method name.


relationshipToMethod

public java.lang.String relationshipToMethod(java.lang.String name)
Given an XML element name return a Java accessor method name.


javaName

public java.lang.String javaName(java.lang.String name)
Go from underscore separated words to Capitalization separated words.