Examples of parseReader()


Examples of org.xmlpull.v1.builder.XmlInfosetBuilder.parseReader()

      return null;
   
    Map property = null;
   
        XmlInfosetBuilder builder = XmlInfosetBuilder.newInstance();
        XmlDocument doc = builder.parseReader(new StringReader( inheritedPageComponentsXML ) );
       
    String propertyXPath = "//component[@id=" + componentId + "]/properties/property[@name='" + propertyName + "']";
   
    if(propertyName.equals("GUFlashImages") || propertyName.equals("MiniArticleShortcuts"))
      this.templateController.getDeliveryContext().addDebugInformation("DEBUG INFO propertyXPath: " + propertyXPath + " (Thread" + Thread.currentThread().getId() + ").\n");
View Full Code Here

Examples of org.xmlpull.v1.builder.XmlInfosetBuilder.parseReader()

  public int getPropertyAsStringHashCode(String inheritedPageComponentsXML, Integer componentId, String propertyName, Integer siteNodeId, Integer languageId) throws Exception
  {
    Map property = null;
   
        XmlInfosetBuilder builder = XmlInfosetBuilder.newInstance();
        XmlDocument doc = builder.parseReader(new StringReader( inheritedPageComponentsXML ) );
       
    String propertyXPath = "//component[@id=" + componentId + "]/properties/property[@name='" + propertyName + "']";
   
    Xb1XPath xpathObject = (Xb1XPath)cachedXPathObjects.get(propertyXPath);
        if(xpathObject == null)
View Full Code Here

Examples of org.xmlpull.v1.builder.XmlInfosetBuilder.parseReader()

  public static int getPropertyAsStringHashCode(String inheritedPageComponentsXML, Integer componentId, String propertyName, Integer siteNodeId, Integer languageId) throws Exception
  {
    Map property = null;
   
        XmlInfosetBuilder builder = XmlInfosetBuilder.newInstance();
        XmlDocument doc = builder.parseReader(new StringReader( inheritedPageComponentsXML ) );
       
    String propertyXPath = "//component[@id=" + componentId + "]/properties/property[@name='" + propertyName + "']";
   
    Xb1XPath xpathObject = new Xb1XPath( propertyXPath );
View Full Code Here

Examples of org.xmlpull.v1.builder.XmlInfosetBuilder.parseReader()

  }
 
  public static int getComponentsAsStringHashCode(String inheritedPageComponentsXML, String componentXPath) throws Exception
  {
        XmlInfosetBuilder builder = XmlInfosetBuilder.newInstance();
        XmlDocument doc = builder.parseReader(new StringReader( inheritedPageComponentsXML ) );

    Xb1XPath xpathObject = new Xb1XPath( componentXPath );

        //This keeps track of the cached inherited components.
        StringBuilder sb = new StringBuilder();
View Full Code Here

Examples of org.xmlpull.v1.builder.XmlInfosetBuilder.parseReader()

        RequestAnalyser.getRequestAnalyser().registerComponentStatistics("getPageComponentsWithDOM4j", t.getElapsedTime());
        logger.info("pageComponents:" + pageComponents.size());
           */
           //XPP3
            XmlInfosetBuilder builder = XmlInfosetBuilder.newInstance();
            XmlDocument doc = builder.parseReader(new StringReader( componentXML ) );
        //RequestAnalyser.getRequestAnalyser().registerComponentStatistics("document with XPP3", t.getElapsedTime());
 
        List pageComponents = getPageComponentsWithXPP3(getDatabase(), componentXML, doc.getDocumentElement(), "base", this.getTemplateController(), null, unsortedPageComponents);
        //RequestAnalyser.getRequestAnalyser().registerComponentStatistics("getPageComponentsWithXPP3", t.getElapsedTime());
       
View Full Code Here

Examples of org.xmlpull.v1.builder.XmlInfosetBuilder.parseReader()

        RequestAnalyser.getRequestAnalyser().registerComponentStatistics("INHERITING COMPONENTS WITH DOM4J", t.getElapsedTime());
        */
       
           //XPP3
            XmlInfosetBuilder builder = XmlInfosetBuilder.newInstance();
            XmlDocument doc = builder.parseReader(new StringReader( componentXML ) );
        components = getComponentWithXPP3(db, builder, doc.getDocumentElement(), id, templateController, component);
        RequestAnalyser.getRequestAnalyser().registerComponentStatistics("INHERITING COMPONENTS WITH XPP3", t.getElapsedTime());
       
        //System.out.println("components:" + components);
        String hashCode = "" + components.get(id + "_hashCode");
View Full Code Here

Examples of org.xmlpull.v1.builder.XmlInfosetBuilder.parseReader()

    String componentXML = this.getPageComponentsString(db, templateController, siteNodeId, templateController.getLanguageId(), component.getContentId());
    //logger.info("componentXML:" + componentXML);

        XmlInfosetBuilder builder = XmlInfosetBuilder.newInstance();
        XmlDocument doc = builder.parseReader(new StringReader( componentXML ) );
     
    Map components = getComponentWithXPP3(db, builder, doc.getDocumentElement(), id, templateController, component);
   
    InfoGlueComponent infoGlueComponent = (InfoGlueComponent)components.get(id);
    //logger.info("infoGlueComponent:" + infoGlueComponent);
View Full Code Here

Examples of org.xmlpull.v1.builder.XmlInfosetBuilder.parseReader()

    {
      componentXML = this.getPageComponentsString(db, templateController, parentSiteNodeVO.getId(), templateController.getLanguageId(), component.getContentId());
      //logger.info("componentXML:" + componentXML);
   
          builder = XmlInfosetBuilder.newInstance();
          doc = builder.parseReader(new StringReader( componentXML ) );
           
      components = getComponentWithXPP3(db, builder, doc.getDocumentElement(), id, templateController, component);
     
      infoGlueComponent = (InfoGlueComponent)components.get(id);
      //logger.info("infoGlueComponent:" + infoGlueComponent);
View Full Code Here

Examples of org.xmlpull.v1.builder.XmlInfosetBuilder.parseReader()

 
      String componentStructureXML = this.getPageComponentsString(db, templateController, siteNodeId, templateController.getLanguageId(), component.getContentId());
      //logger.info("componentStructureXML:" + componentStructureXML);
 
          XmlInfosetBuilder builder = XmlInfosetBuilder.newInstance();
          XmlDocument doc = builder.parseReader(new StringReader( componentStructureXML ) );
 
      Map components = getComponentWithXPP3(db, builder, doc.getDocumentElement(), id, templateController, component);
     
      if(components.containsKey(id))
        subComponents = (List)components.get(id);
View Full Code Here

Examples of org.xmlpull.v1.builder.XmlInfosetBuilder.parseReader()

        //logger.info("component:" + component);
        componentStructureXML = this.getPageComponentsString(db, templateController, parentSiteNodeVO.getId(), templateController.getLanguageId(), component.getContentId());
        //logger.info("componentStructureXML:" + componentStructureXML);
     
            builder = XmlInfosetBuilder.newInstance();
            doc = builder.parseReader(new StringReader( componentStructureXML ) );
             
        components = getComponentWithXPP3(db, builder, doc.getDocumentElement(), id, templateController, component);
       
        if(components.containsKey(id))
          subComponents = (List)components.get(id);
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.