Examples of ProblemHandler


Examples of com.eclipsesource.jshint.ProblemHandler

  }

  private void processFiles() throws IOException {
    for( File file : files ) {
      String code = readFileContents( file );
      ProblemHandler handler = new SysoutProblemHandler( file.getAbsolutePath() );
      jshint.check( code, handler );
    }
  }
View Full Code Here

Examples of com.eclipsesource.jshint.ProblemHandler

    return jshint;
  }

  private void check( IFile file ) throws CoreException {
    Text code = readContent( file );
    ProblemHandler handler = new MarkerHandler( new MarkerAdapter( file ), code );
    try {
      checker.check( code, handler );
    } catch( CoreExceptionWrapper wrapper ) {
      throw (CoreException)wrapper.getCause();
    } catch( RuntimeException exception ) {
View Full Code Here

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

Examples of org.jibx.schema.validation.ProblemHandler

    }
   
    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

Examples of org.jibx.schema.validation.ProblemHandler

            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
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.