You are viewing a plain text version of this content. The canonical link for it is here.
Posted to cvs@avalon.apache.org by mi...@apache.org on 2002/08/02 07:00:18 UTC

cvs commit: jakarta-avalon-excalibur/xmlutil/src/java/org/apache/avalon/excalibur/xml DOMHandlerFactory.java DOMHandler.java

mirceatoma    2002/08/01 22:00:18

  Added:       xmlutil/src/java/org/apache/avalon/excalibur/xml
                        DOMHandlerFactory.java DOMHandler.java
  Log:
  Add interface for separating the aspect of XML parsing from the document tree building.
  
  Revision  Changes    Path
  1.1                  jakarta-avalon-excalibur/xmlutil/src/java/org/apache/avalon/excalibur/xml/DOMHandlerFactory.java
  
  Index: DOMHandlerFactory.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE.txt file.
   */
  package org.apache.avalon.excalibur.xml;
  
  /**
   * The factory creates a DOMHandler encapsulating a DOM document. The document 
   * behaviour is setup by the factory.
   *
   * @author <a href="mailto:mirceatoma@apache.org">Mircea Toma</a>
   * @version CVS $Revision: 1.1 $ $Date: 2002/08/02 05:00:18 $
   */
  public interface DOMHandlerFactory {
      
      String ROLE = DOMHandlerFactory.class.getName();
      
      DOMHandler createDOMHandler();    
  }
  
  
  
  1.1                  jakarta-avalon-excalibur/xmlutil/src/java/org/apache/avalon/excalibur/xml/DOMHandler.java
  
  Index: DOMHandler.java
  ===================================================================
  /*
   * Copyright (C) The Apache Software Foundation. All rights reserved.
   *
   * This software is published under the terms of the Apache Software License
   * version 1.1, a copy of which has been included with this distribution in
   * the LICENSE.txt file.
   */
  
  package org.apache.avalon.excalibur.xml;
  
  import org.w3c.dom.Document;
  import org.xml.sax.ContentHandler;
  
  /**
   * ContentHandler encapsulating a DOM document. The document tree is built
   * from SAX events sent to the handler.
   *
   * @author <a href="mailto:mirceatoma@apache.org">Mircea Toma</a>
   * @version CVS $Revision: 1.1 $ $Date: 2002/08/02 05:00:18 $
   */
  public interface DOMHandler extends ContentHandler {
      
      Document getDocument();
      
  }
  
  
  

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>