Examples of JzeemapConfigurationDocument


Examples of de.capacis.jzeemap.config.v10.JzeemapConfigurationDocument

        File file = new File(args[0]);
        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();
        }
      } catch (XmlException ex) {
        logger.error("could not parse configuration:");
        for (final Object o : ex.getErrors()) {
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.