Search in sources :

Example 1 with SDOHelperContext

use of org.eclipse.persistence.sdo.helper.SDOHelperContext in project metro-jax-ws by eclipse-ee4j.

the class SDOSchemaCompiler method bind.

public Xsd2JavaSDOModel bind() {
    SDOHelperContext hc = new SDOHelperContext();
    List<SDOType> types = new ArrayList<>();
    SDODatabindingSchemaResolver schemaResolver = new SDODatabindingSchemaResolver(schemas, entityResolver);
    for (Source schema : schemas) {
        List<SDOType> list = ((SDOXSDHelper) hc.getXSDHelper()).define(schema, schemaResolver);
        types.addAll(list);
    }
    return new Xsd2JavaSDOModel(hc, types);
}
Also used : SDOHelperContext(org.eclipse.persistence.sdo.helper.SDOHelperContext) SDOType(org.eclipse.persistence.sdo.SDOType) ArrayList(java.util.ArrayList) SDOXSDHelper(org.eclipse.persistence.sdo.helper.SDOXSDHelper) InputSource(org.xml.sax.InputSource) DOMSource(javax.xml.transform.dom.DOMSource) Source(javax.xml.transform.Source) SAXSource(javax.xml.transform.sax.SAXSource)

Aggregations

ArrayList (java.util.ArrayList)1 Source (javax.xml.transform.Source)1 DOMSource (javax.xml.transform.dom.DOMSource)1 SAXSource (javax.xml.transform.sax.SAXSource)1 SDOType (org.eclipse.persistence.sdo.SDOType)1 SDOHelperContext (org.eclipse.persistence.sdo.helper.SDOHelperContext)1 SDOXSDHelper (org.eclipse.persistence.sdo.helper.SDOXSDHelper)1 InputSource (org.xml.sax.InputSource)1