net.datacrow.util
Class XMLParser

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by net.datacrow.util.XMLParser
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public abstract class XMLParser
extends org.xml.sax.helpers.DefaultHandler


Constructor Summary
XMLParser()
           
 
Method Summary
static boolean getBoolean(org.w3c.dom.Element element, java.lang.String tag)
           
static java.io.File getFile(org.w3c.dom.Element element, java.lang.String tag)
           
static javax.swing.ImageIcon getIcon(org.w3c.dom.Element element, java.lang.String tag)
           
static int getInt(org.w3c.dom.Element element, java.lang.String tag)
           
static javax.swing.KeyStroke getKeyStroke(org.w3c.dom.Element element, java.lang.String tag)
           
static java.lang.String getString(org.w3c.dom.Element element, java.lang.String tag)
           
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
characters, endDocument, endElement, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLParser

public XMLParser()
Method Detail

getKeyStroke

public static javax.swing.KeyStroke getKeyStroke(org.w3c.dom.Element element,
                                                 java.lang.String tag)
                                          throws InvalidValueException
Throws:
InvalidValueException

getIcon

public static javax.swing.ImageIcon getIcon(org.w3c.dom.Element element,
                                            java.lang.String tag)
                                     throws InvalidValueException
Throws:
InvalidValueException

getFile

public static java.io.File getFile(org.w3c.dom.Element element,
                                   java.lang.String tag)
                            throws InvalidValueException
Throws:
InvalidValueException

getBoolean

public static boolean getBoolean(org.w3c.dom.Element element,
                                 java.lang.String tag)
                          throws InvalidValueException
Throws:
InvalidValueException

getInt

public static int getInt(org.w3c.dom.Element element,
                         java.lang.String tag)
                  throws InvalidValueException
Throws:
InvalidValueException

getString

public static java.lang.String getString(org.w3c.dom.Element element,
                                         java.lang.String tag)