Package org.xmlpull.v1.builder.xpath

Examples of org.xmlpull.v1.builder.xpath.Xb1XPath.selectNodes()


        {
          xpathObject = new Xb1XPath( propertyXPath );
          cachedXPathObjects.put(propertyXPath, xpathObject);
        }

        List anl = xpathObject.selectNodes( doc );

    //If not found on the same component id - let's check them all and use the first we find.
    if(anl == null || anl.size() == 0)
    {
      String globalPropertyXPath = "(//component/properties/property[@name='" + propertyName + "'])[1]";
View Full Code Here


      String globalPropertyXPath = "(//component/properties/property[@name='" + propertyName + "'])[1]";
      if(propertyName.equals("GUFlashImages") || propertyName.equals("MiniArticleShortcuts"))
        this.templateController.getDeliveryContext().addDebugInformation("DEBUG INFO globalPropertyXPath: " + globalPropertyXPath + " (Thread" + Thread.currentThread().getId() + ").\n");
     
      Xb1XPath globalXpathObject = new Xb1XPath( globalPropertyXPath );
          anl = globalXpathObject.selectNodes( doc );
    }     

    Iterator anlIterator = anl.iterator();
    while(anlIterator.hasNext())
    {
View Full Code Here

        Locale locale = LanguageDeliveryController.getLanguageDeliveryController().getLocaleWithId(templateController.getDatabase(), languageId);

        String componentXPath = "//component[@id=" + componentId + "]/properties/property[@name='" + name + "']";

        Xb1XPath globalXpathObject = new Xb1XPath( componentXPath );
        List propertyNL = globalXpathObject.selectNodes( doc );

        Iterator propertyNLIterator = propertyNL.iterator();
        while(propertyNLIterator.hasNext())
        {
          XmlElement propertyElement2 = (XmlElement)propertyNLIterator.next();
View Full Code Here

        {
          xpathObject = new Xb1XPath( propertyXPath );
          cachedXPathObjects.put(propertyXPath, xpathObject);
        }

        List anl = xpathObject.selectNodes( doc );

    //If not found on the same component id - let's check them all and use the first we find.
    if(anl == null || anl.size() == 0)
    {
      String globalPropertyXPath = "(//component/properties/property[@name='" + propertyName + "'])[1]";
View Full Code Here

    if(anl == null || anl.size() == 0)
    {
      String globalPropertyXPath = "(//component/properties/property[@name='" + propertyName + "'])[1]";
     
      Xb1XPath globalXpathObject = new Xb1XPath( globalPropertyXPath );
          anl = globalXpathObject.selectNodes( doc );
    }     

    StringBuilder sb = new StringBuilder();
   
    Iterator anlIterator = anl.iterator();
View Full Code Here

       
    String propertyXPath = "//component[@id=" + componentId + "]/properties/property[@name='" + propertyName + "']";
   
    Xb1XPath xpathObject = new Xb1XPath( propertyXPath );

        List anl = xpathObject.selectNodes( doc );

    //If not found on the same component id - let's check them all and use the first we find.
    if(anl == null || anl.size() == 0)
    {
      String globalPropertyXPath = "(//component/properties/property[@name='" + propertyName + "'])[1]";
View Full Code Here

    if(anl == null || anl.size() == 0)
    {
      String globalPropertyXPath = "(//component/properties/property[@name='" + propertyName + "'])[1]";
     
      Xb1XPath globalXpathObject = new Xb1XPath( globalPropertyXPath );
          anl = globalXpathObject.selectNodes( doc );
    }     

    StringBuilder sb = new StringBuilder();
   
    Iterator anlIterator = anl.iterator();
View Full Code Here

    Xb1XPath xpathObject = new Xb1XPath( componentXPath );

        //This keeps track of the cached inherited components.
        StringBuilder sb = new StringBuilder();
       
        List componentNodeList = xpathObject.selectNodes( doc.getDocumentElement() );
    Iterator componentNodeListIterator = componentNodeList.iterator();
    while(componentNodeListIterator.hasNext())
    {
      XmlElement child   = (XmlElement)componentNodeListIterator.next();
     
View Full Code Here

        {
          xpathObject = new Xb1XPath(componentXPath);
          cachedXPathObjects.put(componentXPath, xpathObject);
        }

        List componentNodeList = xpathObject.selectNodes( element );
    Iterator componentNodeListIterator = componentNodeList.iterator();
    while(componentNodeListIterator.hasNext())
    {
      XmlElement child   = (XmlElement)componentNodeListIterator.next();
      Integer id       = new Integer(child.getAttributeValue(child.getNamespaceName(), "id"));
View Full Code Here

          {
            xpathObject2 = new Xb1XPath("properties");
            cachedXPathObjects.put("properties", xpathObject2);
          }

          List propertiesNodeList = xpathObject2.selectNodes( child );
      if(propertiesNodeList.size() > 0)
      {
        XmlElement propertiesElement = (XmlElement)propertiesNodeList.get(0);
       
        Xb1XPath xpathObject3 = (Xb1XPath)cachedXPathObjects.get("property");
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.