Java 类org.eclipse.emf.ecore.xmi.XMLLoad 实例源码

项目:kie-wb-common    文件:JBPMBpmn2ResourceImpl.java   
@Override
    protected XMLLoad createXMLLoad() {
//        DroolsPackageImpl.init();
//        BpsimPackageImpl.init();
        return new XMLLoadImpl(createXMLHelper()) {

            @Override
            public void load(XMLResource resource,
                             InputStream inputStream,
                             Map<?, ?> options) throws IOException {
                try {
                    super.load(resource,
                               inputStream,
                               options);
                } catch (Exception e) {
                    DiagnosticWrappedException error = new DiagnosticWrappedException(e);
                    resource.getErrors().add(error);
                }
            }
        };
    }
项目:fixflow    文件:Bpmn2ResourceImpl.java   
/**
 * We must override this method for having an own XMLHandler
 */
@Override
protected XMLLoad createXMLLoad() {
    return new XMLLoadImpl(createXMLHelper()) {
        @Override
        protected DefaultHandler makeDefaultHandler() {
            return new BpmnXmlHandler(resource, helper, options);
        }
    };
}
项目:OpenSPIFe    文件:PlanResourceImpl.java   
@Override
protected XMLLoad createXMLLoad() {
    final XMLResource planResource = this;
    return new PlanXMLLoadImpl(createXMLHelper(), planResource);
}