comments
authorplaa <plaa@180e2498-e6e9-4542-8430-84ac67f01cd8>
Wed, 25 Nov 2009 16:14:23 +0000 (16:14 +0000)
committerplaa <plaa@180e2498-e6e9-4542-8430-84ac67f01cd8>
Wed, 25 Nov 2009 16:14:23 +0000 (16:14 +0000)
git-svn-id: https://openrocket.svn.sourceforge.net/svnroot/openrocket/trunk@31 180e2498-e6e9-4542-8430-84ac67f01cd8

src/net/sf/openrocket/file/simplesax/DelegatorHandler.java
src/net/sf/openrocket/file/simplesax/NullElementHandler.java

index b5403b521d8feed037b22bdb5c3117730dcc0c31..08b9ef0ab28bcf632452f0542bd03a3a284bd13e 100644 (file)
@@ -11,7 +11,7 @@ import org.xml.sax.SAXException;
 import org.xml.sax.helpers.DefaultHandler;
 
 /**
- * The actual handler class.  Contains the necessary methods for parsing the SAX source.
+ * The actual SAX handler class.  Contains the necessary methods for parsing the SAX source.
  * Delegates the actual content parsing to {@link ElementHandler} objects.
  */
 class DelegatorHandler extends DefaultHandler {
index 03bb1249405c8805a3b4b4c332f6f2a2502ceec9..e8dd2df8070ff05da9f240f17e03bef1d468b228 100644 (file)
@@ -8,16 +8,18 @@ import net.sf.openrocket.aerodynamics.WarningSet;
 import org.xml.sax.SAXException;
 
 /**
- * An element handler that does not accept any content in the element except whitespace
- * text.  All subelements are ignored and an error is produced of them.  Any attributes
- * are ignored.
+ * A singleton element handler that does not accept any content in the element
+ * except whitespace text.  All subelements are ignored and a warning is produced
+ * of them.  It ignores any attributes.
+ * <p>
+ * This class can be used for elements that have no content but contain attributes.
  * 
  * @author Sampo Niskanen <sampo.niskanen@iki.fi>
  */
 public class NullElementHandler extends ElementHandler {
        public static final NullElementHandler INSTANCE = new NullElementHandler();
 
-       private static final HashMap<String, String> EMPTY_MAP = new HashMap<String,String>(); 
+       private static final HashMap<String, String> EMPTY_MAP = new HashMap<String,String>();
        
        private NullElementHandler() {
        }