Package org.jdom

Examples of org.jdom.Element.removeAttribute()


        }

        if (!found) {
            e = new Element("monitor");
            if (name.equals(EMPTY_MONITOR_NAME)) {               
                e.removeAttribute("name");
                Utils.setAttribute("ordering", ordering, e);
            } else {             
                Utils.setAttribute("name", name, e);
                Utils.setAttribute("ordering", ordering, e);
            }
View Full Code Here


  }

  private void init() {
    Element job = joblistener.getJob();
    if(job != null && Utils.getAttributeValue("tasks", job).equals("unbounded")) {
      job.removeAttribute("tasks");     
    }
  }

  public void showTasksForm() {
View Full Code Here

      if (!file.equals("")) {
        Element incl = desc.getChild("include");
        if (incl == null)
          desc.addContent(0, new Element("include").setAttribute((isLifeFileFile?"live_file":"file"), file));
        else {
          incl.removeAttribute("file");
          incl.removeAttribute("live_file");
          incl.setAttribute((isLifeFileFile?"live_file":"file"), file);
        }

      } else {
View Full Code Here

        Element incl = desc.getChild("include");
        if (incl == null)
          desc.addContent(0, new Element("include").setAttribute((isLifeFileFile?"live_file":"file"), file));
        else {
          incl.removeAttribute("file");
          incl.removeAttribute("live_file");
          incl.setAttribute((isLifeFileFile?"live_file":"file"), file);
        }

      } else {
        desc.removeChild("include");
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

    {
      //do nothing...just renew it
    }
    else if (type.equals("release"))
    {
      object2.removeAttribute("resourceid");
      object2.removeAttribute("entitytype");
      //do nothing...just release it
    }

    addSuccess(transaction);
View Full Code Here

      //do nothing...just renew it
    }
    else if (type.equals("release"))
    {
      object2.removeAttribute("resourceid");
      object2.removeAttribute("entitytype");
      //do nothing...just release it
    }

    addSuccess(transaction);
  }
View Full Code Here

    Element object3 = new Element("object");
    loadObject(object3,home+"users/"+credentials.getProperty("username")+"/device/"+object.getAttributeValue("resourceguid")+"/");
    Properties entittyname = new Properties();
    getExtendedAttributes(object3,entittyname);
    object3.removeChildren("attribute");
    object3.removeAttribute("resourceid");
    object3.removeAttribute("entitytype");
    transaction.addContent(object3);

    Common.recurseDelete(home+"users/"+credentials.getProperty("username")+"/device/"+object.getAttributeValue("resourceguid")+"/",false);
View Full Code Here

    loadObject(object3,home+"users/"+credentials.getProperty("username")+"/device/"+object.getAttributeValue("resourceguid")+"/");
    Properties entittyname = new Properties();
    getExtendedAttributes(object3,entittyname);
    object3.removeChildren("attribute");
    object3.removeAttribute("resourceid");
    object3.removeAttribute("entitytype");
    transaction.addContent(object3);

    Common.recurseDelete(home+"users/"+credentials.getProperty("username")+"/device/"+object.getAttributeValue("resourceguid")+"/",false);

    addSuccess(transaction);
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.