use of com.evolveum.midpoint.prism.impl.xml.GlobalDynamicNamespacePrefixMapper in project midpoint by Evolveum.
the class MidPointPrismContextFactory method createSchemaRegistry.
@NotNull
private SchemaRegistryImpl createSchemaRegistry() throws SchemaException, IOException {
SchemaRegistryImpl schemaRegistry = new AxiomEnabledSchemaRegistry();
schemaRegistry.setDefaultNamespace(SchemaConstantsGenerated.NS_COMMON);
schemaRegistry.setNamespacePrefixMapper(new GlobalDynamicNamespacePrefixMapper());
registerBuiltinSchemas(schemaRegistry);
registerExtensionSchemas(schemaRegistry);
registerAxiomSchemas(schemaRegistry);
schemaRegistry.setValueMetadataTypeName(ValueMetadataType.COMPLEX_TYPE);
return schemaRegistry;
}
Aggregations