nl.justobjects.toolkit.xml
Class ElementCopyVisitor

java.lang.Object
  |
  +--nl.justobjects.toolkit.xml.DefaultVisitor
        |
        +--nl.justobjects.toolkit.xml.ElementCopyVisitor
All Implemented Interfaces:
Visitor

public class ElementCopyVisitor
extends DefaultVisitor

Makes deep copy of an Element for another Document. $Id: ElementCopyVisitor.java,v 1.4 2003/01/06 00:23:49 just Exp $

Author:
$Author: just $ - Just van den Broecke - Just Objects B.V. ©

Field Summary
(package private)  org.w3c.dom.Element elementCopy
           
(package private)  org.w3c.dom.Element elementOrig
           
(package private)  org.w3c.dom.Element elementPointer
           
(package private)  int level
           
(package private)  org.w3c.dom.Document ownerDocument
           
 
Constructor Summary
ElementCopyVisitor(org.w3c.dom.Document theOwnerDocument, org.w3c.dom.Element theElement)
           
 
Method Summary
 org.w3c.dom.Element getCopy()
           
private  void p(java.lang.String s)
           
 void visitDocumentPost(org.w3c.dom.Document document)
           
 void visitDocumentPre(org.w3c.dom.Document document)
           
 void visitElementPost(org.w3c.dom.Element element)
           
 void visitElementPre(org.w3c.dom.Element element)
           
 void visitText(org.w3c.dom.Text element)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

ownerDocument

org.w3c.dom.Document ownerDocument

elementOrig

org.w3c.dom.Element elementOrig

elementCopy

org.w3c.dom.Element elementCopy

elementPointer

org.w3c.dom.Element elementPointer

level

int level
Constructor Detail

ElementCopyVisitor

public ElementCopyVisitor(org.w3c.dom.Document theOwnerDocument,
                          org.w3c.dom.Element theElement)
Method Detail

getCopy

public org.w3c.dom.Element getCopy()

visitDocumentPre

public void visitDocumentPre(org.w3c.dom.Document document)
Overrides:
visitDocumentPre in class DefaultVisitor

visitDocumentPost

public void visitDocumentPost(org.w3c.dom.Document document)
Overrides:
visitDocumentPost in class DefaultVisitor

visitElementPre

public void visitElementPre(org.w3c.dom.Element element)
Overrides:
visitElementPre in class DefaultVisitor

visitElementPost

public void visitElementPost(org.w3c.dom.Element element)
Overrides:
visitElementPost in class DefaultVisitor

visitText

public void visitText(org.w3c.dom.Text element)
Overrides:
visitText in class DefaultVisitor

p

private void p(java.lang.String s)


Copyright © 2000-2001 - Just Objects B.V.