private void hackInNewInternalizationLogic(SchemaCompiler schemaCompiler, final OASISCatalogManager catalog, Options opts) { try { Field f = schemaCompiler.getClass().getDeclaredField("forest"); ReflectionUtil.setAccessible(f); XMLSchemaInternalizationLogic logic = new XMLSchemaInternalizationLogic() { public XMLFilterImpl createExternalReferenceFinder(DOMForest parent) { return new ReferenceFinder(parent, catalog); } }; Constructor<DOMForest> c = null; DOMForest forest = null; try { c = DOMForest.class.getConstructor(InternalizationLogic.class, Options.class); forest = c.newInstance(logic, opts); } catch (Throwable t) { c = DOMForest.class.getConstructor(InternalizationLogic.class); forest = c.newInstance(logic); } forest.setErrorHandler((ErrorReceiver)schemaCompiler); f.set(schemaCompiler, forest); } catch (Throwable ex) { //ignore } } private void addBindingFiles(Options opts, List<InputSource> jaxbBindings, SchemaCollection schemas) {
private void hackInNewInternalizationLogic(SchemaCompiler schemaCompiler, final OASISCatalogManager catalog, Options opts) { try { Field f = schemaCompiler.getClass().getDeclaredField("forest"); ReflectionUtil.setAccessible(f); XMLSchemaInternalizationLogic logic = new XMLSchemaInternalizationLogic() { public XMLFilterImpl createExternalReferenceFinder(DOMForest parent) { return new ReferenceFinder(parent, catalog); } }; Constructor<DOMForest> c = null; DOMForest forest = null; try { c = DOMForest.class.getConstructor(InternalizationLogic.class, Options.class); forest = c.newInstance(logic, opts); } catch (Throwable t) { c = DOMForest.class.getConstructor(InternalizationLogic.class); forest = c.newInstance(logic); } forest.setErrorHandler((ErrorReceiver)schemaCompiler); f.set(schemaCompiler, forest); } catch (Throwable ex) { //ignore } } private void addBindingFiles(Options opts, List<InputSource> jaxbBindings, SchemaCollection schemas) {
public void resetSchema() { forest = new DOMForest(new XMLSchemaInternalizationLogic(), opts); forest.setErrorHandler(this); forest.setEntityResolver(opts.entityResolver); }
public void resetSchema() { forest = new DOMForest(new XMLSchemaInternalizationLogic()); forest.setErrorHandler(this); forest.setEntityResolver(opts.entityResolver); }
public void resetSchema() { forest = new DOMForest(new XMLSchemaInternalizationLogic(), opts); forest.setErrorHandler(this); forest.setEntityResolver(opts.entityResolver); }
public void resetSchema() { forest = new DOMForest(new XMLSchemaInternalizationLogic(), opts); forest.setErrorHandler(this); forest.setEntityResolver(opts.entityResolver); }
public void resetSchema() { forest = new DOMForest(new XMLSchemaInternalizationLogic()); forest.setErrorHandler(this); forest.setEntityResolver(opts.entityResolver); }
forest.setErrorHandler(errorReceiver); if(opt.entityResolver!=null) forest.setEntityResolver(opt.entityResolver);
forest.setErrorHandler(errorReceiver); if(opt.entityResolver!=null) forest.setEntityResolver(opt.entityResolver);
forest.setErrorHandler(errorReceiver); if(opt.entityResolver!=null) forest.setEntityResolver(opt.entityResolver);
forest.setErrorHandler(errorReceiver); if(opt.entityResolver!=null) forest.setEntityResolver(opt.entityResolver);
forest.setErrorHandler(errorReceiver); if(opt.entityResolver!=null) forest.setEntityResolver(opt.entityResolver);