org.jaxup.xupdate
Class NodeCopier

java.lang.Object
  extended by org.jaxup.xupdate.NodeCopier

public class NodeCopier
extends java.lang.Object


Method Summary
static java.lang.Object copyAttribute(Navigator from, Updater to, java.lang.Object toDoc, java.lang.Object original)
          Copies an attribute completely.
static java.lang.Object copyAttribute(Navigator from, Updater to, java.lang.Object toDoc, java.lang.Object original, java.lang.String newValue)
          Copies an attribute but assigns it a new value.
static java.lang.Object copyComment(Navigator from, Updater to, java.lang.Object toDoc, java.lang.Object original)
           
static java.lang.Object copyElement(Navigator from, Updater to, java.lang.Object toDoc, java.lang.Object original, boolean template)
           
static java.lang.Object copyLiteral(Navigator from, Updater to, java.lang.Object toDoc, java.lang.Object original, boolean template)
          Copies a node in the xupdate document document as an unplaced node for the source document.
static java.lang.Object copyText(Navigator from, Updater to, java.lang.Object toDoc, java.lang.Object original)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

copyLiteral

public static java.lang.Object copyLiteral(Navigator from,
                                           Updater to,
                                           java.lang.Object toDoc,
                                           java.lang.Object original,
                                           boolean template)
                                    throws JaxenException,
                                           UpdateException
Copies a node in the xupdate document document as an unplaced node for the source document. This ignores comments, XUpdate namespace declarations, etc.

Throws:
JaxenException
UpdateException

copyText

public static java.lang.Object copyText(Navigator from,
                                        Updater to,
                                        java.lang.Object toDoc,
                                        java.lang.Object original)
                                 throws UpdateException
Throws:
UpdateException

copyComment

public static java.lang.Object copyComment(Navigator from,
                                           Updater to,
                                           java.lang.Object toDoc,
                                           java.lang.Object original)
                                    throws UpdateException
Throws:
UpdateException

copyAttribute

public static java.lang.Object copyAttribute(Navigator from,
                                             Updater to,
                                             java.lang.Object toDoc,
                                             java.lang.Object original)
                                      throws UpdateException
Copies an attribute completely.

Throws:
UpdateException

copyAttribute

public static java.lang.Object copyAttribute(Navigator from,
                                             Updater to,
                                             java.lang.Object toDoc,
                                             java.lang.Object original,
                                             java.lang.String newValue)
                                      throws UpdateException
Copies an attribute but assigns it a new value.

Throws:
UpdateException

copyElement

public static java.lang.Object copyElement(Navigator from,
                                           Updater to,
                                           java.lang.Object toDoc,
                                           java.lang.Object original,
                                           boolean template)
                                    throws JaxenException,
                                           UpdateException
Throws:
JaxenException
UpdateException