Package org.jibx.schema.validation

Examples of org.jibx.schema.validation.ProblemHandler


        }
    }
   
    private void testDump(SchemasetCustom custom, SchemaElement[] schemas) throws JiBXException, IOException {
        CodeGen generator = new CodeGen(custom, m_validationContext);
        ProblemHandler handler = new ProblemConsoleLister();
        assertTrue("Schema customization failure", generator.customizeSchemas("dflt", handler));
        generator.applyAndNormalize();
        generator.pruneDefinitions();
        ValidationUtils.validateSchemas(schemas, m_validationContext);
        assertFalse("Errors in schema validation", m_validationContext.reportProblems(handler));
View Full Code Here


    }
   
    private void testGeneration(SchemasetCustom custom, SchemaElement[] schemas, StringObjectPair[] image,
        StringPair[] bindings) throws Exception {
        CodeGen generator = new CodeGen(custom, m_validationContext);
        ProblemHandler handler = new ProblemConsoleLister();
        assertTrue("Schema customization failure", generator.customizeSchemas("dflt", handler));
        generator.applyAndNormalize();
        generator.pruneDefinitions();
        ValidationUtils.validateSchemas(schemas, m_validationContext);
        assertFalse("Errors in schema validation", m_validationContext.reportProblems(handler));
View Full Code Here

            custroot = new SchemasetCustom((SchemasetCustom)null);
        } else {
            custroot = loadCustomization(custom);
        }
        CodeGen generator = new CodeGen(custroot, m_validationContext);
        ProblemHandler handler = new ProblemConsoleLister();
        assertTrue("Schema customization failure", generator.customizeSchemas("dflt", handler));
        generator.applyAndNormalize();
        generator.pruneDefinitions();
        verifySchema(resolver.getText(), writeSchema(schemas[0]));
        SchemaElement schema = m_validationContext.getSchemaById(inclname);
View Full Code Here

TOP

Related Classes of org.jibx.schema.validation.ProblemHandler

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.