Examples of XMLSchemaInternalizationLogic


Examples of com.sun.tools.internal.xjc.reader.xmlschema.parser.XMLSchemaInternalizationLogic

            }
        }

        // the default slower way is to parse everything into DOM first.
        // so that we can take external annotations into account.
        DOMForest forest = buildDOMForest( new XMLSchemaInternalizationLogic() );
        return createXSOM(forest, scdBasedBindingSet);
    }
View Full Code Here

Examples of com.sun.tools.internal.xjc.reader.xmlschema.parser.XMLSchemaInternalizationLogic

    private XSSchemaSet loadWSDL()
        throws SAXException {


        // build DOMForest just like we handle XML Schema
        DOMForest forest = buildDOMForest( new XMLSchemaInternalizationLogic() );

        DOMForestScanner scanner = new DOMForestScanner(forest);

        XSOMParser xsomParser = createXSOMParser( forest );
View Full Code Here

Examples of com.sun.tools.internal.xjc.reader.xmlschema.parser.XMLSchemaInternalizationLogic

    public void setClassNameAllocator(ClassNameAllocator allocator) {
        opts.classNameAllocator = allocator;
    }

    public void resetSchema() {
        forest = new DOMForest(new XMLSchemaInternalizationLogic());
        forest.setErrorHandler(this);
        forest.setEntityResolver(opts.entityResolver);
    }
View Full Code Here

Examples of com.sun.tools.internal.xjc.reader.xmlschema.parser.XMLSchemaInternalizationLogic

            if( opt.mode==Mode.FOREST ) {
                // dump DOM forest and quit
                ModelLoader loader  = new ModelLoader( opt, new JCodeModel(), receiver );
                try {
                    DOMForest forest = loader.buildDOMForest(new XMLSchemaInternalizationLogic());
                    forest.dump(System.out);
                    return 0;
                } catch (SAXException e) {
                    // the error should have already been reported
                } catch (IOException e) {
View Full Code Here

Examples of com.sun.tools.internal.xjc.reader.xmlschema.parser.XMLSchemaInternalizationLogic

            if( opt.mode==Mode.FOREST ) {
                // dump DOM forest and quit
                ModelLoader loader  = new ModelLoader( opt, new JCodeModel(), receiver );
                try {
                    DOMForest forest = loader.buildDOMForest(new XMLSchemaInternalizationLogic());
                    forest.dump(System.out);
                    return 0;
                } catch (SAXException e) {
                    // the error should have already been reported
                } catch (IOException e) {
View Full Code Here

Examples of com.sun.tools.internal.xjc.reader.xmlschema.parser.XMLSchemaInternalizationLogic

            }
        }

        // the default slower way is to parse everything into DOM first.
        // so that we can take external annotations into account.
        DOMForest forest = buildDOMForest( new XMLSchemaInternalizationLogic() );
        return createXSOM(forest, scdBasedBindingSet);
    }
View Full Code Here

Examples of com.sun.tools.internal.xjc.reader.xmlschema.parser.XMLSchemaInternalizationLogic

    private XSSchemaSet loadWSDL()
        throws SAXException {


        // build DOMForest just like we handle XML Schema
        DOMForest forest = buildDOMForest( new XMLSchemaInternalizationLogic() );

        DOMForestScanner scanner = new DOMForestScanner(forest);

        XSOMParser xsomParser = createXSOMParser( forest );
View Full Code Here

Examples of com.sun.tools.internal.xjc.reader.xmlschema.parser.XMLSchemaInternalizationLogic

    public void setClassNameAllocator(ClassNameAllocator allocator) {
        opts.classNameAllocator = allocator;
    }

    public void resetSchema() {
        forest = new DOMForest(new XMLSchemaInternalizationLogic());
        forest.setErrorHandler(this);
        forest.setEntityResolver(opts.entityResolver);
    }
View Full Code Here

Examples of com.sun.tools.xjc.reader.xmlschema.parser.XMLSchemaInternalizationLogic

                                               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);
                }
            };
           
View Full Code Here

Examples of com.sun.tools.xjc.reader.xmlschema.parser.XMLSchemaInternalizationLogic

    private void hackInNewInternalizationLogic(SchemaCompiler schemaCompiler,
                                               final OASISCatalogManager catalog) {
        try {
            Field f = schemaCompiler.getClass().getDeclaredField("forest");
            f.setAccessible(true);
            DOMForest forest = new DOMForest(new XMLSchemaInternalizationLogic() {
                public XMLFilterImpl createExternalReferenceFinder(DOMForest parent) {
                    return new ReferenceFinder(parent, catalog);
                }

            });
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.