Examples of loadXml()


Examples of jmt.framework.xml.XMLUtils.loadXML()

    //Loads ExactModel and transforms it to CommonModel
    ExactModel exact = new ExactModel();
    XMLUtils xmlUtils = new XMLUtils();
    Document inputDoc;
    try {
      inputDoc = xmlUtils.loadXML(input);
      exact.loadDocument(inputDoc);
    } catch (SAXException e1) {
      logger.error("Cannot parse correctly input JMVA model: " + e1.getMessage());
      return null;
    } catch (IOException e1) {
View Full Code Here

Examples of jmt.framework.xml.XMLUtils.loadXML()

      // Put in place all measures from classes with null service demands and adjusts throughputs
      Document outDocument;
      XMLUtils xmlUtils = new XMLUtils();
      try {
        outDocument = xmlUtils.loadXML(temp);
        addNullMeasuresCorrectThroughputs(inputModel, outDocument);
      } catch (SAXException e2) {
        logger.error("Cannot parse correctly output JMVA model: " + e2.getMessage());
        return false;
      } catch (IOException e1) {
View Full Code Here

Examples of jmt.framework.xml.XMLUtils.loadXML()

  public boolean checkProcessingCapacity() {
    ExactModel exact = new ExactModel();
    XMLUtils xmlUtils = new XMLUtils();
    Document inputDoc;
    try {
      inputDoc = xmlUtils.loadXML(modelDefinition);
      exact.loadDocument(inputDoc);
    } catch (SAXException e1) {
      logger.error("Cannot parse correctly input JMVA model: " + e1.getMessage());
      return false;
    } catch (IOException e1) {
View Full Code Here

Examples of net.lagerwey.xml.XmlDocument.loadXml()

    windowStyles = new ArrayList<WindowStyle>();
    fonts = new ArrayList<Font>();
    screens = new ArrayList<Screen>();
   
    XmlDocument document = new XmlDocument();
    document.loadXml(new FileInputStream(filename));
    for (XmlNode colorNode : document.selectNodes("/skin/colors/color")) {
      colors.add(new Color(this, colorNode));
    }
    for (XmlNode windowstyleNode : document.selectNodes("/skin/windowstyle")) {
      windowStyles.add(new WindowStyle(this, windowstyleNode));
View Full Code Here

Examples of net.sourceforge.processdash.hier.DashHierarchy.loadXML()

        if (newTimestamp == 0 || newTimestamp == hierarchyTimestamp)
            return;

        // load the new data from the hierarchy file
        DashHierarchy newHier = new DashHierarchy(hierarchy.dataPath);
        newHier.loadXML(hierarchyFile.getPath(), templates);
        // alter our current hierarchy to match the new changes
        DashController.getHierarchyAlterer().mergeChangesFrom(newHier);
        // update the timestamp to indicate success
        hierarchyTimestamp = newTimestamp;
    }
View Full Code Here

Examples of org.ajax4jsf.builder.xml.XMLBody.loadXML()

   * @return
   */
  private String getXMLBody(File file) {
    XMLBody body = new XMLBody();
    try {
      body.loadXML(new FileInputStream(file));
      if (body.isRootName(getRootTag())) {
        return body.getContent();
      }
    } catch (FileNotFoundException e) {
      getLog().warn("Not found include file ", e);
View Full Code Here

Examples of org.apache.cocoon.sunshine.connector.ResourceConnector.loadXML()

                parameters.add(this.loadResource.getResourceParameters());
            } else {
                parameters = this.loadResource.getResourceParameters();
            }
            connector = (ResourceConnector)manager.lookup(ResourceConnector.ROLE);
            DocumentFragment df = connector.loadXML(this.loadResource.getResourceType(), null,
                                                    this.loadResource.getResourceIdentifier(), parameters);
            if (df != null) this.setXML(path, df);
        } catch (ComponentException ce) {
            throw new ProcessingException("Unable to lookup the resource connector.", ce);
        } finally {
View Full Code Here

Examples of org.apache.cocoon.sunshine.connector.ResourceConnector.loadXML()

                parameters = this.createParameters(parameters,
                                                   this.handlerName,
                                                   path,
                                                   null);
                connector = (ResourceConnector)manager.lookup(ResourceConnector.ROLE);
                DocumentFragment frag = connector.loadXML(this.authLoadResource.getResourceType(), null,
                                                          this.authLoadResource.getResourceIdentifier(), parameters);
                this.setXML(path, frag);

            } // end synchronized
        } catch (ComponentException ce) {
View Full Code Here

Examples of org.apache.cocoon.sunshine.connector.ResourceConnector.loadXML()

                                               this.applicationName);
            DocumentFragment fragment;
            ResourceConnector connector = null;
            try {
                connector = (ResourceConnector)manager.lookup(ResourceConnector.ROLE);
                fragment = connector.loadXML(loadResourceType, null,
                                             loadResourceName, parameters);
                this.setXML(path, fragment);

            } catch (ComponentException ce) {
                throw new ProcessingException("Unable to lookup the resource connector.", ce);
View Full Code Here

Examples of org.apache.cocoon.sunshine.connector.ResourceConnector.loadXML()

                parameters.add(this.loadResource.getResourceParameters());
            } else {
                parameters = this.loadResource.getResourceParameters();
            }
            connector = (ResourceConnector)manager.lookup(ResourceConnector.ROLE);
            DocumentFragment df = connector.loadXML(this.loadResource.getResourceType(), null,
                                                    this.loadResource.getResourceIdentifier(), parameters);
            if (df != null) this.setXML(path, df);
        } catch (ComponentException ce) {
            throw new ProcessingException("Unable to lookup the resource connector.", ce);
        } finally {
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.