Author: skitching Date: Tue Feb 8 23:34:03 2005 New Revision: 153035 URL: http://svn.apache.org/viewcvs?view=rev&rev=153035 Log: Minor changes due to setContentHandler method now being defined on the Context class, not the saxHandler class.
Modified: jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/actions/CreateNodeAction.java Modified: jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/actions/CreateNodeAction.java URL: http://svn.apache.org/viewcvs/jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/actions/CreateNodeAction.java?view=diff&r1=153034&r2=153035 ============================================================================== --- jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/actions/CreateNodeAction.java (original) +++ jakarta/commons/proper/digester/branches/digester2/src/java/org/apache/commons/digester2/actions/CreateNodeAction.java Tue Feb 8 23:34:03 2005 @@ -148,8 +148,8 @@ * of SAX events. * * @param context is the object which holds the current parse context. - * More importantly here, it provides a way to access the current - * saxHandler object which receives sax events from the xml parser. + * It also provides a way to access the current saxHandler object + * which receives sax events from the xml parser. */ public NodeBuilder(Context context) throws SAXException { this.context = context; @@ -164,7 +164,7 @@ */ public void init(String namespaceURI, String name, Attributes attributes) { saxHandler = context.getSAXHandler(); - oldContentHandler = saxHandler.getContentHandler(); + oldContentHandler = context.getContentHandler(); // Access the documentBuilder in the enclosing class to build a // Document object that we just use as a factory for creating @@ -205,7 +205,7 @@ // Tell the SAXHandler to forward events it receives from the // sax parser to the methods on this object - saxHandler.setContentHandler(this); + context.setContentHandler(this); } // --------------------------------------------- @@ -308,7 +308,7 @@ try { if (depth == 0) { // Restore sax event handler. - saxHandler.setContentHandler(oldContentHandler); + context.setContentHandler(oldContentHandler); // push built node onto stack so that other actions can // access it. Note that this node gets popped in the --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]