Package org.jdom.xpath

Examples of org.jdom.xpath.XPath.selectNodes()


          dom.isLifeElement() || dom.isDirectory(),
          dom.getFilename());


      XPath x = XPath.newInstance("//process[@state='"+ state + "']");        
      List listOfElement = x.selectNodes(detailListener.getDoc());

      if(!listOfElement.isEmpty()) {

        Element process = (Element)listOfElement.get(0);
        process.detach();
View Full Code Here


        //FAll 2: Es gibt eine Details Parameter. D.h. nur der eine job in der Jobkette mit der state bekommt einen Monitoring 
        sel = "//job_chain[@name='"+ jobChainname + "']/job_chain_node[@state='"+state+"']";

      }     
      XPath x = XPath.newInstance(sel);        
      List listOfElement = x.selectNodes(dom.getDoc());

      if(!listOfElement.isEmpty()) {
        for(int i = 0; i < listOfElement.size(); i++) {

          Element jobChainNode = (Element)listOfElement.get(i);
View Full Code Here

                x2 = XPath.newInstance("//job[@name='"+new File(jobname).getName()+"']/monitor/script[@java_class='sos.scheduler.managed.configuration.ConfigurationOrderMonitor']");
              }

              SchedulerDom currdom = (SchedulerDom)form.getDom();

              listOfElement2 = x2.selectNodes(currdom.getDoc());
              if(listOfElement2.isEmpty()) {             
                XPath x3 = null;
                XPath x4 = null;
                if(tab.getFilelist().contains(hotFolderfilename)) {
                  x3 = XPath.newInstance("//job/monitor/script[@java_class='sos.scheduler.managed.configuration.ConfigurationOrderMonitor']");
View Full Code Here

                  x3 = XPath.newInstance("//job[@name='"+new File(jobname).getName()+"']/monitor/script[@java_class='sos.scheduler.managed.configuration.ConfigurationOrderMonitor']");
                  x4 = XPath.newInstance("//job[@name='"+new File(jobname).getName()+"']");
                }
                List listOfElement3  = x3.selectNodes(currdom.getDoc());
                if(listOfElement3.isEmpty()) {                 
                  List listOfElement4  = x4.selectNodes(currdom.getDoc());
                  Element job = (Element)listOfElement4.get(0);
                  addMonitoring(job, currdom);

                  if(currdom.isLifeElement())
                    form.getTree().setSelection(new org.eclipse.swt.widgets.TreeItem[] { form.getTree().getItem(0) });
View Full Code Here

                x2 = XPath.newInstance("//job/monitor/script[@java_class='sos.scheduler.managed.configuration.ConfigurationOrderMonitor']");

              listOfElement2 = x2.selectNodes(currDom.getDoc());
              if(listOfElement2.isEmpty()) {             
                XPath x3 = XPath.newInstance("//job");
                List listOfElement3  = x3.selectNodes(currDom.getDoc());
                if(!listOfElement3.isEmpty()) {
                  Element job = (Element)listOfElement3.get(0);
                  addMonitoring(job, currDom);
                  currDom.writeElement(currDom.getFilename(), currDom.getDoc());
                  MainWindow.getContainer().getCurrentTab().setData("ftp_details_parameter_file", hotFolderfilename);
View Full Code Here

              }
            }
          } else {
            XPath x2 = XPath.newInstance("//job[@name='"+ jobname + "']/monitor/script[@java_class='sos.scheduler.managed.configuration.ConfigurationOrderMonitor']");
            listOfElement2 = x2.selectNodes(dom.getDoc());
            if(listOfElement2.isEmpty()) {             
              XPath x3 = XPath.newInstance("//jobs/job[@name='"+ jobname + "']");
              List listOfElement3  = x3.selectNodes(dom.getDoc());
              if(!listOfElement3.isEmpty()) {
                Element job = (Element)listOfElement3.get(0);
View Full Code Here

          } else {
            XPath x2 = XPath.newInstance("//job[@name='"+ jobname + "']/monitor/script[@java_class='sos.scheduler.managed.configuration.ConfigurationOrderMonitor']");
            listOfElement2 = x2.selectNodes(dom.getDoc());
            if(listOfElement2.isEmpty()) {             
              XPath x3 = XPath.newInstance("//jobs/job[@name='"+ jobname + "']");
              List listOfElement3  = x3.selectNodes(dom.getDoc());
              if(!listOfElement3.isEmpty()) {
                Element job = (Element)listOfElement3.get(0);
                addMonitoring(job, dom);

                if(update != null) {
View Full Code Here

      if(global)
        x = XPath.newInstance("//order/params/param");
      else
        x = XPath.newInstance("//process[@state='"+ state + "']/params/param");
     
      List listOfElement = x.selectNodes(detailListener.getDoc());

      return !listOfElement.isEmpty();


View Full Code Here

          dom.isLifeElement() || dom.isDirectory(),
          dom.getFilename());

      //Document d = detailListener.getDoc();
      XPath x = XPath.newInstance("//order/params/param");        
      List listOfElement = x.selectNodes(detailListener.getDoc());

      if(!listOfElement.isEmpty()){


        String hotFolderfilename = new File(Options.getSchedulerHotFolder(), jobname + ".job.xml").getCanonicalPath();
View Full Code Here

            //Hot Folder Element ist in einem Tabraiter offen 
            //org.eclipse.swt.custom.CTabItem f = tab.getFolderTab(hotFolderfilename);
            SchedulerForm form =(SchedulerForm)tab.getEditor(hotFolderfilename);
            SchedulerDom currdom = (SchedulerDom)form.getDom();

            listOfElement2 = x2.selectNodes(currdom.getDoc());
            if(listOfElement2.isEmpty()) {             
              XPath x3 = XPath.newInstance("//job/monitor/script[@java_class='sos.scheduler.managed.configuration.ConfigurationOrderMonitor']");
              List listOfElement3  = x3.selectNodes(currdom.getDoc());
              if(listOfElement3.isEmpty()) {
                x3 = XPath.newInstance("//job");
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.