Examples of validate()


Examples of com.volantis.mcs.xml.validation.sax.xerces.XercesBasedDOMValidator.validate()

                                MCSNamespace.LPDM.getURI(),
                                LayoutSchemaType.LAYOUT.getName(),
                                new DuplicateNameValidator());

                        // Validate the policy using the root element.
                        validator.validate(node);
                    }
                } catch (JDOMException e) {
                    // this exception is likely to occur if the DOM is badly
                    // formed. The user may be able rectify this by editing the
                    // file directly so we should add a marker that highlights
View Full Code Here

Examples of com.volantis.xml.schema.validator.SchemaValidator.validate()

            schemaValidator.addSchemata(PolicySchemas.REPOSITORY_2005_09);
            schemaValidator.addSchemata(PolicySchemas.REPOSITORY_2005_12);
            schemaValidator.addSchemata(PolicySchemas.REPOSITORY_2006_02);

            // Make sure that the input result is valid before comparing.
            schemaValidator.validate(new StringContentInput(inputString));

            // Make sure that the expected result is valid before comparing.
            schemaValidator.validate(new StringContentInput(expectedString));

            boolean worked = false;
View Full Code Here

Examples of cpw.mods.fml.common.discovery.asm.ASMModParser.validate()

                    {
                        FMLLog.log(Level.ERROR, e, "There was a problem reading the entry %s in the jar %s - probably a corrupt zip", ze.getName(), candidate.getModContainer().getPath());
                        jar.close();
                        throw e;
                    }
                    modParser.validate();
                    modParser.sendToTable(table, candidate);
                    ModContainer container = ModContainerFactory.instance().build(modParser, candidate.getModContainer(), candidate);
                    if (container!=null)
                    {
                        table.addContainer(container);
View Full Code Here

Examples of cx.fbn.nevernote.xml.XMLCleanup.validate()

    // remove any things we added in NixNote that do not match
    // the ENML schema
    XMLCleanup v = new XMLCleanup();
    v.setValue(newContent);
    logger.log(logger.HIGH, "Beginning ENML Cleanup");
    v.validate();
    logger.log(logger.HIGH, "Cleanup complete.");
   
 
     
    // Final pass through the data.  In this one we
View Full Code Here

Examples of de.bwaldvogel.mongo.backend.MongoCollection.validate()

            MongoCollection collection = resolveCollection(collectionName, true);
            return collection.getStats();
        } else if (command.equalsIgnoreCase("validate")) {
            String collectionName = query.get("validate").toString();
            MongoCollection collection = resolveCollection(collectionName, true);
            return collection.validate();
        } else if (command.equalsIgnoreCase("findAndModify")) {
            String collectionName = query.get(command).toString();
            MongoCollection collection = resolveOrCreateCollection(collectionName);
            return collection.findAndModify(query);
        } else {
View Full Code Here

Examples of de.capacis.jzeemap.config.v10.JzeemapConfigurationDocument.validate()

        logger.info("starting with configuration file " + file.getAbsolutePath());
        final ArrayList<Object> list = new ArrayList<Object>();
        final XmlOptions options = new XmlOptions();
        options.setErrorListener(list);
        final JzeemapConfigurationDocument doc = JzeemapConfigurationDocument.Factory.parse(file);
        boolean validate = doc.validate(options);
        if (!validate) {
          throw new XmlException("", null, list);
        } else {
          final App app = new App(doc.getJzeemapConfiguration());
          app.start();
View Full Code Here

Examples of de.huepattl.playground.validation.validator.SimpleConstraintValidator.validate()

        /*
         * Validate and report.
         */
        SimpleConstraintValidator defaultValidator = new SimpleConstraintValidator();
        Set<ConstraintViolation<Object>> validationResult = defaultValidator.validate(employee);

        super.printValidationMessages(validationResult);
        assertTrue(validationResult.isEmpty());
    }

View Full Code Here

Examples of de.hybris.yfaces.component.YComponent.validate()

    // inject attributes
    this.injectAttributes(cmpInfo, cmp);

    // invoke components postinitialize()
    cmp.validate();

    this.verifyRenderTimeID();

    // set YComponent
    this.setYComponent(cmp);
View Full Code Here

Examples of de.innovationgate.utils.net.IPv4Address.validate()

    public boolean isClientPermitted(WGDatabase db, HttpServletRequest request) {
        if (db.getAttribute(DBATTRIB_CLIENTRESTRICTIONS) != null) {
            IPv4Address ip;
            try {
                ip = new IPv4Address(request.getRemoteAddr());
                if (!ip.validate()) {
                    log.info("Client ip '" + request.getRemoteAddr() + "' from last request is invalid. Client is not permitted to access db '" + db.getDbReference() + "'.");
                    return false;
                }
            }
            catch (Exception e) {
View Full Code Here

Examples of de.innovationgate.wga.config.WGAConfiguration.validate()

    }   
   
   
   
    if(configChanged){
      List<ValidationError> errors =  config.validate();
      if(errors.isEmpty()) {
       
     
      ByteArrayOutputStream configContent = new ByteArrayOutputStream();   
      WGAConfiguration.write(config, configContent);
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.