Package org.apache.ws.commons.schema

Examples of org.apache.ws.commons.schema.XmlSchemaSerializer$XmlSchemaSerializerException


                opts.addBindFile(binding);
            }
        }
    }
    private Object getSchemaNode(XmlSchema schema, SchemaCollection schemaCollection) {
        XmlSchemaSerializer xser = new XmlSchemaSerializer();
        xser.setExtReg(schemaCollection.getExtReg());
        Document[] docs;
        try {
            docs = xser.serializeSchema(schema, false);
        } catch (XmlSchemaSerializerException e) {
            throw new RuntimeException(e);
        }
        return docs[0].getDocumentElement();
    }
View Full Code Here


            String key = schema.getSourceURI();
            if (ids.contains(key)) {
                continue;
            }
            if (!key.startsWith("file:") && !key.startsWith("jar:")) {
                XmlSchemaSerializer xser = new XmlSchemaSerializer();
                xser.setExtReg(schemaCollection.getExtReg());
                Document[] docs;
                try {
                    docs = xser.serializeSchema(schema, false);
                } catch (XmlSchemaSerializerException e) {
                    throw new RuntimeException(e);
                }
                Element ele = docs[0].getDocumentElement();
                if (context.fullValidateWSDL()) {
View Full Code Here

            String key = schema.getSourceURI();
            if (done.containsKey(key)) {
                continue;
            }
            if (!key.startsWith("file:") && !key.startsWith("jar:")) {
                XmlSchemaSerializer xser = new XmlSchemaSerializer();
                xser.setExtReg(schemaCollection.getExtReg());
                Document[] docs;
                try {
                    docs = xser.serializeSchema(schema, false);
                } catch (XmlSchemaSerializerException e) {
                    throw new RuntimeException(e);
                }
                Element ele = docs[0].getDocumentElement();
                ele = removeImportElement(ele, key, catalog, done, notDone);
View Full Code Here

                opts.addBindFile(binding);
            }
        }
    }
    private Object getSchemaNode(XmlSchema schema, SchemaCollection schemaCollection) {
        XmlSchemaSerializer xser = new XmlSchemaSerializer();
        xser.setExtReg(schemaCollection.getExtReg());
        Document[] docs;
        try {
            docs = xser.serializeSchema(schema, false);
        } catch (XmlSchemaSerializerException e) {
            throw new RuntimeException(e);
        }
        return docs[0].getDocumentElement();
    }
View Full Code Here

            String key = schema.getSourceURI();
            if (ids.contains(key)) {
                continue;
            }
            if (!key.startsWith("file:") && !key.startsWith("jar:")) {
                XmlSchemaSerializer xser = new XmlSchemaSerializer();
                xser.setExtReg(schemaCollection.getExtReg());
                Document[] docs;
                try {
                    docs = xser.serializeSchema(schema, false);
                } catch (XmlSchemaSerializerException e) {
                    throw new RuntimeException(e);
                }
                Element ele = docs[0].getDocumentElement();
                ele = removeImportElement(ele, key, catalog);
View Full Code Here

                opts.addBindFile(binding);
            }
        }
    }
    private Object getSchemaNode(XmlSchema schema, SchemaCollection schemaCollection) {
        XmlSchemaSerializer xser = new XmlSchemaSerializer();
        xser.setExtReg(schemaCollection.getExtReg());
        Document[] docs;
        try {
            docs = xser.serializeSchema(schema, false);
        } catch (XmlSchemaSerializerException e) {
            throw new RuntimeException(e);
        }
        return docs[0].getDocumentElement();
    }
View Full Code Here

            String key = schema.getSourceURI();
            if (ids.contains(key)) {
                continue;
            }
            if (!key.startsWith("file:") && !key.startsWith("jar:")) {
                XmlSchemaSerializer xser = new XmlSchemaSerializer();
                xser.setExtReg(schemaCollection.getExtReg());
                Document[] docs;
                try {
                    docs = xser.serializeSchema(schema, false);
                } catch (XmlSchemaSerializerException e) {
                    throw new RuntimeException(e);
                }
                Element ele = docs[0].getDocumentElement();
                ele = removeImportElement(ele, key, catalog);
View Full Code Here

            String key = schema.getSourceURI();
            if (done.containsKey(key)) {
                continue;
            }
            if (!key.startsWith("file:") && !key.startsWith("jar:")) {
                XmlSchemaSerializer xser = new XmlSchemaSerializer();
                xser.setExtReg(schemaCollection.getExtReg());
                Document[] docs;
                try {
                    docs = xser.serializeSchema(schema, false);
                } catch (XmlSchemaSerializerException e) {
                    throw new RuntimeException(e);
                }
                Element ele = docs[0].getDocumentElement();
                ele = removeImportElement(ele, key, catalog, done, notDone);
View Full Code Here

            if (ids.contains(key)) {
                continue;
            }
           
            if (!key.startsWith("file:")) {
                XmlSchemaSerializer xser = new XmlSchemaSerializer();
                xser.setExtReg(schemaCollection.getExtReg());
                Document[] docs;
                try {
                    docs = xser.serializeSchema(schema, false);
                } catch (XmlSchemaSerializerException e) {
                    throw new RuntimeException(e);
                }
                Element ele = docs[0].getDocumentElement();
                ele = removeImportElement(ele);
View Full Code Here

    @Override
    public Source getSource() {
        // try to use the the package-friendly XmlSchemaSerializer first, fall back to slower stream-based version
        try {
            XmlSchemaSerializer serializer = BeanUtils.instantiateClass(XmlSchemaSerializer.class);
            if (collection != null) {
                serializer.setExtReg(collection.getExtReg());
            }
            Document[] serializedSchemas = serializer.serializeSchema(schema, false);
            return new DOMSource(serializedSchemas[0]);
        }
        catch (BeanInstantiationException ex) {
            // ignore
        }
View Full Code Here

TOP

Related Classes of org.apache.ws.commons.schema.XmlSchemaSerializer$XmlSchemaSerializerException

Copyright © 2018 www.massapicom. 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.