Package org.jdom

Examples of org.jdom.Element.removeAttribute()


        Object o = it.next();
        if (o instanceof Element) {
          Element e = (Element) o;
          if ((file.equals(e.getAttributeValue("live_file")) || file.equals(e.getAttributeValue("file"))) && (node.equals(e.getAttributeValue("node")) || table.getSelectionCount() > 0 )) {
            found = true;                                               
            e.removeAttribute("live_file");
            e.removeAttribute("file");
            if(isLive)
              e.setAttribute("live_file", file);
            else
              e.setAttribute("file", file);
View Full Code Here


        if (o instanceof Element) {
          Element e = (Element) o;
          if ((file.equals(e.getAttributeValue("live_file")) || file.equals(e.getAttributeValue("file"))) && (node.equals(e.getAttributeValue("node")) || table.getSelectionCount() > 0 )) {
            found = true;                                               
            e.removeAttribute("live_file");
            e.removeAttribute("file");
            if(isLive)
              e.setAttribute("live_file", file);
            else
              e.setAttribute("file", file);
            Utils.setAttribute("node", node, e);
View Full Code Here

        table.getItem(index).setText(0, name);
        table.getItem(index).setText(1, value);
        Element e = (Element) _params.get(index);
        e.setName("copy_params");
        e.setAttribute("from", value);
        e.removeAttribute("name");
        e.removeAttribute("value");
        _dom.setChanged(true);       
        //if(type == Editor.JOB) _dom.setChangedForDirectory("job", Utils.getAttributeValue("name",_parent), SchedulerDom.MODIFY);
      }
     
View Full Code Here

        table.getItem(index).setText(1, value);
        Element e = (Element) _params.get(index);
        e.setName("copy_params");
        e.setAttribute("from", value);
        e.removeAttribute("name");
        e.removeAttribute("value");
        _dom.setChanged(true);       
        //if(type == Editor.JOB) _dom.setChangedForDirectory("job", Utils.getAttributeValue("name",_parent), SchedulerDom.MODIFY);
      }
     
    }
View Full Code Here

        table.getItem(index).setText(0, name);
        table.getItem(index).setText(1, value);
        Element e = (Element) _params.get(index);
        e.setName("copy_params");
        e.setAttribute("from", value);
        e.removeAttribute("name");
        e.removeAttribute("value");
        _dom.setChanged(true);
        //_dom.setChangedForDirectory("job", Utils.getAttributeValue("name",_job), SchedulerDom.MODIFY);
      }
    }
View Full Code Here

        table.getItem(index).setText(1, value);
        Element e = (Element) _params.get(index);
        e.setName("copy_params");
        e.setAttribute("from", value);
        e.removeAttribute("name");
        e.removeAttribute("value");
        _dom.setChanged(true);
        //_dom.setChangedForDirectory("job", Utils.getAttributeValue("name",_job), SchedulerDom.MODIFY);
      }
    }
View Full Code Here

          state = Utils.getAttributeValue("state", node);

          if (node.getName().equals("job_chain_node")) {
            if (Utils.getAttributeValue("job", node)== "") {
              nodetype = "Endnode";
              node.removeAttribute("next_state");//kann eventuell bei reorder changeup entstanden sein
            }else {
              nodetype = "Job";
            }
            action = Utils.getAttributeValue("job", node);
            next = Utils.getAttributeValue("next_state", node);
View Full Code Here

      } else {
       
        if(runTimeBackUpElem != null) {
         
          Element e = listener.getRunTime();
                e.removeAttribute("schedule");
          e.setContent(runTimeBackUpElem.cloneContent());           
          for(int i = 0; i < runTimeBackUpElem.getAttributes().size(); i++) {
            org.jdom.Attribute attr = (org.jdom.Attribute)runTimeBackUpElem.getAttributes().get(i);
            e.setAttribute(attr.getName(), attr.getValue(), e.getNamespace());
          }
View Full Code Here

      attrName = fname.substring(0, fname.indexOf("." + e.getName()));
    }

    Element _elem = e;
    if (name.equals("order")) {
      _elem.removeAttribute("job_chain");
      _elem.removeAttribute("id");
      _elem.removeAttribute("replace");
    } else {
      _elem.removeAttribute("name");
    }
View Full Code Here

    }

    Element _elem = e;
    if (name.equals("order")) {
      _elem.removeAttribute("job_chain");
      _elem.removeAttribute("id");
      _elem.removeAttribute("replace");
    } else {
      _elem.removeAttribute("name");
    }
    String xml = Utils.getElementAsString(_elem);
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.