cgl.narada.wsinfra.util
Class XmlContentTransfer

java.lang.Object
  extended by cgl.narada.wsinfra.util.XmlContentTransfer

public class XmlContentTransfer
extends Object

This is a utility class which performs several functions related to the transfer of XmlContent between elements.


Method Summary
 void copyFromSourceToDestination(XmlCursor sourceCursor, XmlCursor destinationCursor)
          This method performs a copy of the XmlContents from the source to the destination cursor.
 void copyFromSourceToDestination(XmlObject source, XmlCursor destinationCursor)
          Copy the Xml Contents from the source to the destination.
 void copyFromSourceToDestination(XmlObject source, XmlObject destination)
          Copy the Xml Contents from the source to the destination.
 void copyFromSourceToDestinationAsFirstChild(XmlObject sourceObject, XmlObject destinationObject)
          This method copies the contents of the destination object as the first child within the source object.
 void copyFromSourceToDestinationAsLastChild(XmlObject sourceObject, XmlObject destinationObject)
          This method copies the contents of the destination object as the last child within the source object.
static XmlContentTransfer getInstance()
          Get instance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInstance

public static XmlContentTransfer getInstance()
Get instance


copyFromSourceToDestination

public void copyFromSourceToDestination(XmlObject source,
                                        XmlObject destination)
Copy the Xml Contents from the source to the destination. Note that this method also positions the destination cursor at the right location prior to the actual copy.


copyFromSourceToDestination

public void copyFromSourceToDestination(XmlObject source,
                                        XmlCursor destinationCursor)
Copy the Xml Contents from the source to the destination.


copyFromSourceToDestination

public void copyFromSourceToDestination(XmlCursor sourceCursor,
                                        XmlCursor destinationCursor)
This method performs a copy of the XmlContents from the source to the destination cursor.


copyFromSourceToDestinationAsLastChild

public void copyFromSourceToDestinationAsLastChild(XmlObject sourceObject,
                                                   XmlObject destinationObject)
This method copies the contents of the destination object as the last child within the source object.


copyFromSourceToDestinationAsFirstChild

public void copyFromSourceToDestinationAsFirstChild(XmlObject sourceObject,
                                                    XmlObject destinationObject)
This method copies the contents of the destination object as the first child within the source object.



For comments and suggestions please send e-mail to The NaradaBrokering Project