Search in sources :

Example 1 with SchemaToXml

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);
}
Also used : NSDOMBuilder(eu.esdihumboldt.util.groovy.xml.NSDOMBuilder) Element(org.w3c.dom.Element) SchemaToXml(eu.esdihumboldt.hale.common.schema.persist.hsd.SchemaToXml) ElementValue(eu.esdihumboldt.hale.common.core.io.impl.ElementValue)

Aggregations

ElementValue (eu.esdihumboldt.hale.common.core.io.impl.ElementValue)1 SchemaToXml (eu.esdihumboldt.hale.common.schema.persist.hsd.SchemaToXml)1 NSDOMBuilder (eu.esdihumboldt.util.groovy.xml.NSDOMBuilder)1 Element (org.w3c.dom.Element)1