org.jaxup.xupdate
Class NodeCopier

java.lang.Object
  |
  +--org.jaxup.xupdate.NodeCopier

public class NodeCopier
extends Object


Method Summary
static Object copyAttribute(Navigator from, org.jaxup.Updater to, Object toDoc, Object original)
          Copies an attribute completely.
static Object copyAttribute(Navigator from, org.jaxup.Updater to, Object toDoc, Object original, String newValue)
          Copies an attribute but assigns it a new value.
static Object copyComment(Navigator from, org.jaxup.Updater to, Object toDoc, Object original)
           
static Object copyElement(Navigator from, org.jaxup.Updater to, Object toDoc, Object original, boolean template)
           
static Object copyLiteral(Navigator from, org.jaxup.Updater to, Object toDoc, Object original, boolean template)
          Copies a node in the xupdate document document as an unplaced node for the source document.
static Object copyText(Navigator from, org.jaxup.Updater to, Object toDoc, 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 Object copyLiteral(Navigator from,
                                 org.jaxup.Updater to,
                                 Object toDoc,
                                 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.

JaxenException
UpdateException

copyText

public static Object copyText(Navigator from,
                              org.jaxup.Updater to,
                              Object toDoc,
                              Object original)
                       throws UpdateException
UpdateException

copyComment

public static Object copyComment(Navigator from,
                                 org.jaxup.Updater to,
                                 Object toDoc,
                                 Object original)
                          throws UpdateException
UpdateException

copyAttribute

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

UpdateException

copyAttribute

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

UpdateException

copyElement

public static Object copyElement(Navigator from,
                                 org.jaxup.Updater to,
                                 Object toDoc,
                                 Object original,
                                 boolean template)
                          throws JaxenException,
                                 UpdateException
JaxenException
UpdateException