Examples of validate()


Examples of org.apache.xmlbeans.impl.xb.ltgfmt.TestsDocument.validate()

            XmlOptions ltgOptions = new XmlOptions();
            ltgOptions.setLoadSubstituteNamespaces(Collections.singletonMap("", "http://www.bea.com/2003/05/xmlbean/ltgfmt"));
            ltgOptions.setErrorListener(errors);
            ltgOptions.setLoadLineNumbers();
            TestsDocument doc = TestsDocument.Factory.parse(ltgFile, ltgOptions);
            if (!doc.validate(ltgOptions))
                throw new Exception("Document " + ltgFile + " not valid.");
           
            org.apache.xmlbeans.impl.xb.ltgfmt.TestCase[] testCases = doc.getTests().getTestArray();
           
            Collection result = new ArrayList();
View Full Code Here

Examples of org.apache.xmlbeans.samples.template.sampletemplate.HelloDocument.validate()

        ArrayList errors = new ArrayList();
        XmlOptions opts = new XmlOptions();
        opts.setErrorListener(errors);

        if (doc.validate(opts))
        {
            System.out.println("document is valid.");

            String[] names = doc.getHello().getNameArray();
            for (int i = 0; i < names.length; i++)
View Full Code Here

Examples of org.aperteworkflow.scripting.ScriptProcessor.validate()

                throw new Validator.InvalidValueException("script.undefined.type");
            ScriptProcessor scriptProcessor = registry.getScriptProcessor((String) scriptType.getValue());
            if (scriptProcessor == null)
                throw new Validator.InvalidValueException("script.processor.not.found");
            InputStream is = new URL((String) url.getValue()).openStream();
            scriptProcessor.validate(is);
            url.commit();
            showInfoNotification("validation.script.ok");

        } catch (Validator.InvalidValueException e) {
            logger.log(Level.SEVERE, e.getMessage(), e);
View Full Code Here

Examples of org.archive.spring.PathSharingContext.validate()

            ac = new PathSharingContext("file:"+config.getAbsolutePath());
        } catch (BeansException be){
            be.printStackTrace(System.err);
        } finally {
            assertNotNull("profile not buildable",ac);
            ac.validate();
            assertEquals("did not get the expected one error",1,ac.getAllErrors().size());
            ac.destroy();
        }
    }
}
View Full Code Here

Examples of org.arquillian.extension.recorder.video.VideoConfiguration.validate()

        VideoConfiguration configuration = new DesktopVideoConfiguration(reporterConfiguration.get());

        for (ExtensionDef extension : descriptor.getExtensions()) {
            if (extension.getExtensionName().equals(EXTENSION_NAME)) {
                configuration.setConfiguration(extension.getExtensionProperties());
                configuration.validate();
                break;
            }
        }

        this.configuration.set(configuration);
View Full Code Here

Examples of org.arquillian.recorder.reporter.ReporterConfiguration.validate()

        Map<String, String> configMap = new HashMap<String, String>();
        configMap.put("report", "asciidoc");
        configMap.put("file", "report");
        configMap.put("asciidocStandardCompliant", "true");
        configuration.setConfiguration(configMap);
        configuration.validate();

        Reporter reporter = new ReporterImpl();
        reporter.setConfiguration(configuration);

        KeyValueEntry kve3 = new KeyValueEntry();
View Full Code Here

Examples of org.auraframework.def.DefinitionAccess.validate()

    }
   
    public void testValidation_AccessLevelAndStaticMethodSpecified()throws Exception{
        DefinitionAccess access = definitionParser.parseAccess(null, "org.auraframework.test.TestAccessMethods.allowGlobal, PRIVATE");
        try{
            access.validate(null, false, false);
            fail("Access attribute may not specify enum value when a static method is also specified");
        }catch(InvalidAccessValueException expected){}
    }
   
    public void testValidation_AuthenticationAllowedOnlyInSystemNamespace()throws Exception{
View Full Code Here

Examples of org.auraframework.impl.javascript.AuraJavascriptGroup.validate()

        AuraJavascriptGroup js = new AuraJavascriptGroup();
        try {
            // Should be ideally in setup, but this step might have some errors,
            // so won't assume its reliable
            js.parse();
            js.validate();
        } catch (RuntimeException e) {
            fail("AuraJavascriptGroup failed validation with the following error:" + e.getMessage());
        }
    }
View Full Code Here

Examples of org.auraframework.impl.validation.ValidationEngine.validate()

                            if (definition instanceof RootDefinition) {
                                List<DefDescriptor<?>> deps = ((RootDefinition) definition).getBundle();
                                ValidationEngine validationEngine = new ValidationEngine();
                                for (DefDescriptor<?> dep : deps) {
                                    if (dep.getPrefix().equals(DefDescriptor.JAVASCRIPT_PREFIX)) {
                                        List<ValidationError> ret = validationEngine.validate(dep);
                                        ValidationUtil.trimFilenames(ret);
                                        for (ValidationError error : ret) {
                                            Map<String, String> m = new TreeMap<String, String>();
                                            String comp = descriptor.getNamespace() + ':' + descriptor.getName();
                                            m.put("CompName", comp);
View Full Code Here

Examples of org.auraframework.instance.GlobalValueProvider.validate()

                if (gvp != null) {
                    PropertyReference stem = e.getStem();
                    if (stem == null) {
                        throw new InvalidExpressionException("Expression didn't have enough terms: " + e, e.getLocation());
                    }
                    gvp.validate(stem);
                }
            } else if (vpt == ValueProviderType.VIEW) {
                if (e.getStem() != null) { // checks for private attributes used in expressions ..
                    String stem = e.getStem().toString();
                    AttributeDef attr = getAttributeDef(stem);
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.