*
*/
public void fixUnreferencedMappings() {
List mappings = binding.getMappings();
for(Iterator it=mappings.iterator();it.hasNext();) {
JibxMapping mapping = (JibxMapping)it.next();
if(mapping.getTypeName()!=null && !referencedTypeList.contains(mapping.getTypeName())) {
log.debug(mapping.getTypeName()+" not referenced, abstract removed");
String name = mapping.getTypeName();
int lastDot = name.lastIndexOf(":");
if(lastDot!=-1) name = name.substring(lastDot+1);
// name = name.substring(0,1).toLowerCase()+name.substring(1);
mapping.setTypeName(null);
mapping.setName(name);
mapping.setAbstract(null);
}
}
}