Examples of validate()


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

        ReferenceListenerValidator rlrv_2 = new ReferenceListenerValidator("bind", "unbind");
        rlrv_2.setListenerComponentValidator(new RefValidator("listBindingListener"));
       
        ReferenceListValidator rlv_ref_list = new ReferenceListValidator("org.apache.aries.blueprint.sample.InterfaceA");
        rlv_ref_list.addReferenceListenerValidator(rlrv_2);
        rlv_ref_list.validate(metadataProxy.getComponentMetadata(sampleBlueprintContainerServiceId, "ref-list"));
       
        // bean: listBindingListener
        BeanValidator bv_listBindingListener = new BeanValidator("org.apache.aries.blueprint.sample.BindingListener");
        bv_listBindingListener.validate(metadataProxy.getComponentMetadata(sampleBlueprintContainerServiceId, "listBindingListener"));
               
View Full Code Here

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

        ReferenceListenerValidator rlrv_1 = new ReferenceListenerValidator("bind", "unbind");
        rlrv_1.setListenerComponentValidator(new RefValidator("bindingListener"));
       
        ReferenceValidator rv = new ReferenceValidator("org.apache.aries.blueprint.sample.InterfaceA", 100);
        rv.addReferenceListenerValidator(rlrv_1);
        rv.validate(metadataProxy.getComponentMetadata(sampleBlueprintContainerServiceId, "ref2"));
       
        // bean: bindingListener
        BeanValidator bv_bindingListener = new BeanValidator("org.apache.aries.blueprint.sample.BindingListener");
        bv_bindingListener.validate(metadataProxy.getComponentMetadata(sampleBlueprintContainerServiceId, "bindingListener"));
View Full Code Here

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

       
        ServiceValidator sv = new ServiceValidator(4);
        sv.setServiceComponentValidator(new RefValidator("foo"));
        sv.addMapEntryValidator(mev);
        sv.addRegistrationListenerValidator(rglrv);
        sv.validate(metadataProxy.getComponentMetadata(sampleBlueprintContainerServiceId, serviceComponentIds[0]));
       
        // bean: fooRegistrationListener
        BeanValidator bv_fooRegistrationListener = new BeanValidator("org.apache.aries.blueprint.sample.FooRegistrationListener");
        bv_fooRegistrationListener.validate(metadataProxy.getComponentMetadata(sampleBlueprintContainerServiceId, "fooRegistrationListener"));
       
View Full Code Here

Examples of org.apache.axis2.description.PhaseRule.validate()

     */
    public void addHandler(HandlerDescription handlerDesc) throws PhaseException {
        PhaseRule rule = handlerDesc.getRules();

        // Make sure this rule makes sense (throws PhaseException if not)
        rule.validate();

        String phaseName = rule.getPhaseName();
        if (Phase.ALL_PHASES.equals(phaseName)) {
            handlerDesc.getRules().setBefore("");
            handlerDesc.getRules().setAfter("");
View Full Code Here

Examples of org.apache.axis2.jaxws.common.config.WSDLExtensionValidator.validate()

                WSDLExtensionValidator wev = (WSDLExtensionValidator) wsdlExtensionValidators.next();
                if (debug) {
                    log.debug("Calling validate() on WSDLExtensionValidator: " + wev);
                }
               
                wev.validate(extensionSet, wsdlDefinition, endpointDescription);
               
                if (debug) {
                    log.debug("Returned from WSDLExtensionValidator: " + wev);
                }
            }
View Full Code Here

Examples of org.apache.axis2.jaxws.description.validator.EndpointDescriptionValidator.validate()

                ((ServiceDescriptionImpl)serviceDescription)
                        .updateEndpointDescription(sei, portQName, updateType);
        }
        EndpointDescriptionValidator endpointValidator = new EndpointDescriptionValidator(endpointDesc);
       
        boolean isEndpointValid = endpointValidator.validate();
       
        if (!isEndpointValid) {
            String msg = "The Endpoint description validation failed to validate due to the following errors: \n" +
            endpointValidator.toString();
           
View Full Code Here

Examples of org.apache.axis2.jaxws.description.validator.ServiceDescriptionValidator.validate()

                // process this impl class
                ServiceDescription serviceDescription = new ServiceDescriptionImpl(
                        dbcMap, serviceImplComposite);
                ServiceDescriptionValidator validator =
                        new ServiceDescriptionValidator(serviceDescription);
                if (validator.validate()) {
                    serviceDescriptionList.add(serviceDescription);
                    if (log.isDebugEnabled()) {
                        log.debug("Service Description created from DescriptionComposite: " +
                                serviceDescription);
                    }
View Full Code Here

Examples of org.apache.bval.BeanValidator.validate()

              .findForId("org.apache.bval.example.Address");

        // 1. validate a bean
        BusinessObjectAddress adr = new BusinessObjectAddress();
        BeanValidator<ValidationResults> validator = new BeanValidator();
        ValidationResults results = validator.validate(adr, mb);
        assertEquals(2,
              results.getErrorsByReason().get(Features.Property.MANDATORY).size());

        // 2. validate a map with the same metabean
        validator.setTreatMapsLikeBeans(true);
View Full Code Here

Examples of org.apache.cassandra.config.CFMetaData.validate()

        newMetadata.keyAlias(AsciiType.instance.decompose("id"));

        // should not throw IRE here
        try
        {
            newMetadata.validate();
        }
        catch (ConfigurationException e)
        {
            gotException = true;
        }
View Full Code Here

Examples of org.apache.cassandra.cql3.statements.KSPropDefs.validate()

                    Expression value = readExpression();
                    defs.addProperty(name, value.optimize(session).getValue(session).toString());
                }
            } while (readIf("AND"));

            defs.validate();
        } catch (SyntaxException e) {
            throw getSyntaxError();
        }
        return defs;
    }
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.