Search in sources :

Example 1 with SchemaMapping

use of org.whole.lang.xsd.codebase.SchemaMapping in project whole by wholeplatform.

the class XsdRegistry method deploySchemaForSchema.

protected void deploySchemaForSchema() {
    String location = "XMLSchema.xsd";
    MappingStrategyRegistry.instance().putMappingModel(new SchemaMapping().create());
    // FIXME replace with real schema for schema model with annotations
    InputStream is = getClass().getResourceAsStream(location);
    Schema schemaForSchema = SchemaUtils.load(new InputStreamInput(is));
    putSchema(location, schemaForSchema, true);
}
Also used : InputStream(java.io.InputStream) SchemaMapping(org.whole.lang.xsd.codebase.SchemaMapping) Schema(org.whole.lang.xsd.model.Schema) InputStreamInput(org.whole.lang.xml.util.InputStreamInput)

Aggregations

InputStream (java.io.InputStream)1 InputStreamInput (org.whole.lang.xml.util.InputStreamInput)1 SchemaMapping (org.whole.lang.xsd.codebase.SchemaMapping)1 Schema (org.whole.lang.xsd.model.Schema)1