com.lifecde.jxm
Class XMLNaming

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

public class XMLNaming
extends java.lang.Object

Convert Java names to XML names.

Author:
Brian King (brian.king@lifecde.com)

Constructor Summary
XMLNaming()
           
 
Method Summary
 java.lang.String className(java.lang.String name)
          Given a Java class Name return an XML element or attribute name.
 java.lang.String methodToAttribute(java.lang.String name)
          Given a Java accessor method name return an XML attribute name.
 java.lang.String xmlName(java.lang.String name)
          Go from Capitalization separated words to underscore separated words.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLNaming

public XMLNaming()
Method Detail

className

public java.lang.String className(java.lang.String name)
Given a Java class Name return an XML element or attribute name.


methodToAttribute

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


xmlName

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