- augmentationToSchema.putAll(ctx.getTypeToAugmentation());
- typeToDefiningSchema.putAll(ctx.getTypeToSchema());
-
- choiceToCases.putAll(ctx.getChoiceToCases());
- identities.putAll(ctx.getIdentities());
+ for (Entry<Type, AugmentationSchemaNode> e : ctx.getTypeToAugmentation().entrySet()) {
+ augmentationToSchema.put(builtType(builderToType, e.getKey()), e.getValue());
+ }
+ for (Entry<Type, WithStatus> e : ctx.getTypeToSchema().entrySet()) {
+ typeToDefiningSchema.put(builtType(builderToType, e.getKey()), e.getValue());
+ }
+ for (Entry<Type, Type> e : ctx.getChoiceToCases().entries()) {
+ choiceToCases.put(builtType(builderToType, e.getKey()), builtType(builderToType, e.getValue()));
+ }
+ for (Entry<QName, GeneratedTypeBuilder> e : ctx.getIdentities().entrySet()) {
+ identities.put(e.getKey(), builtType(builderToType, e.getValue()));
+ }