Project JXTA

net.jxta.document
Class StructuredDocumentUtils

java.lang.Object
  |
  +--net.jxta.document.StructuredDocumentUtils

public final class StructuredDocumentUtils
extends java.lang.Object

StructuredDocumentUtils provides a number of static utility members which are helpful in manipluating StructuredDocuments.


Constructor Summary
StructuredDocumentUtils()
           
 
Method Summary
static void copyElements(StructuredDocument intoDoc, Element intoElement, Element from)
          Recursively copy elements beginnging with from into the document identified by intoDoc.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StructuredDocumentUtils

public StructuredDocumentUtils()
Method Detail

copyElements

public static void copyElements(StructuredDocument intoDoc,
                                Element intoElement,
                                Element from)
Recursively copy elements beginnging with from into the document identified by intoDoc.
Parameters:
intoDoc - the document into which the elements which will be copied.
intoElement - the element which will serve as the parent for the elements being copied.
from - the root element of the hierarchy which will be copied.

Project JXTA