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 15:49:32

  Modified:    sandbox/metaclass/src/java/org/realityforge/metaclass/io
                        DOMMetaClassDeserializer.java
  Log:
  Javadocs
  
  Revision  Changes    Path
  1.7       +14 -5     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.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- DOMMetaClassDeserializer.java	31 Oct 2003 23:48:14 -0000	1.6
  +++ DOMMetaClassDeserializer.java	31 Oct 2003 23:49:32 -0000	1.7
  @@ -22,7 +22,7 @@
   /**
    *
    * @author <a href="mailto:peter at realityforge.org">Peter Donald</a>
  - * @version $Revision: 1.6 $ $Date: 2003/10/31 23:48:14 $
  + * @version $Revision: 1.7 $ $Date: 2003/10/31 23:49:32 $
    */
   public class DOMMetaClassDeserializer
   {
  @@ -300,17 +300,26 @@
           }
       }
   
  -
  +    /**
  +     * Expect that specified element has attribute with specified
  +     * name and return value. If attribute can not be located then
  +     * throw an exception.
  +     *
  +     * @param element the element
  +     * @param name the attributes name
  +     * @return the attributes value
  +     * @throws Exception if unable to locate attribute
  +     */
       String expectAttribute( final Element element,
  -                            final String expected )
  +                            final String name )
           throws Exception
       {
  -        final Attr actual = element.getAttributeNode( expected );
  +        final Attr actual = element.getAttributeNode( name );
           if( null == actual )
           {
               final String message =
                   "Element named " + element.getTagName() +
  -                " missing attribute named " + expected +
  +                " missing attribute named " + name +
                   " @ " + getPathDescription( element ) + ".";
               throw new Exception( message );
           }
  
  
  


-------------------------------------------------------
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.