avalon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mirceat...@apache.org
Subject cvs commit: jakarta-avalon-excalibur/xmlutil/src/java/org/apache/avalon/excalibur/xml DOMHandlerFactory.java DOMHandler.java
Date Fri, 02 Aug 2002 05:00:18 GMT
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:   <mailto:avalon-cvs-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:avalon-cvs-help@jakarta.apache.org>


Mime
View raw message