com.taursys.dom
Class Tidy_DOM_2_20001113_DocumentAdapter

java.lang.Object
  extended bycom.taursys.dom.DOM_1_20000929_DocumentAdapter
      extended bycom.taursys.dom.DOM_2_20001113_DocumentAdapter
          extended bycom.taursys.dom.Tidy_DOM_2_20001113_DocumentAdapter
All Implemented Interfaces:
DocumentAdapter

public class Tidy_DOM_2_20001113_DocumentAdapter
extends DOM_2_20001113_DocumentAdapter

Tidy_DOM_2_20001113_DocumentAdapter is DocumentAdapter for Tidy DOM version 2 11/13/2000

Author:
marty

Constructor Summary
Tidy_DOM_2_20001113_DocumentAdapter(java.lang.Object newDoc)
          Constructs a new Tidy_DOM_2_20001113_DocumentAdapter for given document.
 
Method Summary
 void importContents(DocumentAdapter sourceAdapter, java.lang.String sourceId, java.lang.String destId)
          Import the contents from the given sourceAdapter at the sourceId and replace the contents of the destId in this DocumentAdapter.
 
Methods inherited from class com.taursys.dom.DOM_1_20000929_DocumentAdapter
createDefaultWriter, findFirstTextNode, getAttribute, getDocument, getElementById, getElementText, getIdentifierMap, getXMLWriter, hasChildElements, mapIdentifiers, removeAttribute, setAttributeText, setDocument, setElementText, setElementText, setXMLWriter, write, write
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Tidy_DOM_2_20001113_DocumentAdapter

public Tidy_DOM_2_20001113_DocumentAdapter(java.lang.Object newDoc)
Constructs a new Tidy_DOM_2_20001113_DocumentAdapter for given document. Also maps all the identifiers for this document

Parameters:
newDoc - document managed by this adapter
Method Detail

importContents

public void importContents(DocumentAdapter sourceAdapter,
                           java.lang.String sourceId,
                           java.lang.String destId)
                    throws DocumentAdapterException
Import the contents from the given sourceAdapter at the sourceId and replace the contents of the destId in this DocumentAdapter. All the child contents of the sourceId are copied (not including the element with the sourceId). The id's are then re-mapped for this document.

Specified by:
importContents in interface DocumentAdapter
Overrides:
importContents in class DOM_1_20000929_DocumentAdapter
Parameters:
sourceAdapter - the source DocumentAdapter for the import
sourceId - the parent element to import contents from
destId - the parent element to import the contents to
Throws:
java.lang.IllegalArgumentException - if any arguments are null
DocumentAdapterException - if sourceId or destId is invalid


Copyright © 2007 Martin T Phelan. All Rights Reserved.