private Class getClassForElementName ( String name ) { Class clazz = ( Class ) nameToClass . get ( name ) ; if ( clazz != null ) { return clazz ; } if ( defaultPackage != null ) { try { return Class . forName ( defaultPackage + "." + name ) ; } catch ( ClassNotFoundException e ) { // ignore, it's just not there } } return null ; }
Deterine the name of the class that should be used for a given XML element name .