Examples of validate()


Examples of org.vafer.jdeb.DebMaker.validate()

        debMaker.setKey(key);
        debMaker.setPassphrase(passphrase);
        debMaker.setCompression(compression);
       
        try {
            debMaker.validate();
            debMaker.makeDeb();
           
        } catch (PackagingException e) {
            log("Failed to create the Debian package " + deb, e, Project.MSG_ERR);
            throw new BuildException("Failed to create the Debian package " + deb, e);
View Full Code Here

Examples of org.voltdb.client.exampleutils.AppHelper.validate()

            final String csv           = apph.stringValue("statsfile");

            TxnIdWriter writer = new TxnIdWriter("dude", "clientlog");

            // Validate parameters
            apph.validate("duration", (config.duration > 0))
                .validate("poolsize", (config.poolSize > 0))
                .validate("ratelimit", (config.rateLimit > 0))
                .validate("latencytarget", (config.latencyTarget > 0))
            ;
View Full Code Here

Examples of org.voltdb.compiler.ClusterConfig.validate()

        else if (!startAction.doesRejoin()) {
            int sitesperhost = m_deployment.getCluster().getSitesperhost();
            int hostcount = m_deployment.getCluster().getHostcount();
            int kfactor = m_deployment.getCluster().getKfactor();
            ClusterConfig clusterConfig = new ClusterConfig(hostcount, sitesperhost, kfactor);
            if (!clusterConfig.validate()) {
                VoltDB.crashLocalVoltDB(clusterConfig.getErrorMsg(), false, null);
            }
            topo = registerClusterConfig(clusterConfig);
        }
        else {
View Full Code Here

Examples of org.voltdb.expressions.AbstractExpression.validate()

            PlanColumn column = m_context.get(m_outputColumns.get(ctr));
            AbstractExpression exp = column.getExpression();
            if (exp == null) {
                throw new Exception("ERROR: The Output Column Expression at position '" + ctr + "' is NULL");
            }
            exp.validate();
        }
    }

    public void appendOutputColumn(PlanColumn column)
    {
View Full Code Here

Examples of org.w3.x2001.xmlSchema.SchemaDocument.validate()

    {
        String name = DefaultsDocument.type.getSourceName();
        Assert.assertEquals("defaults.xsd", name);
        InputStream str = XmlBeans.getContextTypeLoader().getSourceAsStream("defaults.xsd");
        SchemaDocument doc = SchemaDocument.Factory.parse(str);
        Assert.assertTrue(doc.validate());
    }

    public void testRead() throws Throwable
    {
        ensureDoc();
View Full Code Here

Examples of org.woped.qualanalysis.reachabilitygraph.gui.ReachabilityGraphVC.validate()

          if(!hasAlreadyListener(edit, rg_listener)){
            edit.addInternalFrameListener(rg_listener);
          }
        }
        toAdd.setVisible(true);
        toAdd.validate();
        try { // to activate the JInternalFrame
          toAdd.setSelected(true);
        } catch (PropertyVetoException e) { //  if some component does not like this
          toAdd.moveToFront(); // then move it to front without activating
        }
View Full Code Here

Examples of org.wso2.carbon.governance.registry.extensions.Interfaces.CustomValidations.validate()

                        ClassLoader loader = Thread.currentThread().getContextClassLoader();
                        Class<?> validationsClass = Class.forName(validationsBean.getClassName(), true, loader);
                        CustomValidations customValidations = (CustomValidations) validationsClass.newInstance();
                        customValidations.init(validationsBean.getParamNameValues());

                        if (!customValidations.validate(context)) {
                            return false;
                        }

                    } catch (ClassNotFoundException e) {
                        log.error("Unable to load validations class", e);
View Full Code Here

Examples of org.wso2.carbon.identity.sso.saml.validators.AuthnRequestValidator.validate()

    public SAMLSSOReqValidationResponseDTO validateRequest(String authReq, String sessionId,
                                                           String rpSessionId, String authnMode) throws IdentityException {
        XMLObject request = SAMLSSOUtil.unmarshall(SAMLSSOUtil.decode(authReq));
        if (request instanceof AuthnRequest) {
            AuthnRequestValidator authnRequestValidator = new AuthnRequestValidator((AuthnRequest)request);
            SAMLSSOReqValidationResponseDTO validationResp = authnRequestValidator.validate();
            validationResp.setAssertionString(authReq);
            if (validationResp.isValid()) {
                SSOSessionPersistenceManager sessionPersistenceManager = SSOSessionPersistenceManager.getPersistenceManager();
                boolean isExistingSession = sessionPersistenceManager.isExistingSession(sessionId);
                if(authnMode.equals(SAMLSSOConstants.AuthnModes.OPENID) && !isExistingSession){
View Full Code Here

Examples of org.wso2.carbon.registry.core.utils.SchemaValidator.validate()

            SchemaValidator validator = new SchemaValidator();
            Resource resource = requestContext.getResource();
            Object resourceContent = resource.getContent();
            if (resourceContent instanceof byte[]) {
                InputStream in = new ByteArrayInputStream((byte[]) resourceContent);
                validator.validate(in, resource);
            }
            resource.setContentStream(null);
    //        requestContext.getRegistry().put(resource.getPath() ,resource);
        } finally {
            CommonUtil.releaseUpdateLock();
View Full Code Here

Examples of org.xmlsoap.schemas.ws.x2004.x08.addressing.EndpointReferenceType.validate()

        XmlObject[] capabilityElems = m_resource.getResourceProperty( ManageabilityCharacteristicsCapability.PROP_NAME_MANAGEABILITY_CAPABILITY );
        assertContainsURI( capabilityElems, IdentificationCapability.URI );
        XmlObject eprPropElem = getSingleProperty( m_resource, IdentificationCapability.PROP_NAME_ENDPOINT_REFERENCE );
        assertTrue( eprPropElem instanceof EndpointReferenceType );
        EndpointReferenceType epr = (EndpointReferenceType) eprPropElem;
        assertTrue( "mows-xs:EndpointReference element is not valid", epr.validate() );
        String address = epr.getAddress().getStringValue();
        XmlObject epDescsPropElem = getSingleProperty( m_resource, IdentificationCapability.PROP_NAME_ENDPOINT_DESCRIPTIONS );
        assertTrue( epDescsPropElem instanceof EndpointDescriptionsDocument.EndpointDescriptions );
        EndpointDescriptionsDocument.EndpointDescriptions epDescs = (EndpointDescriptionsDocument.EndpointDescriptions)epDescsPropElem;
        assertTrue( "mows-xs:EndpointDescriptions element is not valid", epDescs.validate() );
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.