Package org.dom4j.tree

Examples of org.dom4j.tree.DefaultElement.clone()


    DefaultElement elementToCopy = rootNode.getElementByIdentifier(sourceID);
    if (elementToCopy == null) { throw new OLATRuntimeException(CPOrganizations.class, "element with identifier \"" + sourceID
        + "\" not found..!", new Exception()); }

    if (elementToCopy instanceof CPItem) {
      CPItem newItem = (CPItem) elementToCopy.clone();
      cloneResourceOfItemAndSubitems(newItem);
      addElementAfter(newItem, targetID);
      return newItem.getIdentifier();
    } else {
      // if (elementToCopy.getClass().equals(CPOrganization.class)) {
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.