Package org.jdom

Examples of org.jdom.Element.clone()


        return null;
      }
      if(  ((SchedulerDom)_dom).isDirectory()){
        return (Element)Utils.getHotFolderParentElement(retVal).clone();
      }
      return (Element)retVal.clone();
    }

    return null;

  }
View Full Code Here


  private Listener getCopyListener() {
    return new Listener() {
      public void handleEvent(Event e) {
        Element element = getElement();
        if (element != null) {
          _copy = (Element) element.clone();
          _type = ((TreeData) _tree.getSelection()[0].getData()).getType();
        }
      }
    };
  }
View Full Code Here

                  if(!listOfElement.isEmpty()){
                    Element e = listOfElement.get(0);
                    Element pe = e.getParentElement();
                    e.detach();
                    Element n = MergeAllXMLinDirectory.readElementFromHotHolderFile(hFfile);
                    pe.addContent((Element)n.clone());

                  }

                }
View Full Code Here

                  XPath x1 = XPath.newInstance(sXPATH);
                  List<Element> listOfElement = x1.selectNodes(dom.getDoc());
                  if(!listOfElement.isEmpty()) {
                    Element pe = listOfElement.get(0);
                    Element n = MergeAllXMLinDirectory.readElementFromHotHolderFile(newHFFile);
                    pe.addContent((Element)n.clone());
                  } else {

                    Element pe = new Element(sXPATH);             
                    dom.getRoot().addContent(pe);
                    Element n = MergeAllXMLinDirectory.readElementFromHotHolderFile(newHFFile);
View Full Code Here

                  } else {

                    Element pe = new Element(sXPATH);             
                    dom.getRoot().addContent(pe);
                    Element n = MergeAllXMLinDirectory.readElementFromHotHolderFile(newHFFile);
                    pe.addContent((Element)n.clone());

                  }
                }
                       
               
View Full Code Here

              // speichern soll es nicht zur�ckgeschrieben werden
              xmlRoot.setAttribute("name",
                  jobXMLNameWithoutExtension);
            }

            parent.addContent((Element) xmlRoot.clone());

            if (!new File(jobXMLFilename).canWrite()) {
              listOfReadOnly.add(getChildElementName(name) + "_"
                  + Utils.getAttributeValue("name", xmlRoot));
            }
View Full Code Here

          if (Utils.getAttributeValue("id", xmlRoot).length() == 0) {
            xmlRoot.setAttribute("id", orderId);
          }

          parent.addContent((Element) xmlRoot.clone());
          if (!new File(xmlFilename).canWrite()) {
            listOfReadOnly.add(getChildElementName(name) + "_"
                + Utils.getAttributeValue("job_chain", xmlRoot)
                + "," + Utils.getAttributeValue("id", xmlRoot));
          }
View Full Code Here

      _params = params.getChildren();     
      _includeParams = params.getChildren("include");
    }       
   
    Element elem = (Element)(_params.get(index));
    Object obj =   elem.clone();
    _params.remove(elem);
    _params.add(index-1, obj);

   
    table.removeAll();
View Full Code Here

    if(_params == null)
      initParams();


    Element elem = (Element)(_params.get(index));
    Object obj =   elem.clone();
    _params.remove(elem);
    _params.add(index+1, obj);

    table.removeAll();
    fillParams(table);
View Full Code Here

            int timeout = jobBean.getTimeout();
            log.debug(origStart.getTime() + " Materializing action for time=" + effStart.getTime()
                    + ", lastactionnumber=" + lastActionNumber);
            Date actualTime = new Date();
            action = CoordCommandUtils.materializeOneInstance(jobId, dryrun, (Element) eJob.clone(),
                    effStart.getTime(), actualTime, lastActionNumber, conf, actionBean);
            int catchUpTOMultiplier = 1; // This value might be could be changed in future
            if (actionBean.getNominalTimestamp().before(jobBean.getCreatedTimestamp())) {
                // Catchup action
                timeout = catchUpTOMultiplier * timeout;
 
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.