|
From: <fb...@us...> - 2003-06-25 20:40:28
|
Update of /cvsroot/jgb/jgb/src/java/core/jgb/handlers/swing
In directory sc8-pr-cvs1:/tmp/cvs-serv13702/src/java/core/jgb/handlers/swing
Added Files:
NullTagHandler.java
Log Message:
* src/dtd/dtd.xml:
Added reference to new null tag handler.
Based on diff submitted by Steven Oglesby.
* src/java/tests/jgb/handlers/swing/TestNullTagHandler.java:
Added new tag handler tests for passing null values around.
Based on diff submitted by Steven Oglesby.
* src/java/tests/jgb/handlers/swing/AllTests.java:
Added reference to TestNullTagHandler.
Based on diff submitted by Steven Oglesby.
* src/java/core/jgb/handlers/swing/NullTagHandler.java:
Implemented tests.
Based on diff submitted by Steven Oglesby.
--- NEW FILE: NullTagHandler.java ---
/*
* Copyright (C) 2002, Francois Beausoleil
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or any later
* version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
* You may contact the author of this software at: fb...@us...
*/
package jgb.handlers.swing;
import org.xml.sax.SAXException;
import java.util.Map;
public class NullTagHandler extends AbstractValueTagHandler {
protected void enterElement(Map atts) throws SAXException {
String className = (String) atts.get(ATTR_CLASS);
try {
Class clazz = Class.forName(className);
updateContextParameters(clazz, null);
} catch (ClassNotFoundException cnfe) {
throwParsingException("Declared class could not found: " +
className, cnfe);
}
}
protected void exitElement() throws SAXException {
}
}
|