unmarshaller.setMapping(mapping);
//-- turn off validation
unmarshaller.setValidation(false);
is = this.getClass().getResourceAsStream(TYPE_DEFINITIONS);
TypeList typeList = (TypeList)unmarshaller.unmarshal( new org.xml.sax.InputSource(is) );
//print what we just read (only in debug mode and if we have a logWriter)
// TODO: Joachim 2007-09-04 remove me
// LocalConfiguration config = LocalConfiguration.getInstance();
if (LOG.isDebugEnabled()) {
LOG.debug(typeList.toString());
}
//if (config.debug() && getLogWriter()!= null) {
// typeList.Print(getLogWriter());
//}
//Store the types by name in the typesByName and typesByCode hashtables
//and create for each its associated SimpleType instance.
Vector types= typeList.getTypes();
_typesByName= new Hashtable();
_typesByCode= new Hashtable();
for( int index= 0; index < types.size(); index++)
{
Type type= (Type)(types.elementAt(index));