Package org.exist.validation

Examples of org.exist.validation.Validator


    private boolean isValid(XmldbURI docUri) throws EXistException, PermissionDeniedException {
        boolean isValid=false;

        try {
            // Setup validator
            final Validator validator = new Validator(factory.getBrokerPool());
           
            // Get inputstream
            // TODO DWES reconsider
            final InputStream is = new EmbeddedInputStream( new XmldbURL(docUri) );
           
            // Perform validation
            final ValidationReport report = validator.validate(is);
           
            // Return validation result
            isValid = report.isValid();
           
        } catch (final Throwable e) {
View Full Code Here


   
   
    public Validation(XQueryContext context, FunctionSignature signature) {
        super(context, signature);
        brokerPool = context.getBroker().getBrokerPool();
        validator = new Validator(brokerPool);
    }
View Full Code Here

TOP

Related Classes of org.exist.validation.Validator

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.