cvs commit: spice/sandbox/metaclass/src/java/org/realityforge/metaclass/io DOMMetaClassDeserializer.java

Peter Donald <[email protected]>
Newsgroups gmane.comp.java.spice.cvs
Message-ID <[email protected]>
donaldp     03/10/31 16:04:35

  Modified:    sandbox/metaclass/src/java/org/realityforge/metaclass/io
                        DOMMetaClassDeserializer.java
  Log:
  Build ClassDescriptor from document aswell
  
  Revision  Changes    Path
  1.10      +15 -1     spice/sandbox/metaclass/src/java/org/realityforge/metaclass/io/DOMMetaClassDeserializer.java
  
  Index: DOMMetaClassDeserializer.java
  ===================================================================
  RCS file: /cvsroot/spice/spice/sandbox/metaclass/src/java/org/realityforge/metaclass/io/DOMMetaClassDeserializer.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- DOMMetaClassDeserializer.java	1 Nov 2003 00:03:08 -0000	1.9
  +++ DOMMetaClassDeserializer.java	1 Nov 2003 00:04:35 -0000	1.10
  @@ -18,16 +18,30 @@
   import org.w3c.dom.Node;
   import org.w3c.dom.NodeList;
   import org.w3c.dom.Attr;
  +import org.w3c.dom.Document;
   
   /**
    * Utility class to build a ClassDescriptor from a DOM
    * representation Element.
    *
    * @author <a href="mailto:peter at realityforge.org">Peter Donald</a>
  - * @version $Revision: 1.9 $ $Date: 2003/11/01 00:03:08 $
  + * @version $Revision: 1.10 $ $Date: 2003/11/01 00:04:35 $
    */
   public class DOMMetaClassDeserializer
   {
  +    /**
  +     * Build a ClassDescriptor from a Document.
  +     *
  +     * @param document the document
  +     * @return the ClassDescriptor
  +     * @throws Exception if document malformed
  +     */
  +    public ClassDescriptor buildClassDescriptor( final Document document )
  +        throws Exception
  +    {
  +        return buildClassDescriptor( document.getDocumentElement() );
  +    }
  +
       /**
        * Build a ClassDescriptor from element.
        *
  
  
  


-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive?  Does it
help you create better code?   SHARE THE LOVE, and help us help
YOU!  Click Here: http://sourceforge.net/donate/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.