Package org.springframework.xml.xsd

Examples of org.springframework.xml.xsd.SimpleXsdSchema


        DomXmlMessageValidator validator = new DomXmlMessageValidator();
       
        XsdSchemaRepository schemaRepository = new XsdSchemaRepository();
        schemaRepository.setBeanName("schemaRepository1");
        Resource schemaResource = new ClassPathResource("com/consol/citrus/validation/test.xsd");
        SimpleXsdSchema schema = new SimpleXsdSchema(schemaResource);
        schema.afterPropertiesSet();
       
        schemaRepository.getSchemas().add(schema);
       
        validator.addSchemaRepository(schemaRepository);
       
        XsdSchemaRepository schemaRepository2 = new XsdSchemaRepository();
        schemaRepository2.setBeanName("schemaRepository2");
        Resource schemaResource2 = new ClassPathResource("com/consol/citrus/validation/sample.xsd");
        SimpleXsdSchema schema2 = new SimpleXsdSchema(schemaResource2);
        schema2.afterPropertiesSet();

        schemaRepository2.getSchemas().add(schema2);

        validator.addSchemaRepository(schemaRepository2);
       
View Full Code Here


        DomXmlMessageValidator validator = new DomXmlMessageValidator();

        XsdSchemaRepository schemaRepository = new XsdSchemaRepository();
        schemaRepository.setBeanName("schemaRepository1");
        Resource schemaResource = new ClassPathResource("com/consol/citrus/validation/test.xsd");
        SimpleXsdSchema schema = new SimpleXsdSchema(schemaResource);
        schema.afterPropertiesSet();

        schemaRepository.getSchemas().add(schema);

        validator.addSchemaRepository(schemaRepository);

        XsdSchemaRepository schemaRepository2 = new XsdSchemaRepository();
        schemaRepository2.setBeanName("schemaRepository2");
        Resource schemaResource2 = new ClassPathResource("com/consol/citrus/validation/sample.xsd");
        SimpleXsdSchema schema2 = new SimpleXsdSchema(schemaResource2);
        schema2.afterPropertiesSet();

        schemaRepository2.getSchemas().add(schema2);

        validator.addSchemaRepository(schemaRepository2);
View Full Code Here

        DomXmlMessageValidator validator = new DomXmlMessageValidator();

        XsdSchemaRepository schemaRepository = new XsdSchemaRepository();
        schemaRepository.setBeanName("schemaRepository");
        Resource schemaResource = new ClassPathResource("com/consol/citrus/validation/test.xsd");
        SimpleXsdSchema schema = new SimpleXsdSchema(schemaResource);
        schema.afterPropertiesSet();
        Resource schemaResource2 = new ClassPathResource("com/consol/citrus/validation/sample.xsd");
        SimpleXsdSchema schema2 = new SimpleXsdSchema(schemaResource2);
        schema2.afterPropertiesSet();

        schemaRepository.getSchemas().add(schema);
        schemaRepository.getSchemas().add(schema2);

        validator.addSchemaRepository(schemaRepository);
View Full Code Here

       
        DomXmlMessageValidator validator = new DomXmlMessageValidator();
       
        XsdSchemaRepository schemaRepository = new XsdSchemaRepository();
        Resource schemaResource = new ClassPathResource("com/consol/citrus/validation/test.xsd");
        SimpleXsdSchema schema = new SimpleXsdSchema(schemaResource);
        schema.afterPropertiesSet();
       
        schemaRepository.getSchemas().add(schema);
       
        validator.addSchemaRepository(schemaRepository);
       
View Full Code Here

            Resource[] findings = resourcePatternResolver.getResources(location);
           
            for (Resource resource : findings) {
                if (resource.getFilename().endsWith(".xsd")) {
                    log.info("Loading XSD schema resource " + resource.getFilename());
                    SimpleXsdSchema schema = new SimpleXsdSchema(resource);
                    schema.afterPropertiesSet();
                    schemas.add(schema);
                } else if (resource.getFilename().endsWith(".wsdl")) {
                    log.info("Loading WSDL schema resource " + resource.getFilename());
                    WsdlXsdSchema wsdl = new WsdlXsdSchema(resource);
                    wsdl.afterPropertiesSet();
View Full Code Here

TOP

Related Classes of org.springframework.xml.xsd.SimpleXsdSchema

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.