Examples of validate()


Examples of org.apache.airavata.xbaya.jython.script.JythonScript.validate()

                Workflow workflow = this.engine.getGUI().getWorkflow();
                JythonScript script = new JythonScript(workflow, this.engine.getConfiguration());

                // Check if there is any errors in the workflow first.
                ArrayList<String> warnings = new ArrayList<String>();
                if (!script.validate(warnings)) {
                    StringBuilder buf = new StringBuilder();
                    for (String warning : warnings) {
                        buf.append("- ");
                        buf.append(warning);
                        buf.append("\n");
View Full Code Here

Examples of org.apache.airavata.xbaya.scufl.script.ScuflScript.validate()

        Workflow workflow = this.engine.getGUI().getWorkflow();
        ScuflScript script = new ScuflScript(workflow, this.engine.getConfiguration());

        // Check if there is any errors in the workflow first.
        ArrayList<String> warnings = new ArrayList<String>();
        if (!script.validate(warnings)) {
            StringBuilder buf = new StringBuilder();
            for (String warning : warnings) {
                buf.append("- ");
                buf.append(warning);
                buf.append("\n");
View Full Code Here

Examples of org.apache.ambari.server.orm.entities.ViewInstanceEntity.validate()

        new ViewInstanceEntity(viewDefinition, instanceConfig);

    for (PropertyConfig propertyConfig : instanceConfig.getProperties()) {
      viewInstanceDefinition.putProperty(propertyConfig.getKey(), propertyConfig.getValue());
    }
    viewInstanceDefinition.validate(viewDefinition);

    bindViewInstance(viewDefinition, viewInstanceDefinition);
    return viewInstanceDefinition;
  }
View Full Code Here

Examples of org.apache.any23.validator.DefaultValidator.validate()

        } catch (URISyntaxException urise) {
            throw new ValidatorException("Error while performing validation, invalid document URI.", urise);
        }
        Validator validator = new DefaultValidator();
        Document document = getDOM();
        return new DocumentReport( validator.validate(dURI, document, applyFix), document );
    }

    private Document parse() throws IOException, SAXException, TransformerException {
        final DOMParser parser = new DOMParser() {
View Full Code Here

Examples of org.apache.any23.validator.Validator.validate()

        } catch (URISyntaxException urise) {
            throw new ValidatorException("Error while performing validation, invalid document URI.", urise);
        }
        Validator validator = new DefaultValidator();
        Document document = getDOM();
        return new DocumentReport( validator.validate(dURI, document, applyFix), document );
    }

    private Document parse() throws IOException, SAXException, TransformerException {
        final DOMParser parser = new DOMParser() {
View Full Code Here

Examples of org.apache.archiva.redback.components.scheduler.CronExpressionValidator.validate()

        // FIXME : olamy can be empty to avoid scheduled scan ?
        if ( StringUtils.isNotBlank( cronExpression ) )
        {
            CronExpressionValidator validator = new CronExpressionValidator();

            if ( !validator.validate( cronExpression ) )
            {
                throw new RepositoryAdminException( "Invalid cron expression.", "cronExpression" );
            }
        }
        else
View Full Code Here

Examples of org.apache.aries.blueprint.container.Parser.validate()

      bpxmlList.add(bpxml);
     
      p.parse(bpxmlList);
      Set<URI> nsuris = p.getNamespaces();
      NamespaceHandlerSet nshandlers = nhri.getNamespaceHandlers(nsuris, b);
      p.validate(nshandlers.getSchema());
     
      ComponentDefinitionRegistry cdr = new ComponentDefinitionRegistryImpl();
      p.populate(nshandlers, cdr);
     
      BeanMetadata comp = (BeanMetadata) cdr.getComponentDefinition("top");
View Full Code Here

Examples of org.apache.aries.blueprint.parser.Parser.validate()

        URL bpxml = this.getClass().getResource(name);
        p.parse(Arrays.asList(bpxml));
       
        Set<URI> nsuris = p.getNamespaces();
        NamespaceHandlerSet nshandlers = nhri.getNamespaceHandlers(nsuris, b);
        p.validate(nshandlers.getSchema());
       
        ComponentDefinitionRegistry cdr = new ComponentDefinitionRegistryImpl();
        cdr.registerComponentDefinition(new PassThroughMetadataImpl("blueprintBundle", b));
        p.populate(nshandlers, cdr);
       
View Full Code Here

Examples of org.apache.aries.jmx.test.blueprint.framework.BeanValidator.validate()

       
        BeanPropertyValidator bpv_date = new BeanPropertyValidator("date");
        bpv_date.setObjectValueValidator(new ValueValidator("2009.04.17"));
       
        bv_foo.addPropertyValidators(bpv_a, bpv_b, bpv_bar, bpv_currency, bpv_date);
        bv_foo.validate(metadataProxy.getComponentMetadata(sampleBlueprintContainerServiceId, "foo"));
       
        // bean: bar
        BeanPropertyValidator bpv_value = new BeanPropertyValidator("value");
        bpv_value.setObjectValueValidator(new ValueValidator("Hello FooBar"));
       
View Full Code Here

Examples of org.apache.aries.jmx.test.blueprint.framework.BlueprintEventValidator.validate()

        // test getBlueprintBundleIds
        long[] bpBundleIds = stateProxy.getBlueprintBundleIds();
        assertEquals("The blueprint bundle ids are: " + Arrays.toString(bpBundleIds), 3, bpBundleIds.length);
        // test getLastEvent
        BlueprintEventValidator sampleValidator = new BlueprintEventValidator(sampleBundleId, extenderBundleId, 2);
        sampleValidator.validate(stateProxy.getLastEvent(sampleBundleId));
        // test getLastEvents
        TabularData lastEvents = stateProxy.getLastEvents();
        assertEquals(BlueprintStateMBean.OSGI_BLUEPRINT_EVENTS_TYPE,lastEvents.getTabularType());
        sampleValidator.validate(lastEvents.get(new Long[]{sampleBundleId}));
       
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.