Examples of validate()


Examples of org.datanucleus.store.rdbms.table.ViewImpl.validate()

                        viewsCreated.add(v);
                    }
                }
                if (validateTables)
                {
                    v.validate(getCurrentConnection(), true, false, autoCreateErrors);
                }

                // Discard any cached column info used to validate the view
                invalidateColumnInfoForTable(v);
            }
View Full Code Here

Examples of org.dcm4che3.data.Attributes.validate()

        DicomInputStream dis = null;
        try {
            System.out.print("Validate: " + file + " ... ");
            dis = new DicomInputStream(file);
            Attributes attrs = dis.readDataset(-1, -1);
            ValidationResult result = attrs.validate(iod);
            if (result.isValid())
                System.out.println("OK");
            else {
                System.out.println("FAILED:");
                System.out.println(result.asText(attrs));
View Full Code Here

Examples of org.dom4j.io.SAXValidator.validate()

            // now lets validate
            try {
                SAXValidator validator = new SAXValidator();
                validator.setErrorHandler(errorHandler);
                validator.validate(document);

                println("Document: " + url + " is valid!");
            } catch (SAXException e) {
                println("Document: " + url + " is not valid");
                println("Exception: " + e);
View Full Code Here

Examples of org.dozer.fieldmap.FieldMap.validate()

        // iterate through the fields and see wether or not they should be mapped
        // one way class mappings we do not need to add any fields
        if (!MappingDirection.ONE_WAY.equals(classMap.getType())) {
          for (Object fm1 : fms) {
            FieldMap fieldMap = (FieldMap) fm1;
            fieldMap.validate();

            // If we are dealing with a Map data type, transform the field map into a MapFieldMap type
            // only apply transformation if it is map to non-map mapping.
            if (!(fieldMap instanceof ExcludeFieldMap)) {
              if ((isSupportedMap(classMap.getDestClassToMap())
View Full Code Here

Examples of org.drools.factconstraints.server.Constraint.validate()

    @Test
    public void testValidConstraint() {
      Constraint cons = new IntegerConstraint();
     
        ValidationResult result = cons.validate(12, conf);
        assertTrue(result.isSuccess());

        result = cons.validate(new Integer("12"), conf);
        assertTrue(result.isSuccess());
View Full Code Here

Examples of org.drools.factconstraints.server.predefined.IntegerConstraint.validate()

    @Test
    public void testValidConstraint() {
      Constraint cons = new IntegerConstraint();
     
        ValidationResult result = cons.validate(12, conf);
        assertTrue(result.isSuccess());

        result = cons.validate(new Integer("12"), conf);
        assertTrue(result.isSuccess());
View Full Code Here

Examples of org.drools.guvnor.server.builder.AssetItemValidator.validate()

            handler.storeAssetContent( asset,
                                       item );

            AssetItemValidator assetItemValidator = new AssetItemValidator( handler,
                                                                            item );
            return assetItemValidator.validate();

        } catch ( Exception e ) {
            log.error( "Unable to build asset.",
                       e );
            BuilderResult result = new BuilderResult();
View Full Code Here

Examples of org.drools.guvnor.server.contenthandler.SpringContextValidator.validate()

    public String validate(String content) {
        //we can use Spring validator here
        SpringContextValidator contextValidator = new SpringContextValidator();
        contextValidator.setContentAsString( content );

        return contextValidator.validate();
    }
}
View Full Code Here

Examples of org.drools.ide.common.server.factconstraints.Constraint.validate()

    @Test
    public void testValidConstraint() {
        Constraint cons = new IntegerConstraint();

        ValidationResult result = cons.validate(12, conf);
        assertTrue(result.isSuccess());

        result = cons.validate(new Integer("12"), conf);
        assertTrue(result.isSuccess());
View Full Code Here

Examples of org.drools.ide.common.server.factconstraints.predefined.IntegerConstraint.validate()

    @Test
    public void testValidConstraint() {
        Constraint cons = new IntegerConstraint();

        ValidationResult result = cons.validate(12, conf);
        assertTrue(result.isSuccess());

        result = cons.validate(new Integer("12"), conf);
        assertTrue(result.isSuccess());
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.