use of eu.esdihumboldt.hale.common.schema.persist.hsd.SchemaToXml in project hale by halestudio.
the class AbstractCachedSchemaReader method storeInCache.
/**
* Stores the schema as HSD DOM.
*
* @see AbstractCachedSchemaReaderBase#storeInCache(Schema)
*/
@Override
protected Value storeInCache(Schema schema) throws Exception {
NSDOMBuilder builder = SchemaToXml.createBuilder();
Element root = new SchemaToXml().schemaToXml(builder, schema);
return new ElementValue(root, null);
}
Aggregations