View Javadoc
1   /*
2    * DomHandler.java
3    *
4    * Created on December 21, 2004, 10:45 AM
5    */
6   
7   package gov.noaa.eds.xapi.generic;
8   
9   import org.w3c.dom.Document;
10  import org.w3c.dom.Node;
11  
12  /***
13   * Implement this interface to create a simple access method to an XML resource.
14   * @author tns
15   * @version $Id: DomHandler.java,v 1.2 2004/12/23 22:26:01 mrxtravis Exp $
16   */
17  public interface DomHandler {
18      
19      /*** Return the resources as a DOM Document 
20       *@return The resource as a Document
21       */
22      public Document getResourceAsDocument() throws DomHandlerException;
23      
24      /*** Sets the resource as the specified Node
25       *@param node Set the resource to be a reflextion of this node
26       */
27      public void setResourceAsNode(Node node) throws DomHandlerException;
28      
29  }