return nameToSchemas;
}
@Override
public String toString() {
ToStringBuilder buf = new ToStringBuilder();
buf.format("Schemas[");
if (mainSchema == null) {
buf.format("missing main schema");
} else if (mainSchema.getTargetNamespace() == null) {
buf.format("%s", mainSchema.getName());
} else {
buf.format("%s, targetNamespace=%s", mainSchema.getName(), mainSchema.getTargetNamespace());
}
buf.format(", %d versioned schemas]", getVersions().length).start();
for (String version : getVersions()) {
buf.format("version %s: %s%n", version, getVersionedSchema(version));
}
return buf.end().toString();
}