com.lifecde.jxm
Class XMLToClassMap

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

public class XMLToClassMap
extends java.lang.Object

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

Field Summary
protected static Log log
           
protected  JavaNaming namePolicy
          XML to Java name translation
 
Constructor Summary
XMLToClassMap()
           
 
Method Summary
 java.lang.String getClassName(java.lang.String xmlName)
          Get the XML element name for the given class.
 FieldMap getField(java.lang.Object obj, java.lang.String name)
           
 java.lang.String getIdName()
          Get the name of the ID attribute.
 boolean isCollection(java.lang.Class c)
          Does the Class represent a collection?
protected  boolean isSimpleType(java.lang.Class c)
          Return true if the Class is a primitive, such as String, Character, Byte, etc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

log

protected static Log log

namePolicy

protected JavaNaming namePolicy
XML to Java name translation

Constructor Detail

XMLToClassMap

public XMLToClassMap()
Method Detail

getIdName

public java.lang.String getIdName()
Get the name of the ID attribute. Return null if there is none.


getClassName

public java.lang.String getClassName(java.lang.String xmlName)
Get the XML element name for the given class.


getField

public FieldMap getField(java.lang.Object obj,
                         java.lang.String name)

isCollection

public boolean isCollection(java.lang.Class c)
Does the Class represent a collection?


isSimpleType

protected boolean isSimpleType(java.lang.Class c)
Return true if the Class is a primitive, such as String, Character, Byte, etc.