Map nsbindings = new HashMap();
for (Iterator iter = m_validationContext.iterateSchemas(); iter.hasNext();) {
// check binding handling for schema
SchemaElement schema = (SchemaElement)iter.next();
SchemaExtension exten = (SchemaExtension)schema.getExtension();
String uri = schema.getEffectiveNamespace();
String prefix = exten.getPrefix();
BindingHolder holder;
String name = exten.getBindingFileName();
boolean dflt = schema.isElementQualifiedDefault() || uri == null;
if (name != null) {
// specific binding name, create the binding or link to existing
holder = (BindingHolder)namebindings.get(name);
if (holder == null) {
holder = m_bindingDirectory.getBinding(schema);
if (holder == null) {
holder = m_bindingDirectory.addBinding(schema, uri, prefix, dflt);
}
holder.setFileName(name);
namebindings.put(name, holder);
} else {
m_bindingDirectory.addBindingObject(schema, holder);
}
} else if (exten.isForceBinding()) {
// binding needed for this schema, create it
holder = m_bindingDirectory.addBinding(schema, uri, prefix, dflt);
} else {