Update of /cvsroot/jfor/jfor/src/org/jfor/jfor/converter
In directory usw-pr-cvs1:/tmp/cvs-serv17089/src/org/jfor/jfor/converter
Modified Files:
AbstractBuilder.java Converter.java IBuilder.java
Log Message:
V0.6.2 - preStart and postEnd hook methods added to IBuilder interface
Index: AbstractBuilder.java
===================================================================
RCS file: /cvsroot/jfor/jfor/src/org/jfor/jfor/converter/AbstractBuilder.java,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -d -r1.3 -r1.4
*** AbstractBuilder.java 28 Dec 2001 17:08:50 -0000 1.3
--- AbstractBuilder.java 24 Jun 2002 16:09:42 -0000 1.4
***************
*** 35,38 ****
--- 35,41 ----
// $Id$
// $Log$
+ // Revision 1.4 2002/06/24 16:09:42 bdelacretaz
+ // V0.6.2 - preStart and postEnd hook methods added to IBuilder interface
+ //
// Revision 1.3 2001/12/28 17:08:50 bdelacretaz
// V0.5.2 - first integration of Chris Scott's changes
***************
*** 105,107 ****
return false;
}
! }
--- 108,118 ----
return false;
}
!
! /** called by Converter before calling start() */
! public void preStart(String rawName, Attributes atts) throws IOException {
! }
!
! /** called by Converter after calling end() */
! public void postEnd() throws IOException {
! }
! }
\ No newline at end of file
Index: Converter.java
===================================================================
RCS file: /cvsroot/jfor/jfor/src/org/jfor/jfor/converter/Converter.java,v
retrieving revision 1.7
retrieving revision 1.8
diff -C2 -d -r1.7 -r1.8
*** Converter.java 5 Jun 2002 14:14:11 -0000 1.7
--- Converter.java 24 Jun 2002 16:09:42 -0000 1.8
***************
*** 46,49 ****
--- 46,52 ----
// $Id$
// $Log$
+ // Revision 1.8 2002/06/24 16:09:42 bdelacretaz
+ // V0.6.2 - preStart and postEnd hook methods added to IBuilder interface
+ //
// Revision 1.7 2002/06/05 14:14:11 rmarra
// TemplateBuilder added.
***************
*** 246,249 ****
--- 249,253 ----
// let current builder process the element
try {
+ m_builder.preStart(rawName,attrs);
m_builder.start(rawName,attrs);
} catch(IOException ioe) {
***************
*** 257,260 ****
--- 261,265 ----
try {
m_builder.end();
+ m_builder.postEnd();
} catch(IOException ioe) {
throw new SAXException("IOException in IBuilder: " +
ioe.toString());
Index: IBuilder.java
===================================================================
RCS file: /cvsroot/jfor/jfor/src/org/jfor/jfor/converter/IBuilder.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** IBuilder.java 31 Aug 2001 07:51:00 -0000 1.2
--- IBuilder.java 24 Jun 2002 16:09:42 -0000 1.3
***************
*** 36,39 ****
--- 36,42 ----
// $Id$
// $Log$
+ // Revision 1.3 2002/06/24 16:09:42 bdelacretaz
+ // V0.6.2 - preStart and postEnd hook methods added to IBuilder interface
+ //
// Revision 1.2 2001/08/31 07:51:00 bdelacretaz
// MPL license text added + javadoc class comments corrected
***************
*** 55,58 ****
--- 58,64 ----
interface IBuilder
{
+ /** called by Converter before calling start() */
+ public void preStart(String rawName,Attributes atts) throws IOException;
+
/** called by Converter at the start of an element */
public void start(String rawName,Attributes atts) throws IOException;
***************
*** 60,63 ****
--- 66,72 ----
/** called by Converter at the end of an element */
public void end() throws IOException;
+
+ /** called by Converter after calling end() */
+ public void postEnd() throws IOException;
/** called by the parser for Text nodes */
-------------------------------------------------------
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
|