batchserver-cvs Mailing List for Enterprise Batch Server (Page 2)
Brought to you by:
suresh_pragada
You can subscribe to this list here.
2006 |
Jan
|
Feb
(10) |
Mar
(159) |
Apr
(5) |
May
(52) |
Jun
(70) |
Jul
|
Aug
(28) |
Sep
(256) |
Oct
(38) |
Nov
|
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
(3) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Suresh <sur...@us...> - 2006-10-23 23:38:20
|
Update of /cvsroot/batchserver/IBA_1.0 In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv23599 Added Files: build_iba.xml Log Message: no message --- NEW FILE: build_iba.xml --- <project name="io" default="dist" basedir="."> <!-- ===================== Property Definitions =========================== --> <property name="app.version" value="1.0_dev_09232006"/> <property name="app.name" value="iba"/> <!-- ==================== File and Directory Names ======================== --> <property name="build.home" value="${basedir}/build"/> <property name="dist.home" value="${basedir}/dist"/> <property name="docs.home" value="${basedir}/docs"/> <property name="src.home" value="${basedir}/src"/> <property name="lib.home" value="${basedir}/lib"/> <property name="bin.home" value="${basedir}/bin"/> <!-- ==================== Compilation Control Options ==================== --> <property name="compile.debug" value="true"/> <property name="compile.deprecation" value="false"/> <property name="compile.optimize" value="true"/> <!-- ======= Pattern Sets, File Sets, Application Classpaths ======= --> <patternset id="app.resources"> <include name="**/*.xml"/> <include name="**/*.dat"/> </patternset> <path id="compile.classpath"> <!-- Include all JAR files that will be required to compile application --> <pathelement location="${lib.home}/xml/xml_apis.jar"/> <pathelement location="${lib.home}/xml/apache/resolver_2.7.1.jar"/> <pathelement location="${lib.home}/xml/apache/xerces_impl_2.7.1.jar"/> <pathelement location="${lib.home}/log4j/log4j_1.2.13.jar"/> <pathelement location="${lib.home}/db4o/db4o_5.0.jar"/> <pathelement location="${lib.home}/framework/batch_framework_1.0_beta.jar"/> </path> <property name="compile.classpath" refid="compile.classpath"/> <!-- ==================== Source-Clean Target ==================================== --> <target name="source-clean" description="Delete old source build directories"> <delete dir="${build.home}"/> </target> <!-- ==================== Source-Compile Target ================================== --> <target name="source-compile" description="Compile Java sources"> <!-- Compile Java classes as necessary --> <mkdir dir="${build.home}"/> <echo message="Classpath for compilation : ${compile.classpath}"/> <javac srcdir="${src.home}" destdir="${build.home}" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}"> <classpath refid="compile.classpath"/> </javac> <!-- Copy application resources --> <copy todir="${build.home}"> <fileset dir="${src.home}"> <patternset refid="app.resources"/> </fileset> </copy> </target> <!-- ==================== Dist Target ===================================== --> <target name="dist" depends="source-clean,source-compile,javadoc" description="Create binary distribution"> <!-- Copy documentation subdirectories --> <delete dir="${dist.home}"/> <mkdir dir="${dist.home}"/> <mkdir dir="${dist.home}/docs"/> <copy todir="${dist.home}/docs"> <fileset dir="${docs.home}"/> </copy> <mkdir dir="${dist.home}/bin"/> <copy file="${bin.home}/iba_release.bat" tofile="${dist.home}/bin/iba.bat"/> <mkdir dir="${dist.home}/lib"/> <copy todir="${dist.home}/lib" flatten="true"> <fileset dir="${lib.home}"> <include name="xml/xml_apis.jar"/> <include name="xml/apache/resolver_2.7.1.jar"/> <include name="xml/apache/xerces_impl_2.7.1.jar"/> <include name="log4j/log4j_1.2.13.jar"/> <include name="db4o/db4o_5.0.jar"/> <include name="framework/batch_framework_1.0_beta.jar"/> </fileset> </copy> <mkdir dir="${dist.home}/src"/> <copy todir="${dist.home}/src"> <fileset dir="${src.home}"/> </copy> <!-- Create application JAR file --> <jar jarfile="${dist.home}/${app.name}_${app.version}.jar" basedir="${build.home}"> <manifest> <attribute name="Implementation-Title" value="Interactive Batch Administration Client"/> <attribute name="Implementation-Version" value="1.0"/> <attribute name="Implementation-Vendor" value="JMonks(http://jmonks.org)"/> </manifest> </jar> </target> <!-- ==================== Javadoc Target ================================== --> <target name="javadoc" description="Create Javadoc API documentation"> <delete dir="${docs.home}"/> <mkdir dir="${docs.home}"/> <javadoc sourcepath="${src.home}" destdir="${docs.home}" packagenames="org/jmonks/batch/admin/*" author="true" version="true" use="true"> <classpath refid="compile.classpath"/> </javadoc> </target> </project> |
From: Suresh <sur...@us...> - 2006-10-23 14:14:05
|
Update of /cvsroot/batchserver/Batch_IO_1.1 In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv16516 Added Files: build_io.xml Log Message: no message --- NEW FILE: build_io.xml --- <project name="io" default="dist" basedir="."> <!-- ===================== Property Definitions =========================== --> <property name="app.version" value="1.0_dev_09232006"/> <property name="app.name" value="batch_io"/> <!-- ==================== File and Directory Names ======================== --> <property name="build.home" value="${basedir}/build"/> <property name="dist.home" value="${basedir}/dist"/> <property name="docs.home" value="${basedir}/docs"/> <property name="src.home" value="${basedir}/src"/> <property name="lib.home" value="${basedir}/lib"/> <!-- ==================== Compilation Control Options ==================== --> <property name="compile.debug" value="true"/> <property name="compile.deprecation" value="false"/> <property name="compile.optimize" value="true"/> <!-- ======= Pattern Sets, File Sets, Application Classpaths ======= --> <patternset id="app.resources"> <include name="**/*.xml"/> <include name="**/*.dat"/> </patternset> <path id="compile.classpath"> <!-- Include all JAR files that will be required to compile application --> <pathelement location="${lib.home}/xml/xml_apis.jar"/> <pathelement location="${lib.home}/xml/apache/resolver_2.7.1.jar"/> <pathelement location="${lib.home}/xml/apache/xerces_impl_2.7.1.jar"/> <pathelement location="${lib.home}/stax/stax_api_1.0.zip"/> <pathelement location="${lib.home}/stax/ri/stax_impl_1.2.zip"/> <pathelement location="${lib.home}/log4j/log4j_1.2.13.jar"/> </path> <property name="compile.classpath" refid="compile.classpath"/> <!-- ==================== Source-Clean Target ==================================== --> <target name="source-clean" description="Delete old source build directories"> <delete dir="${build.home}"/> </target> <!-- ==================== Source-Compile Target ================================== --> <target name="source-compile" description="Compile Java sources"> <!-- Compile Java classes as necessary --> <mkdir dir="${build.home}"/> <echo message="Classpath for compilation : ${compile.classpath}"/> <javac srcdir="${src.home}/org/jmonks/batch/io" destdir="${build.home}" debug="${compile.debug}" deprecation="${compile.deprecation}" optimize="${compile.optimize}"> <classpath refid="compile.classpath"/> </javac> <!-- Copy application resources --> <copy todir="${build.home}"> <fileset dir="${src.home}/org/jmonks/batch/io"> <patternset refid="app.resources"/> </fileset> </copy> </target> <!-- ==================== Dist Target ===================================== --> <target name="dist" depends="source-clean,source-compile,javadoc" description="Create binary distribution"> <!-- Copy documentation subdirectories --> <delete dir="${dist.home}"/> <mkdir dir="${dist.home}"/> <mkdir dir="${dist.home}/docs"/> <copy todir="${dist.home}/docs"> <fileset dir="${docs.home}"/> </copy> <mkdir dir="${dist.home}/lib"/> <copy todir="${dist.home}/lib" flatten="true"> <fileset dir="${lib.home}"> <include name="xml/xml_apis.jar"/> <include name="xml/apache/resolver_2.7.1.jar"/> <include name="xml/apache/xerces_impl_2.7.1.jar"/> <include name="stax/ri/stax_impl_1.2.zip"/> <include name="stax/stax_api_1.0.zip"/> <include name="log4j/log4j_1.2.13.jar"/> </fileset> </copy> <mkdir dir="${dist.home}/src"/> <copy todir="${dist.home}/src"> <fileset dir="${src.home}"> <include name="org/jmonks/batch/io/*.java"/> <include name="org/jmonks/batch/io/flat/*.java"/> <include name="org/jmonks/batch/io/xml/*.java"/> <include name="org/jmonks/batch/io/flat/*.xml"/> <include name="org/jmonks/batch/io/xml/*.xml"/> <include name="org/jmonks/batch/io/flat/*.dat"/> <include name="org/jmonks/batch/io/xml/*.dat"/> </fileset> </copy> <!-- Create application JAR file --> <jar jarfile="${dist.home}/${app.name}_${app.version}.jar" basedir="${build.home}"> <manifest> <attribute name="Implementation-Title" value="IO Services"/> <attribute name="Implementation-Version" value="1.0"/> <attribute name="Implementation-Vendor" value="JMonks(http://jmonks.org)"/> </manifest> </jar> </target> <!-- ==================== Javadoc Target ================================== --> <target name="javadoc" description="Create Javadoc API documentation"> <delete dir="${docs.home}"/> <mkdir dir="${docs.home}"/> <javadoc sourcepath="${src.home}" destdir="${docs.home}" packagenames="org/jmonks/batch/io/*" author="true" version="true" use="true"> <classpath refid="compile.classpath"/> </javadoc> </target> </project> |
From: Suresh <sur...@us...> - 2006-10-18 23:07:21
|
Update of /cvsroot/batchserver/Batch_IO_1.1/test/org/jmonks/batch/io/ofx In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv7156 Modified Files: OFXFileReaderTest.java OFXFileWriterTest.java Log Message: no message Index: OFXFileWriterTest.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/test/org/jmonks/batch/io/ofx/OFXFileWriterTest.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** OFXFileWriterTest.java 18 Oct 2006 03:19:21 -0000 1.1.1.1 --- OFXFileWriterTest.java 18 Oct 2006 23:07:19 -0000 1.2 *************** *** 15,21 **** import org.jmonks.batch.io.ofx.messageset.MessageSet; import org.jmonks.batch.io.ofx.messageset.MessageSetType; ! import org.jmonks.batch.io.ofx.messageset.SignUpMsgsRqV2; import org.jmonks.batch.io.ofx.messageset.aggregates.signup.EnrollRq; ! import org.jmonks.batch.io.ofx.messageset.aggregates.signup.EnrollTrnRq; --- 15,21 ---- import org.jmonks.batch.io.ofx.messageset.MessageSet; import org.jmonks.batch.io.ofx.messageset.MessageSetType; ! import org.jmonks.batch.io.ofx.messageset.SignUpMsgsRsV1; import org.jmonks.batch.io.ofx.messageset.aggregates.signup.EnrollRq; ! import org.jmonks.batch.io.ofx.messageset.aggregates.signup.EnrollTrnRqV1; *************** *** 71,78 **** fileWriter.writeOFXHeaderRecord(headerRecord); ! MessageSet messageSet=fileWriter.createNextMessageSet(MessageSetType.SIGNUP_MSGS_RQV2); ! SignUpMsgsRqV2 signUpMsgsRqV2=(SignUpMsgsRqV2)messageSet; ! EnrollTrnRq trnRq=new EnrollTrnRq(); trnRq.setTrnUID("MYTRNUID"); EnrollRq enrollRq=new EnrollRq(); --- 71,78 ---- fileWriter.writeOFXHeaderRecord(headerRecord); ! MessageSet messageSet=fileWriter.createNextMessageSet(MessageSetType.SIGNUP_MSGS_RSV1); ! SignUpMsgsRsV1 signUpMsgsRqV2=(SignUpMsgsRsV1)messageSet; ! EnrollTrnRqV1 trnRq=new EnrollTrnRqV1(); trnRq.setTrnUID("MYTRNUID"); EnrollRq enrollRq=new EnrollRq(); *************** *** 81,90 **** trnRq.setEnrollRq(enrollRq); ! signUpMsgsRqV2.addEnrollTrnRq(trnRq); trnRq.setTrnUID("MY2NDUID"); enrollRq.setFirstName(" RAM&ESH"); ! signUpMsgsRqV2.addEnrollTrnRq(trnRq); fileWriter.close(); --- 81,90 ---- trnRq.setEnrollRq(enrollRq); ! signUpMsgsRqV2.addSignUpMsgRqV1(trnRq); trnRq.setTrnUID("MY2NDUID"); enrollRq.setFirstName(" RAM&ESH"); ! signUpMsgsRqV2.addSignUpMsgRqV1(trnRq); fileWriter.close(); Index: OFXFileReaderTest.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/test/org/jmonks/batch/io/ofx/OFXFileReaderTest.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** OFXFileReaderTest.java 18 Oct 2006 03:19:21 -0000 1.1.1.1 --- OFXFileReaderTest.java 18 Oct 2006 23:07:19 -0000 1.2 *************** *** 17,22 **** import org.jmonks.batch.io.ofx.messageset.MessageSetType; import org.jmonks.batch.io.ofx.messageset.SignOnMsgsRqV2; ! import org.jmonks.batch.io.ofx.messageset.SignUpMsgsRqV2; ! import org.jmonks.batch.io.ofx.messageset.aggregates.signup.EnrollTrnRq; import org.jmonks.batch.io.ofx.messageset.aggregates.signon.SignOnRqV2; --- 17,22 ---- import org.jmonks.batch.io.ofx.messageset.MessageSetType; import org.jmonks.batch.io.ofx.messageset.SignOnMsgsRqV2; ! import org.jmonks.batch.io.ofx.messageset.SignUpMsgsRsV1; ! import org.jmonks.batch.io.ofx.messageset.aggregates.signup.EnrollTrnRqV1; import org.jmonks.batch.io.ofx.messageset.aggregates.signon.SignOnRqV2; *************** *** 130,137 **** assertNotNull(rq.getFI()); } ! else if(messageSet.getMessageSetType()==MessageSetType.SIGNUP_MSGS_RQV2) { ! SignUpMsgsRqV2 v2=(SignUpMsgsRqV2)messageSet; ! EnrollTrnRq rq=v2.getNextEnrollTrnRq(); assertNotNull(rq); assertNotNull(rq.getTrnUID()); --- 130,137 ---- assertNotNull(rq.getFI()); } ! else if(messageSet.getMessageSetType()==MessageSetType.SIGNUP_MSGS_RSV1) { ! SignUpMsgsRsV1 v2=(SignUpMsgsRsV1)messageSet; ! EnrollTrnRqV1 rq=v2.getSignUpMsgRqV1(); assertNotNull(rq); assertNotNull(rq.getTrnUID()); *************** *** 158,165 **** assertNotNull(rq.getFI()); } ! else if(messageSet.getMessageSetType()==MessageSetType.SIGNUP_MSGS_RQV2) { ! SignUpMsgsRqV2 v2=(SignUpMsgsRqV2)messageSet; ! EnrollTrnRq rq=v2.getNextEnrollTrnRq(); assertNotNull(rq); assertNotNull(rq.getTrnUID()); --- 158,165 ---- assertNotNull(rq.getFI()); } ! else if(messageSet.getMessageSetType()==MessageSetType.SIGNUP_MSGS_RSV1) { ! SignUpMsgsRsV1 v2=(SignUpMsgsRsV1)messageSet; ! EnrollTrnRqV1 rq=v2.getSignUpMsgRqV1(); assertNotNull(rq); assertNotNull(rq.getTrnUID()); |
From: Suresh <sur...@us...> - 2006-10-18 23:07:06
|
Update of /cvsroot/batchserver/Batch_IO_1.1/test/org/jmonks/batch/io/ofx/messageset In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv7023 Modified Files: SignOnMsgsRsV2Test.java Added Files: SignUpMsgsRqV1Test.java SignUpMsgsRsV1Test.java Log Message: no message --- NEW FILE: SignUpMsgsRsV1Test.java --- /* * SignUpMsgsRsV1Test.java * JUnit based test * * Created on October 18, 2006, 5:19 PM */ package org.jmonks.batch.io.ofx.messageset; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import junit.framework.*; import org.jmonks.batch.io.FileReader; import org.jmonks.batch.io.FileSpec; import org.jmonks.batch.io.FileWriter; import org.jmonks.batch.io.TestConstants; import org.jmonks.batch.io.ofx.OFXFileReader; import org.jmonks.batch.io.ofx.OFXFileWriter; import org.jmonks.batch.io.ofx.messageset.aggregates.StatusV1; import org.jmonks.batch.io.ofx.messageset.aggregates.signup.EnrollRs; import org.jmonks.batch.io.ofx.messageset.aggregates.signup.EnrollTrnRsV1; import org.jmonks.batch.io.ofx.messageset.aggregates.signup.SignUpMsgRsV1; import org.jmonks.batch.io.ofx.messageset.aggregates.signup.SignUpMsgType; /** * * @author w951h8m */ public class SignUpMsgsRsV1Test extends TestCase { public SignUpMsgsRsV1Test(String testName) { super(testName); } protected void setUp() throws Exception { } protected void tearDown() throws Exception { } public static Test suite() { TestSuite suite = new TestSuite(); suite.addTest(new SignUpMsgsRsV1Test("testAddSignUpRsV1SGML")); suite.addTest(new SignUpMsgsRsV1Test("testGetSignUpRsV1SGML")); suite.addTest(new SignUpMsgsRsV1Test("testAddSignUpRsV1XML")); suite.addTest(new SignUpMsgsRsV1Test("testGetSignUpRsV1XML")); return suite; } /** * Test of addSignUpRqV1SGML method, of class org.jmonks.batch.io.ofx.messageset.SignUpMsgsRqV1. */ public void testAddSignUpRsV1SGML() throws Exception { String validFileSpec=new String("<file-spec file-type=\"ofx\" version=\"16\"/>"); FileSpec fileSpec=FileSpec.createFileSpec(new ByteArrayInputStream(validFileSpec.getBytes())); OFXFileWriter fileWriter=(OFXFileWriter)FileWriter.getFileWriter(new FileOutputStream(TestConstants.FILE_TEMP_DIR+File.separatorChar+"sgml-signuprsv1.ofx"), fileSpec); TestOFXHeaderRecord headerRecord=new TestOFXHeaderRecord(); fileWriter.writeOFXHeaderRecord(headerRecord); MessageSet messageSet=fileWriter.createNextMessageSet(MessageSetType.SIGNUP_MSGS_RSV1); SignUpMsgsRsV1 signUpMsgsRsV1=(SignUpMsgsRsV1)messageSet; EnrollTrnRsV1 enrollTrn=new EnrollTrnRsV1(); enrollTrn.setTrnUID("TRNUID"); EnrollRs enrollRs=new EnrollRs(); enrollRs.setTempPass("TEMPPASS"); enrollTrn.setEnrollRs(enrollRs); StatusV1 status=new StatusV1(); status.setCode("2000"); status.setMessage("MSG"); enrollTrn.setStatus(status); signUpMsgsRsV1.addSignUpMsgRsV1(enrollTrn); fileWriter.close(); } /** * Test of getSignUpMsgRqV1SGML method, of class org.jmonks.batch.io.ofx.messageset.SignUpMsgsRqV1. */ public void testGetSignUpRsV1SGML() throws Exception { String validFileSpec=new String("<file-spec file-type=\"ofx\" version=\"16\"/>"); FileSpec fileSpec=FileSpec.createFileSpec(new ByteArrayInputStream(validFileSpec.getBytes())); OFXFileReader reader=(OFXFileReader)FileReader.getFileReader(new FileInputStream(TestConstants.FILE_TEMP_DIR+File.separatorChar+"sgml-signuprsv1.ofx"), fileSpec); MessageSet messageSet=null; while((messageSet=reader.getNextMessageSet())!=null) { assertTrue(messageSet.getMessageSetType()==MessageSetType.SIGNUP_MSGS_RSV1); SignUpMsgsRsV1 signUpMsgsRsV1=(SignUpMsgsRsV1)messageSet; SignUpMsgRsV1 msgV1=null; while((msgV1=signUpMsgsRsV1.getSignUpMsgRsV1())!=null) { if(msgV1.getSignUpMsgType()==SignUpMsgType.ENROLLTRN_RSV1) { EnrollTrnRsV1 enrollTrn=(EnrollTrnRsV1)msgV1; assertNotNull(enrollTrn); EnrollRs enrollRs=enrollTrn.getEnrollRs(); assertNotNull(enrollRs); assertTrue("TRNUID".equals(enrollTrn.getTrnUID())); assertTrue("TEMPPASS".equals(enrollRs.getTempPass())); StatusV1 status=(StatusV1)enrollTrn.getStatus(); assertNotNull(status); assertTrue("2000".equals(status.getCode())); assertTrue("MSG".equals(status.getMessage())); } } } reader.close(); } /** * Test of addSignUpRqV1SGML method, of class org.jmonks.batch.io.ofx.messageset.SignUpMsgsRqV1. */ public void testAddSignUpRsV1XML() throws Exception { String validFileSpec=new String("<file-spec file-type=\"ofx\" version=\"202\"/>"); FileSpec fileSpec=FileSpec.createFileSpec(new ByteArrayInputStream(validFileSpec.getBytes())); OFXFileWriter fileWriter=(OFXFileWriter)FileWriter.getFileWriter(new FileOutputStream(TestConstants.FILE_TEMP_DIR+File.separatorChar+"xml-signuprsv1.ofx"), fileSpec); TestOFXHeaderRecord headerRecord=new TestOFXHeaderRecord(); fileWriter.writeOFXHeaderRecord(headerRecord); MessageSet messageSet=fileWriter.createNextMessageSet(MessageSetType.SIGNUP_MSGS_RSV1); SignUpMsgsRsV1 signUpMsgsRsV1=(SignUpMsgsRsV1)messageSet; EnrollTrnRsV1 enrollTrn=new EnrollTrnRsV1(); enrollTrn.setTrnUID("TRNUID"); EnrollRs enrollRs=new EnrollRs(); enrollRs.setTempPass("TEMPPASS"); enrollTrn.setEnrollRs(enrollRs); StatusV1 status=new StatusV1(); status.setCode("2000"); status.setMessage("MSG"); enrollTrn.setStatus(status); signUpMsgsRsV1.addSignUpMsgRsV1(enrollTrn); fileWriter.close(); } /** * Test of getSignUpMsgRqV1SGML method, of class org.jmonks.batch.io.ofx.messageset.SignUpMsgsRqV1. */ public void testGetSignUpRsV1XML() throws Exception { String validFileSpec=new String("<file-spec file-type=\"ofx\" version=\"202\"/>"); FileSpec fileSpec=FileSpec.createFileSpec(new ByteArrayInputStream(validFileSpec.getBytes())); OFXFileReader reader=(OFXFileReader)FileReader.getFileReader(new FileInputStream(TestConstants.FILE_TEMP_DIR+File.separatorChar+"xml-signuprsv1.ofx"), fileSpec); MessageSet messageSet=null; while((messageSet=reader.getNextMessageSet())!=null) { assertTrue(messageSet.getMessageSetType()==MessageSetType.SIGNUP_MSGS_RSV1); SignUpMsgsRsV1 signUpMsgsRsV1=(SignUpMsgsRsV1)messageSet; SignUpMsgRsV1 msgV1=null; while((msgV1=signUpMsgsRsV1.getSignUpMsgRsV1())!=null) { if(msgV1.getSignUpMsgType()==SignUpMsgType.ENROLLTRN_RSV1) { EnrollTrnRsV1 enrollTrn=(EnrollTrnRsV1)msgV1; assertNotNull(enrollTrn); EnrollRs enrollRs=enrollTrn.getEnrollRs(); assertNotNull(enrollRs); assertTrue("TRNUID".equals(enrollTrn.getTrnUID())); assertTrue("TEMPPASS".equals(enrollRs.getTempPass())); StatusV1 status=(StatusV1)enrollTrn.getStatus(); assertNotNull(status); assertTrue("2000".equals(status.getCode())); assertTrue("MSG".equals(status.getMessage())); } } } reader.close(); } } --- NEW FILE: SignUpMsgsRqV1Test.java --- /* * SignUpMsgsRqV1Test.java * JUnit based test * * Created on October 18, 2006, 3:58 PM */ package org.jmonks.batch.io.ofx.messageset; import java.io.ByteArrayInputStream; import java.io.File; import java.io.FileInputStream; import java.io.FileOutputStream; import junit.framework.*; import org.jmonks.batch.io.FileReader; import org.jmonks.batch.io.FileSpec; import org.jmonks.batch.io.FileWriter; import org.jmonks.batch.io.TestConstants; import org.jmonks.batch.io.ofx.OFXFileReader; import org.jmonks.batch.io.ofx.OFXFileWriter; import org.jmonks.batch.io.ofx.messageset.aggregates.signup.EnrollRq; import org.jmonks.batch.io.ofx.messageset.aggregates.signup.EnrollTrnRqV1; import org.jmonks.batch.io.ofx.messageset.aggregates.signup.SignUpMsgRqV1; import org.jmonks.batch.io.ofx.messageset.aggregates.signup.SignUpMsgType; /** * * @author w951h8m */ public class SignUpMsgsRqV1Test extends TestCase { public SignUpMsgsRqV1Test(String testName) { super(testName); } protected void setUp() throws Exception { } protected void tearDown() throws Exception { } public static Test suite() { TestSuite suite = new TestSuite(); suite.addTest(new SignUpMsgsRqV1Test("testAddSignUpRqV1SGML")); suite.addTest(new SignUpMsgsRqV1Test("testGetSignUpRqV1SGML")); suite.addTest(new SignUpMsgsRqV1Test("testAddSignUpRqV1XML")); suite.addTest(new SignUpMsgsRqV1Test("testGetSignUpRqV1XML")); return suite; } /** * Test of addSignUpRqV1SGML method, of class org.jmonks.batch.io.ofx.messageset.SignUpMsgsRqV1. */ public void testAddSignUpRqV1SGML() throws Exception { String validFileSpec=new String("<file-spec file-type=\"ofx\" version=\"16\"/>"); FileSpec fileSpec=FileSpec.createFileSpec(new ByteArrayInputStream(validFileSpec.getBytes())); OFXFileWriter fileWriter=(OFXFileWriter)FileWriter.getFileWriter(new FileOutputStream(TestConstants.FILE_TEMP_DIR+File.separatorChar+"sgml-signuprqv1.ofx"), fileSpec); TestOFXHeaderRecord headerRecord=new TestOFXHeaderRecord(); fileWriter.writeOFXHeaderRecord(headerRecord); MessageSet messageSet=fileWriter.createNextMessageSet(MessageSetType.SIGNUP_MSGS_RQV1); SignUpMsgsRqV1 signUpMsgsRqV1=(SignUpMsgsRqV1)messageSet; EnrollTrnRqV1 enrollTrn=new EnrollTrnRqV1(); enrollTrn.setTrnUID("TRNUID"); EnrollRq enrollRq=new EnrollRq(); enrollRq.setFirstName("SURESH"); enrollTrn.setEnrollRq(enrollRq); signUpMsgsRqV1.addSignUpMsgRqV1(enrollTrn); fileWriter.close(); } /** * Test of getSignUpMsgRqV1SGML method, of class org.jmonks.batch.io.ofx.messageset.SignUpMsgsRqV1. */ public void testGetSignUpRqV1SGML() throws Exception { String validFileSpec=new String("<file-spec file-type=\"ofx\" version=\"16\"/>"); FileSpec fileSpec=FileSpec.createFileSpec(new ByteArrayInputStream(validFileSpec.getBytes())); OFXFileReader reader=(OFXFileReader)FileReader.getFileReader(new FileInputStream(TestConstants.FILE_TEMP_DIR+File.separatorChar+"sgml-signuprqv1.ofx"), fileSpec); MessageSet messageSet=null; while((messageSet=reader.getNextMessageSet())!=null) { assertTrue(messageSet.getMessageSetType()==MessageSetType.SIGNUP_MSGS_RQV1); SignUpMsgsRqV1 signUpMsgsRqV1=(SignUpMsgsRqV1)messageSet; SignUpMsgRqV1 msgV1=null; while((msgV1=signUpMsgsRqV1.getSignUpMsgRqV1())!=null) { if(msgV1.getSignUpMsgType()==SignUpMsgType.ENROLLTRN_RQV1) { EnrollTrnRqV1 enrollTrn=(EnrollTrnRqV1)msgV1; assertNotNull(enrollTrn); EnrollRq enrollRq=enrollTrn.getEnrollRq(); assertNotNull(enrollRq); assertTrue("TRNUID".equals(enrollTrn.getTrnUID())); assertTrue("SURESH".equals(enrollRq.getFirstName())); } } } reader.close(); } /** * Test of addSignUpRqV1SGML method, of class org.jmonks.batch.io.ofx.messageset.SignUpMsgsRqV1. */ public void testAddSignUpRqV1XML() throws Exception { String validFileSpec=new String("<file-spec file-type=\"ofx\" version=\"202\"/>"); FileSpec fileSpec=FileSpec.createFileSpec(new ByteArrayInputStream(validFileSpec.getBytes())); OFXFileWriter fileWriter=(OFXFileWriter)FileWriter.getFileWriter(new FileOutputStream(TestConstants.FILE_TEMP_DIR+File.separatorChar+"xml-signuprqv1.ofx"), fileSpec); TestOFXHeaderRecord headerRecord=new TestOFXHeaderRecord(); fileWriter.writeOFXHeaderRecord(headerRecord); MessageSet messageSet=fileWriter.createNextMessageSet(MessageSetType.SIGNUP_MSGS_RQV1); SignUpMsgsRqV1 signUpMsgsRqV1=(SignUpMsgsRqV1)messageSet; EnrollTrnRqV1 enrollTrn=new EnrollTrnRqV1(); enrollTrn.setTrnUID("TRNUID"); EnrollRq enrollRq=new EnrollRq(); enrollRq.setFirstName("SURESH"); enrollTrn.setEnrollRq(enrollRq); signUpMsgsRqV1.addSignUpMsgRqV1(enrollTrn); fileWriter.close(); } /** * Test of getSignUpMsgRqV1SGML method, of class org.jmonks.batch.io.ofx.messageset.SignUpMsgsRqV1. */ public void testGetSignUpRqV1XML() throws Exception { String validFileSpec=new String("<file-spec file-type=\"ofx\" version=\"202\"/>"); FileSpec fileSpec=FileSpec.createFileSpec(new ByteArrayInputStream(validFileSpec.getBytes())); OFXFileReader reader=(OFXFileReader)FileReader.getFileReader(new FileInputStream(TestConstants.FILE_TEMP_DIR+File.separatorChar+"xml-signuprqv1.ofx"), fileSpec); MessageSet messageSet=null; while((messageSet=reader.getNextMessageSet())!=null) { assertTrue(messageSet.getMessageSetType()==MessageSetType.SIGNUP_MSGS_RQV1); SignUpMsgsRqV1 signUpMsgsRqV1=(SignUpMsgsRqV1)messageSet; SignUpMsgRqV1 msgV1=null; while((msgV1=signUpMsgsRqV1.getSignUpMsgRqV1())!=null) { if(msgV1.getSignUpMsgType()==SignUpMsgType.ENROLLTRN_RQV1) { EnrollTrnRqV1 enrollTrn=(EnrollTrnRqV1)msgV1; assertNotNull(enrollTrn); EnrollRq enrollRq=enrollTrn.getEnrollRq(); assertNotNull(enrollRq); assertTrue("TRNUID".equals(enrollTrn.getTrnUID())); assertTrue("SURESH".equals(enrollRq.getFirstName())); } } } reader.close(); } } Index: SignOnMsgsRsV2Test.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/test/org/jmonks/batch/io/ofx/messageset/SignOnMsgsRsV2Test.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SignOnMsgsRsV2Test.java 18 Oct 2006 03:19:22 -0000 1.1.1.1 --- SignOnMsgsRsV2Test.java 18 Oct 2006 23:07:04 -0000 1.2 *************** *** 91,94 **** --- 91,99 ---- pin.setDtChanged("DTCHANGED"); pinTrn.setPinChRs(pin); + StatusV2 pinStatus=new StatusV2(); + pinStatus.setCode("3000"); + pinStatus.setMessage2("MSG"); + pinTrn.setStatus(pinStatus); + pinTrn.setTrnUID("TRNUID"); signOnMsgsRsV2.addSignOnMsgRsV2(pinTrn); ChallengeTrnRsV2 challengeV2=new ChallengeTrnRsV2(); *************** *** 97,100 **** --- 102,110 ---- chRs.setFiCertId("FICERTID"); challengeV2.setChallengeRs(chRs); + StatusV2 chStatus=new StatusV2(); + chStatus.setCode("3000"); + chStatus.setMessage2("MSG"); + challengeV2.setStatus(pinStatus); + challengeV2.setTrnUID("TRNUID"); signOnMsgsRsV2.addSignOnMsgRsV2(challengeV2); fileWriter.close(); *************** *** 140,143 **** --- 150,158 ---- assertTrue("USERID".equals(rqV1.getUserId())); assertTrue("DTCHANGED".equals(rqV1.getDtChanged())); + assertNotNull(rq.getStatus()); + StatusV2 status=(StatusV2)rq.getStatus(); + assertTrue("3000".equals(status.getCode())); + assertTrue("MSG".equals(status.getMessage2())); + assertTrue("TRNUID".equals(rq.getTrnUID())); } else if(msgV1.getSignOnMsgType()==SignOnMsgType.CHALLENGETRN_RSV2) *************** *** 149,152 **** --- 164,172 ---- assertTrue("USERID".equals(rqV1.getUserId())); assertTrue("FICERTID".equals(rqV1.getFiCertId())); + assertNotNull(rq.getStatus()); + StatusV2 status=(StatusV2)rq.getStatus(); + assertTrue("3000".equals(status.getCode())); + assertTrue("MSG".equals(status.getMessage2())); + assertTrue("TRNUID".equals(rq.getTrnUID())); } } *************** *** 186,189 **** --- 206,214 ---- pin.setDtChanged("DTCHANGED"); pinTrn.setPinChRs(pin); + StatusV2 pinStatus=new StatusV2(); + pinStatus.setCode("3000"); + pinStatus.setMessage2("MSG"); + pinTrn.setStatus(pinStatus); + pinTrn.setTrnUID("TRNUID"); signOnMsgsRsV2.addSignOnMsgRsV2(pinTrn); ChallengeTrnRsV2 challengeV2=new ChallengeTrnRsV2(); *************** *** 192,195 **** --- 217,225 ---- chRs.setFiCertId("FICERTID"); challengeV2.setChallengeRs(chRs); + StatusV2 chStatus=new StatusV2(); + chStatus.setCode("3000"); + chStatus.setMessage2("MSG"); + challengeV2.setStatus(pinStatus); + challengeV2.setTrnUID("TRNUID"); signOnMsgsRsV2.addSignOnMsgRsV2(challengeV2); fileWriter.close(); *************** *** 235,238 **** --- 265,273 ---- assertTrue("USERID".equals(rqV1.getUserId())); assertTrue("DTCHANGED".equals(rqV1.getDtChanged())); + assertNotNull(rq.getStatus()); + StatusV2 status=(StatusV2)rq.getStatus(); + assertTrue("3000".equals(status.getCode())); + assertTrue("MSG".equals(status.getMessage2())); + assertTrue("TRNUID".equals(rq.getTrnUID())); } else if(msgV1.getSignOnMsgType()==SignOnMsgType.CHALLENGETRN_RSV2) *************** *** 244,247 **** --- 279,287 ---- assertTrue("USERID".equals(rqV1.getUserId())); assertTrue("FICERTID".equals(rqV1.getFiCertId())); + assertNotNull(rq.getStatus()); + StatusV2 status=(StatusV2)rq.getStatus(); + assertTrue("3000".equals(status.getCode())); + assertTrue("MSG".equals(status.getMessage2())); + assertTrue("TRNUID".equals(rq.getTrnUID())); } } *************** *** 252,253 **** --- 292,294 ---- } + |
From: Suresh <sur...@us...> - 2006-10-18 23:06:47
|
Update of /cvsroot/batchserver/Batch_IO_1.1/test/org/jmonks/batch/io In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6758 Modified Files: IOTestSuite.java Log Message: no message Index: IOTestSuite.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/test/org/jmonks/batch/io/IOTestSuite.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** IOTestSuite.java 18 Oct 2006 03:19:20 -0000 1.1.1.1 --- IOTestSuite.java 18 Oct 2006 23:06:45 -0000 1.2 *************** *** 15,18 **** --- 15,20 ---- import org.jmonks.batch.io.ofx.messageset.SignOnMsgsRsV1Test; import org.jmonks.batch.io.ofx.messageset.SignOnMsgsRsV2Test; + import org.jmonks.batch.io.ofx.messageset.SignUpMsgsRqV1Test; + import org.jmonks.batch.io.ofx.messageset.SignUpMsgsRsV1Test; import org.jmonks.batch.io.xml.XMLFileTest; *************** *** 56,60 **** ioSuite.addTest(SignOnMsgsRsV1Test.suite()); ioSuite.addTest(SignOnMsgsRsV2Test.suite()); ! return ioSuite; } --- 58,63 ---- ioSuite.addTest(SignOnMsgsRsV1Test.suite()); ioSuite.addTest(SignOnMsgsRsV2Test.suite()); ! ioSuite.addTest(SignUpMsgsRqV1Test.suite()); ! ioSuite.addTest(SignUpMsgsRsV1Test.suite()); return ioSuite; } |
From: Suresh <sur...@us...> - 2006-10-18 23:06:32
|
Update of /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signup In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6738 Modified Files: EnrollRq.java Added Files: EnrollRs.java EnrollTrnRqV1.java EnrollTrnRsV1.java SignUpMsgRqV1.java SignUpMsgRsV1.java SignUpMsgType.java Removed Files: EnrollTrnRq.java Log Message: no message --- NEW FILE: SignUpMsgType.java --- /* * SignUpMsgType.java * * Created on October 18, 2006, 2:23 PM * * To change this template, choose Tools | Options and locate the template under * the Source Creation and Management node. Right-click the template and choose * Open. You can then make changes to the template in the Source Editor. */ package org.jmonks.batch.io.ofx.messageset.aggregates.signup; /** * <p> * SignUpMsgType is the enum class to describe the type of SignUp message. * </p> * * @author Suresh Pragada * @version 1.1 * @since 1.1 */ public class SignUpMsgType { /** * Holds the type of sign up message. */ private String signUpMsgType=null; /** * Constructs the signup message set type. */ public SignUpMsgType(String signUpMsgType) { this.signUpMsgType=signUpMsgType; } /** * Returns the matching signup message reference. Returns null if it cannot be matched * with any signup message type. * * @param type Type of sign up message. * * @return Returns the appropriate sign up message reference. */ public static SignUpMsgType getMessageType(String type) { if(ENROLLTRN_RQV1.toString().equalsIgnoreCase(type)) return ENROLLTRN_RQV1; else if(ENROLLTRN_RSV1.toString().equalsIgnoreCase(type)) return ENROLLTRN_RSV1; else return null; } /** * Returns the sign up message type as string. */ public String toString() { return this.signUpMsgType; } public static final SignUpMsgType ENROLLTRN_RQV1=new SignUpMsgType("ENROLLTRNRQV1"); public static final SignUpMsgType ENROLLTRN_RSV1=new SignUpMsgType("ENROLLTRNRSV1"); } --- EnrollTrnRq.java DELETED --- --- NEW FILE: EnrollRs.java --- /* * EnrollRs.java * * Created on October 18, 2006, 3:26 PM * * To change this template, choose Tools | Options and locate the template under * the Source Creation and Management node. Right-click the template and choose * Open. You can then make changes to the template in the Source Editor. */ package org.jmonks.batch.io.ofx.messageset.aggregates.signup; import org.jmonks.batch.io.ofx.messageset.impl.OFXWriterSupport; /** * <p>EnrollRs aggregate. </p> * * @author Suresh Pragada * @version 1.1 * @since 1.1 */ public class EnrollRs implements OFXWriterSupport { private String tempPass=null; private String userId=null; private String dtExpire=null; public EnrollRs() { } public String getTempPass() { return this.tempPass; } public void setTempPass(String tempPass) { this.tempPass=tempPass; } public String getUserId() { return this.userId; } public void setUserId(String userId) { this.userId=userId; } public String getDtExpire() { return this.dtExpire; } public void setDtExpire(String dtExpire) { this.dtExpire=dtExpire; } public String[] getMethodNamesInSortedOrder() { String[] methodNames=new String[3]; methodNames[0]="getTempPass"; methodNames[1]="getUserId"; methodNames[2]="getDtExpire"; return methodNames; } } --- NEW FILE: SignUpMsgRsV1.java --- /* * SignUpMsgRsV1.java * * Created on October 18, 2006, 3:23 PM * * To change this template, choose Tools | Options and locate the template under * the Source Creation and Management node. Right-click the template and choose * Open. You can then make changes to the template in the Source Editor. */ package org.jmonks.batch.io.ofx.messageset.aggregates.signup; /** * <p>SignUpMsgRsV1 message. </p> * * @author Suresh Pragada * @version 1.1 * @since 1.1 */ public interface SignUpMsgRsV1 { SignUpMsgType getSignUpMsgType(); } Index: EnrollRq.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signup/EnrollRq.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** EnrollRq.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- EnrollRq.java 18 Oct 2006 23:06:30 -0000 1.2 *************** *** 11,19 **** package org.jmonks.batch.io.ofx.messageset.aggregates.signup; /** * ! * @author Suresh Pragada */ ! public class EnrollRq { private String firstName=null; --- 11,24 ---- package org.jmonks.batch.io.ofx.messageset.aggregates.signup; + import org.jmonks.batch.io.ofx.messageset.impl.OFXWriterSupport; + /** + * <p>EnrollRq aggregate. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ ! public class EnrollRq implements OFXWriterSupport { private String firstName=null; *************** *** 22,25 **** --- 27,31 ---- private String addr1=null; private String addr2=null; + private String addr3=null; private String city=null; private String state=null; *************** *** 88,91 **** --- 94,107 ---- } + public String getAddr3() + { + return this.addr3; + } + + public void setAddr3(String addr3) + { + this.addr3=addr3; + } + public String getCity() { *************** *** 198,201 **** this.dateBirth=dateBirth; } ! } --- 214,240 ---- this.dateBirth=dateBirth; } ! ! public String[] getMethodNamesInSortedOrder() ! { ! String[] methodNames=new String[17]; ! methodNames[0]="getFirstName"; ! methodNames[1]="getMiddleName"; ! methodNames[2]="getLastName"; ! methodNames[3]="getAddr1"; ! methodNames[4]="getAddr2"; ! methodNames[5]="getAddr3"; ! methodNames[6]="getCity"; ! methodNames[7]="getState"; ! methodNames[8]="getPostalCode"; ! methodNames[9]="getCountry"; ! methodNames[10]="getDayPhone"; ! methodNames[11]="getEvePhone"; ! methodNames[12]="getEmail"; ! methodNames[13]="getUserId"; ! methodNames[14]="getTaxId"; ! methodNames[15]="getSecurityName"; ! methodNames[16]="getDateBirth"; ! return methodNames; ! } ! } --- NEW FILE: SignUpMsgRqV1.java --- /* * SignUpMsgRqV1.java * * Created on October 18, 2006, 2:22 PM * * To change this template, choose Tools | Options and locate the template under * the Source Creation and Management node. Right-click the template and choose * Open. You can then make changes to the template in the Source Editor. */ package org.jmonks.batch.io.ofx.messageset.aggregates.signup; /** * <p>SignUpMsgRqV1 message. </p> * * @author Suresh Pragada * @version 1.1 * @since 1.1 */ public interface SignUpMsgRqV1 { SignUpMsgType getSignUpMsgType(); } --- NEW FILE: EnrollTrnRsV1.java --- /* * EnrollTrnRsV1.java * * Created on October 18, 2006, 3:24 PM * * To change this template, choose Tools | Options and locate the template under * the Source Creation and Management node. Right-click the template and choose * Open. You can then make changes to the template in the Source Editor. */ package org.jmonks.batch.io.ofx.messageset.aggregates.signup; import org.jmonks.batch.io.ofx.messageset.aggregates.Status; import org.jmonks.batch.io.ofx.messageset.impl.OFXWriterSupport; /** * <p>EnrollTrnRsV1 message. </p> * * @author Suresh Pragada * @version 1.1 * @since 1.1 */ public class EnrollTrnRsV1 implements SignUpMsgRsV1, OFXWriterSupport { private String trnUID=null; private Status status=null; private EnrollRs enrollRs=null; public EnrollTrnRsV1() { } public SignUpMsgType getSignUpMsgType() { return SignUpMsgType.ENROLLTRN_RSV1; } public String getTrnUID() { return this.trnUID; } public void setTrnUID(String trnUID) { this.trnUID=trnUID; } public Status getStatus() { return this.status; } public void setStatus(Status status) { this.status=status; } public EnrollRs getEnrollRs() { return this.enrollRs; } public void setEnrollRs(EnrollRs enrollRs) { this.enrollRs=enrollRs; } public String[] getMethodNamesInSortedOrder() { String[] methodNames=new String[3]; methodNames[0]="getTrnUID"; methodNames[1]="getStatus"; methodNames[2]="getEnrollRs"; return methodNames; } } --- NEW FILE: EnrollTrnRqV1.java --- /* * EnrollTrnRqV1.java * * Created on October 11, 2006, 9:53 AM * * To change this template, choose Tools | Options and locate the template under * the Source Creation and Management node. Right-click the template and choose * Open. You can then make changes to the template in the Source Editor. */ package org.jmonks.batch.io.ofx.messageset.aggregates.signup; import org.jmonks.batch.io.ofx.messageset.impl.OFXWriterSupport; /** * <p>EnrollTrnRqV1 message. </p> * * @author Suresh Pragada * @version 1.1 * @since 1.1 */ public class EnrollTrnRqV1 implements SignUpMsgRqV1, OFXWriterSupport { private String trnUID=null; private EnrollRq enrollRq=null; public EnrollTrnRqV1() { } public SignUpMsgType getSignUpMsgType() { return SignUpMsgType.ENROLLTRN_RQV1; } public String getTrnUID() { return this.trnUID; } public void setTrnUID(String trnUID) { this.trnUID=trnUID; } public EnrollRq getEnrollRq() { return this.enrollRq; } public void setEnrollRq(EnrollRq enrollRq) { this.enrollRq=enrollRq; } public String[] getMethodNamesInSortedOrder() { String[] methodNames=new String[2]; methodNames[0]="getTrnUID"; methodNames[1]="getEnrollRq"; return methodNames; } } |
Update of /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6330 Modified Files: ChallengeRq.java ChallengeRs.java ChallengeTrnRqV1.java ChallengeTrnRqV2.java ChallengeTrnRsV1.java ChallengeTrnRsV2.java PinChRq.java PinChRs.java PinChTrnRqV1.java PinChTrnRqV2.java PinChTrnRsV1.java PinChTrnRsV2.java SignOnMsgRqV1.java SignOnMsgRqV2.java SignOnMsgRsV1.java SignOnMsgRsV2.java SignOnMsgType.java SignOnRqV1.java SignOnRqV2.java SignOnRsV1.java SignOnRsV2.java Log Message: no message Index: ChallengeTrnRsV1.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon/ChallengeTrnRsV1.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ChallengeTrnRsV1.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- ChallengeTrnRsV1.java 18 Oct 2006 23:05:56 -0000 1.2 *************** *** 10,21 **** package org.jmonks.batch.io.ofx.messageset.aggregates.signon; import org.jmonks.batch.io.ofx.messageset.impl.OFXWriterSupport; /** * ! * @author W951AF9 */ public class ChallengeTrnRsV1 implements OFXWriterSupport, SignOnMsgRsV1 { private ChallengeRs challengeRs=null; /** Creates a new instance of ChallengeTrnRsV1 */ --- 10,27 ---- package org.jmonks.batch.io.ofx.messageset.aggregates.signon; + import org.jmonks.batch.io.ofx.messageset.aggregates.Status; import org.jmonks.batch.io.ofx.messageset.impl.OFXWriterSupport; /** + * <p>ChallengeTrnRsV1 message. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class ChallengeTrnRsV1 implements OFXWriterSupport, SignOnMsgRsV1 { + private String trnUID=null; + private Status status=null; private ChallengeRs challengeRs=null; /** Creates a new instance of ChallengeTrnRsV1 */ *************** *** 29,32 **** --- 35,58 ---- } + public String getTrnUID() + { + return this.trnUID; + } + + public void setTrnUID(String trnUID) + { + this.trnUID=trnUID; + } + + public Status getStatus() + { + return this.status; + } + + public void setStatus(Status status) + { + this.status=status; + } + public ChallengeRs getChallengeRs() { *************** *** 40,46 **** public String[] getMethodNamesInSortedOrder() { ! String[] methodNames=new String[1]; ! methodNames[0]="getChallengeRs"; return methodNames; } --- 66,75 ---- public String[] getMethodNamesInSortedOrder() { ! String[] methodNames=new String[3]; ! methodNames[0]="getTrnUID"; ! methodNames[1]="getStatus"; ! methodNames[2]="getChallengeRs"; return methodNames; + } Index: ChallengeTrnRsV2.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon/ChallengeTrnRsV2.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ChallengeTrnRsV2.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- ChallengeTrnRsV2.java 18 Oct 2006 23:05:56 -0000 1.2 *************** *** 10,23 **** package org.jmonks.batch.io.ofx.messageset.aggregates.signon; import org.jmonks.batch.io.ofx.messageset.impl.OFXWriterSupport; /** * ! * @author W951AF9 */ ! public class ChallengeTrnRsV2 implements OFXWriterSupport, SignOnMsgRsV2 { - private ChallengeRs challengeRs=null; - /** Creates a new instance of ChallengeTrnRsV2 */ public ChallengeTrnRsV2() { --- 10,25 ---- package org.jmonks.batch.io.ofx.messageset.aggregates.signon; + import org.jmonks.batch.io.ofx.messageset.aggregates.Status; import org.jmonks.batch.io.ofx.messageset.impl.OFXWriterSupport; /** + * <p>ChallengeTrnRsV2 message. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ ! public class ChallengeTrnRsV2 extends ChallengeTrnRsV1 implements OFXWriterSupport, SignOnMsgRsV2 { public ChallengeTrnRsV2() { *************** *** 28,47 **** return SignOnMsgType.CHALLENGETRN_RSV2; } - - public ChallengeRs getChallengeRs() - { - return challengeRs; - } - - public void setChallengeRs(ChallengeRs challengeRs) - { - this.challengeRs = challengeRs; - } - public String[] getMethodNamesInSortedOrder() - { - String[] methodNames=new String[1]; - methodNames[0]="getChallengeRs"; - return methodNames; - } - } --- 30,32 ---- Index: PinChTrnRqV2.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon/PinChTrnRqV2.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** PinChTrnRqV2.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- PinChTrnRqV2.java 18 Oct 2006 23:05:56 -0000 1.2 *************** *** 14,24 **** /** * ! * @author Suresh Pragada */ ! public class PinChTrnRqV2 implements OFXWriterSupport, SignOnMsgRqV2 { - private PinChRq pinChRq=null; - public PinChTrnRqV2() { --- 14,25 ---- /** + * <p>PinChTrnRqV2 message. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ ! public class PinChTrnRqV2 extends PinChTrnRqV1 implements OFXWriterSupport, SignOnMsgRqV2 { public PinChTrnRqV2() { *************** *** 29,49 **** return SignOnMsgType.PINCHTRN_RQV2; } - - public PinChRq getPinChRq() - { - return this.pinChRq; - } - - public void setPinChRq(PinChRq pinChRq) - { - this.pinChRq=pinChRq; - } - - public String[] getMethodNamesInSortedOrder() - { - String[] methodNames=new String[1]; - methodNames[0]="getPinChRq"; - return methodNames; - } - } --- 30,32 ---- Index: ChallengeRs.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon/ChallengeRs.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ChallengeRs.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- ChallengeRs.java 18 Oct 2006 23:05:56 -0000 1.2 *************** *** 13,18 **** /** * ! * @author W951AF9 */ public class ChallengeRs implements OFXWriterSupport --- 13,21 ---- /** + * <p>ChallengeRs aggregate. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class ChallengeRs implements OFXWriterSupport Index: PinChTrnRsV1.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon/PinChTrnRsV1.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** PinChTrnRsV1.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- PinChTrnRsV1.java 18 Oct 2006 23:05:56 -0000 1.2 *************** *** 10,23 **** package org.jmonks.batch.io.ofx.messageset.aggregates.signon; import org.jmonks.batch.io.ofx.messageset.impl.OFXWriterSupport; /** * ! * @author Suresh Pragada */ public class PinChTrnRsV1 implements OFXWriterSupport, SignOnMsgRsV1 { private PinChRs pinChRs=null; public PinChTrnRsV1() --- 10,29 ---- package org.jmonks.batch.io.ofx.messageset.aggregates.signon; + import org.jmonks.batch.io.ofx.messageset.aggregates.Status; import org.jmonks.batch.io.ofx.messageset.impl.OFXWriterSupport; /** + * <p>PinChTrnRsV1 message. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class PinChTrnRsV1 implements OFXWriterSupport, SignOnMsgRsV1 { + private String trnUID=null; private PinChRs pinChRs=null; + private Status status=null; public PinChTrnRsV1() *************** *** 29,32 **** --- 35,58 ---- return SignOnMsgType.PINCHTRN_RSV1; } + + public String getTrnUID() + { + return this.trnUID; + } + + public void setTrnUID(String trnUID) + { + this.trnUID=trnUID; + } + + public Status getStatus() + { + return this.status; + } + + public void setStatus(Status status) + { + this.status=status; + } public PinChRs getPinChRs() *************** *** 42,47 **** public String[] getMethodNamesInSortedOrder() { ! String[] methodNames=new String[1]; ! methodNames[0]="getPinChRs"; return methodNames; } --- 68,75 ---- public String[] getMethodNamesInSortedOrder() { ! String[] methodNames=new String[3]; ! methodNames[0]="getTrnUID"; ! methodNames[1]="getStatus"; ! methodNames[2]="getPinChRs"; return methodNames; } Index: SignOnRsV1.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon/SignOnRsV1.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SignOnRsV1.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- SignOnRsV1.java 18 Oct 2006 23:05:56 -0000 1.2 *************** *** 17,22 **** /** * ! * @author Suresh Pragada */ public class SignOnRsV1 implements OFXWriterSupport, SignOnMsgRsV1 --- 17,25 ---- /** + * <p>SignOnRsV1 message. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class SignOnRsV1 implements OFXWriterSupport, SignOnMsgRsV1 Index: SignOnRqV2.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon/SignOnRqV2.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SignOnRqV2.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- SignOnRqV2.java 18 Oct 2006 23:05:56 -0000 1.2 *************** *** 12,21 **** - - - /** * ! * @author Suresh Pragada */ public class SignOnRqV2 extends SignOnRqV1 implements SignOnMsgRqV2 --- 12,21 ---- /** + * <p>SignOnRqV2 message. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class SignOnRqV2 extends SignOnRqV1 implements SignOnMsgRqV2 Index: ChallengeTrnRqV2.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon/ChallengeTrnRqV2.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ChallengeTrnRqV2.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- ChallengeTrnRqV2.java 18 Oct 2006 23:05:56 -0000 1.2 *************** *** 13,23 **** /** * ! * @author W951AF9 */ ! public class ChallengeTrnRqV2 implements OFXWriterSupport, SignOnMsgRqV2 { - private ChallengeRq challengeRq=null; - public ChallengeTrnRqV2() { --- 13,24 ---- /** + * <p>ChallengeTrnRqV2 message. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ ! public class ChallengeTrnRqV2 extends ChallengeTrnRqV1 implements OFXWriterSupport, SignOnMsgRqV2 { public ChallengeTrnRqV2() { *************** *** 28,48 **** return SignOnMsgType.CHALLENGETRN_RQV2; } ! ! public ChallengeRq getChallengeRq() ! { ! return challengeRq; ! } ! ! public void setChallengeRq(ChallengeRq challengeRq) ! { ! this.challengeRq = challengeRq; ! } ! ! public String[] getMethodNamesInSortedOrder() ! { ! String[] methodNames=new String[1]; ! methodNames[0]="getChallengeRq"; ! return methodNames; ! } ! } --- 29,32 ---- return SignOnMsgType.CHALLENGETRN_RQV2; } ! } Index: ChallengeRq.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon/ChallengeRq.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ChallengeRq.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- ChallengeRq.java 18 Oct 2006 23:05:56 -0000 1.2 *************** *** 13,18 **** /** * ! * @author W951AF9 */ public class ChallengeRq implements OFXWriterSupport --- 13,21 ---- /** + * <p>ChallengeRq aggregate. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class ChallengeRq implements OFXWriterSupport Index: PinChTrnRqV1.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon/PinChTrnRqV1.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** PinChTrnRqV1.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- PinChTrnRqV1.java 18 Oct 2006 23:05:56 -0000 1.2 *************** *** 14,24 **** /** * ! * @author Suresh Pragada */ public class PinChTrnRqV1 implements OFXWriterSupport, SignOnMsgRqV1 { private PinChRq pinChRq=null; ! /** Creates a new instance of PinChTrnRqV1 */ public PinChTrnRqV1() { --- 14,28 ---- /** + * <p>PinChTrnRqV1 message. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class PinChTrnRqV1 implements OFXWriterSupport, SignOnMsgRqV1 { + private String trnUID=null; private PinChRq pinChRq=null; ! public PinChTrnRqV1() { *************** *** 30,33 **** --- 34,47 ---- } + public String getTrnUID() + { + return this.trnUID; + } + + public void setTrnUID(String trnUID) + { + this.trnUID=trnUID; + } + public PinChRq getPinChRq() { *************** *** 42,47 **** public String[] getMethodNamesInSortedOrder() { ! String[] methodNames=new String[1]; ! methodNames[0]="getPinChRq"; return methodNames; } --- 56,62 ---- public String[] getMethodNamesInSortedOrder() { ! String[] methodNames=new String[2]; ! methodNames[0]="getTrnUID"; ! methodNames[1]="getPinChRq"; return methodNames; } Index: SignOnMsgRqV2.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon/SignOnMsgRqV2.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SignOnMsgRqV2.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- SignOnMsgRqV2.java 18 Oct 2006 23:05:56 -0000 1.2 *************** *** 12,17 **** /** * ! * @author Suresh Pragada */ public interface SignOnMsgRqV2 --- 12,20 ---- /** + * <p>SignOnMsgRqV2 message. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public interface SignOnMsgRqV2 Index: PinChRs.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon/PinChRs.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** PinChRs.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- PinChRs.java 18 Oct 2006 23:05:56 -0000 1.2 *************** *** 14,19 **** /** * ! * @author Suresh Pragada */ public class PinChRs implements OFXWriterSupport --- 14,22 ---- /** + * <p>PinChRs aggregate. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class PinChRs implements OFXWriterSupport Index: SignOnMsgRsV1.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon/SignOnMsgRsV1.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SignOnMsgRsV1.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- SignOnMsgRsV1.java 18 Oct 2006 23:05:56 -0000 1.2 *************** *** 12,17 **** /** * ! * @author Suresh Pragada */ public interface SignOnMsgRsV1 --- 12,20 ---- /** + * <p>SignOnMsgRsV1 message. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public interface SignOnMsgRsV1 Index: SignOnRqV1.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon/SignOnRqV1.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SignOnRqV1.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- SignOnRqV1.java 18 Oct 2006 23:05:56 -0000 1.2 *************** *** 18,23 **** /** * ! * @author Suresh Pragada */ public class SignOnRqV1 implements OFXWriterSupport, SignOnMsgRqV1 --- 18,26 ---- /** + * <p>SignOnRqV1 message. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class SignOnRqV1 implements OFXWriterSupport, SignOnMsgRqV1 Index: SignOnRsV2.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon/SignOnRsV2.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SignOnRsV2.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- SignOnRsV2.java 18 Oct 2006 23:05:56 -0000 1.2 *************** *** 11,24 **** package org.jmonks.batch.io.ofx.messageset.aggregates.signon; import org.jmonks.batch.io.ofx.messageset.aggregates.Status; ! import org.jmonks.batch.io.ofx.messageset.aggregates.StatusV2; /** * ! * @author Suresh Pragada */ public class SignOnRsV2 extends SignOnRsV1 implements SignOnMsgRsV2 { private String country=null; ! private StatusV2 status=null; /** Creates a new instance of SignOnRsV2 */ --- 11,27 ---- package org.jmonks.batch.io.ofx.messageset.aggregates.signon; import org.jmonks.batch.io.ofx.messageset.aggregates.Status; ! /** + * <p>SignOnRsV2 message. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class SignOnRsV2 extends SignOnRsV1 implements SignOnMsgRsV2 { private String country=null; ! private Status status=null; /** Creates a new instance of SignOnRsV2 */ *************** *** 39,43 **** public void setStatus(Status status) { ! this.status=(StatusV2)status; } --- 42,46 ---- public void setStatus(Status status) { ! this.status=status; } Index: SignOnMsgRqV1.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon/SignOnMsgRqV1.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SignOnMsgRqV1.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- SignOnMsgRqV1.java 18 Oct 2006 23:05:56 -0000 1.2 *************** *** 12,17 **** /** * ! * @author Suresh Pragada */ public interface SignOnMsgRqV1 --- 12,20 ---- /** + * <p>SignOnMsgRqV1 message. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public interface SignOnMsgRqV1 Index: ChallengeTrnRqV1.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon/ChallengeTrnRqV1.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** ChallengeTrnRqV1.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- ChallengeTrnRqV1.java 18 Oct 2006 23:05:56 -0000 1.2 *************** *** 13,22 **** /** * ! * @author W951AF9 */ public class ChallengeTrnRqV1 implements OFXWriterSupport, SignOnMsgRqV1 { ! private ChallengeRq challengeRq=null; --- 13,25 ---- /** + * <p>ChallengeTrnRqV1 message. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class ChallengeTrnRqV1 implements OFXWriterSupport, SignOnMsgRqV1 { ! private String trnUID=null; private ChallengeRq challengeRq=null; *************** *** 30,33 **** --- 33,46 ---- } + public String getTrnUID() + { + return this.trnUID; + } + + public void setTrnUID(String trnUID) + { + this.trnUID=trnUID; + } + public ChallengeRq getChallengeRq() { *************** *** 42,48 **** public String[] getMethodNamesInSortedOrder() { ! String[] methodNames=new String[1]; ! methodNames[0]="getChallengeRq"; return methodNames; } } --- 55,63 ---- public String[] getMethodNamesInSortedOrder() { ! String[] methodNames=new String[2]; ! methodNames[0]="getTrnUID"; ! methodNames[1]="getChallengeRq"; return methodNames; + } } Index: SignOnMsgType.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon/SignOnMsgType.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SignOnMsgType.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- SignOnMsgType.java 18 Oct 2006 23:05:56 -0000 1.2 *************** *** 12,29 **** /** * ! * @author Suresh Pragada */ public class SignOnMsgType { ! private String signOnMsgType=null; public SignOnMsgType(String signOnMsgType) { this.signOnMsgType=signOnMsgType; } ! ! public static SignOnMsgType getMessageSetType(String type) { if(SIGNON_RQV1.toString().equalsIgnoreCase(type)) --- 12,47 ---- /** + * <p> + * SignOnMsgType is the enum class to describe the type of SignOn message. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class SignOnMsgType { ! /** ! * Holds the type of sign on message. ! */ private String signOnMsgType=null; + /** + * Constructs the signon message set type. + */ public SignOnMsgType(String signOnMsgType) { this.signOnMsgType=signOnMsgType; } ! ! /** ! * Returns the matching signon reference. Returns null if it cannot be matched ! * with any signon message type. ! * ! * @param type Type of sign on message. ! * ! * @return Returns the appropriate sign on message reference. ! */ ! public static SignOnMsgType getMessageType(String type) { if(SIGNON_RQV1.toString().equalsIgnoreCase(type)) *************** *** 55,58 **** --- 73,79 ---- } + /** + * Returns the sign on message type as string. + */ public String toString() { Index: PinChRq.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon/PinChRq.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** PinChRq.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- PinChRq.java 18 Oct 2006 23:05:56 -0000 1.2 *************** *** 14,19 **** /** * ! * @author Suresh Pragada */ public class PinChRq implements OFXWriterSupport --- 14,22 ---- /** + * <p>PinChRq aggregate. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class PinChRq implements OFXWriterSupport Index: PinChTrnRsV2.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon/PinChTrnRsV2.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** PinChTrnRsV2.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- PinChTrnRsV2.java 18 Oct 2006 23:05:56 -0000 1.2 *************** *** 14,24 **** /** * ! * @author Suresh Pragada */ ! public class PinChTrnRsV2 implements OFXWriterSupport, SignOnMsgRsV2 { - private PinChRs pinChRs=null; - public PinChTrnRsV2() { --- 14,25 ---- /** + * <p>PinChTrnRsV2 message. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ ! public class PinChTrnRsV2 extends PinChTrnRsV1 implements OFXWriterSupport, SignOnMsgRsV2 { public PinChTrnRsV2() { *************** *** 29,49 **** return SignOnMsgType.PINCHTRN_RSV2; } - - public PinChRs getPinChRs() - { - return this.pinChRs; - } - - public void setPinChRs(PinChRs pinChRs) - { - this.pinChRs=pinChRs; - } - - public String[] getMethodNamesInSortedOrder() - { - String[] methodNames=new String[1]; - methodNames[0]="getPinChRs"; - return methodNames; - } - } --- 30,32 ---- Index: SignOnMsgRsV2.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/signon/SignOnMsgRsV2.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SignOnMsgRsV2.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- SignOnMsgRsV2.java 18 Oct 2006 23:05:56 -0000 1.2 *************** *** 12,17 **** /** * ! * @author Suresh Pragada */ public interface SignOnMsgRsV2 --- 12,20 ---- /** + * <p>SignOnMsgRsV2 message. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public interface SignOnMsgRsV2 |
Update of /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/impl In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6306 Modified Files: MessageSetImpl.java MessageSetReader.java MessageSetWriter.java OFXWriterSupport.java SignOnMsgsRqV1Impl.java SignOnMsgsRqV2Impl.java SignOnMsgsRsV1Impl.java SignOnMsgsRsV2Impl.java SignUpMsgsRqV1Impl.java Added Files: SignUpMsgsRsV1Impl.java Removed Files: SignUpMsgsRqV2Impl.java Log Message: no message Index: OFXWriterSupport.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/impl/OFXWriterSupport.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** OFXWriterSupport.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- OFXWriterSupport.java 18 Oct 2006 23:05:38 -0000 1.2 *************** *** 12,20 **** /** * ! * @author Suresh Pragada */ public interface OFXWriterSupport { String[] getMethodNamesInSortedOrder(); } --- 12,29 ---- /** + * <p> + * OFXWriterSupport makes aggregate instances to be usable by MessageSetImpl + * to write the aggregate to the output stream. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public interface OFXWriterSupport { + /** + * Returns the set of method in the order to be written to the output stream. + */ String[] getMethodNamesInSortedOrder(); } Index: SignOnMsgsRsV1Impl.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/impl/SignOnMsgsRsV1Impl.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SignOnMsgsRsV1Impl.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- SignOnMsgsRsV1Impl.java 18 Oct 2006 23:05:38 -0000 1.2 *************** *** 21,35 **** /** * ! * @author Suresh Pragada */ public class SignOnMsgsRsV1Impl extends MessageSetImpl implements SignOnMsgsRsV1 { - - /** Creates a new instance of SignOnMsgsRsV1Impl */ public SignOnMsgsRsV1Impl() { } ! public MessageSetType getMessageSetType() { --- 21,41 ---- /** + * <p> + * SignOnMsgsRsV1Impl provides the implementation for the SignOnMsgsRsV1 interface. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class SignOnMsgsRsV1Impl extends MessageSetImpl implements SignOnMsgsRsV1 { public SignOnMsgsRsV1Impl() { } ! ! /** ! * Returns the SignOn response V1 Message Set Type. ! */ public MessageSetType getMessageSetType() { *************** *** 37,45 **** } public SignOnMsgRsV1 getSignOnMsgRsV1() { return (SignOnMsgRsV1)super.readNextMessage(new Class[]{SignOnRsV1.class, PinChTrnRsV1.class, ChallengeTrnRsV1.class}); } ! public void addSignOnMsgRsV1(SignOnMsgRsV1 signOnMsgRsV1) { --- 43,57 ---- } + /** + * @see org.jmonks.batch.io.ofx.messageset.SignOnMsgsRsV1#getSignOnMsgRsV1() + */ public SignOnMsgRsV1 getSignOnMsgRsV1() { return (SignOnMsgRsV1)super.readNextMessage(new Class[]{SignOnRsV1.class, PinChTrnRsV1.class, ChallengeTrnRsV1.class}); } ! ! /** ! * @see org.jmonks.batch.io.ofx.messageset.SignOnMsgsRsV1#addSignOnMsgRsV1(SignOnMsgRsV1) ! */ public void addSignOnMsgRsV1(SignOnMsgRsV1 signOnMsgRsV1) { Index: MessageSetWriter.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/impl/MessageSetWriter.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** MessageSetWriter.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- MessageSetWriter.java 18 Oct 2006 23:05:38 -0000 1.2 *************** *** 15,25 **** /** * ! * @author Suresh Pragada */ public interface MessageSetWriter { void initializeWriter(MessageSetType messageSetType, OFXWriterHelper writerHelper); boolean writeMessage(Object message); void finishedWritingMessages(); } --- 15,49 ---- /** + * <p> + * MessageSetWriter provides the interface to the OFXFileWriter to create the message + * sets should be written to the output stream. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public interface MessageSetWriter { + /** + * Initializes Message set implementation to write the messages to the given stream. + * + * @param messageSetType Type of the message set it is representing. + * @param writerHelper Writer to write the OFX data. + */ void initializeWriter(MessageSetType messageSetType, OFXWriterHelper writerHelper); + + /** + * Writes the message to the output stream. The message class should be + * configured in type defintions for this message set and it should support + * the OFXWriterSupport interface. + * + * @param message Message to be written to the output stream. + */ boolean writeMessage(Object message); + + /** + * Writes the information that denotes the end of message set. + */ void finishedWritingMessages(); } --- SignUpMsgsRqV2Impl.java DELETED --- Index: SignUpMsgsRqV1Impl.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/impl/SignUpMsgsRqV1Impl.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SignUpMsgsRqV1Impl.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- SignUpMsgsRqV1Impl.java 18 Oct 2006 23:05:38 -0000 1.2 *************** *** 12,29 **** import org.jmonks.batch.io.ofx.messageset.MessageSetType; import org.jmonks.batch.io.ofx.messageset.SignUpMsgsRqV1; ! import org.jmonks.batch.io.ofx.messageset.aggregates.signup.EnrollTrnRq; /** * ! * @author Suresh Pragada */ public class SignUpMsgsRqV1Impl extends MessageSetImpl implements SignUpMsgsRqV1 { - - /** Creates a new instance of SignUpMsgsRqV1Impl */ public SignUpMsgsRqV1Impl() { } ! public MessageSetType getMessageSetType() { --- 12,38 ---- import org.jmonks.batch.io.ofx.messageset.MessageSetType; import org.jmonks.batch.io.ofx.messageset.SignUpMsgsRqV1; ! import org.jmonks.batch.io.ofx.messageset.aggregates.signup.EnrollTrnRqV1; ! import org.jmonks.batch.io.ofx.messageset.aggregates.signup.SignUpMsgRqV1; ! import org.jmonks.batch.io.ofx.messageset.aggregates.signup.SignUpMsgType; ! import org.jmonks.batch.io.ofx.parser.OFXStreamException; /** + * <p> + * SignUpMsgsRqV1Impl provides the implementation for the SignUpMsgsRqV1 interface. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class SignUpMsgsRqV1Impl extends MessageSetImpl implements SignUpMsgsRqV1 { public SignUpMsgsRqV1Impl() { } ! ! /** ! * Returns the SignUp request V1 Message Set Type. ! */ public MessageSetType getMessageSetType() { *************** *** 31,42 **** } ! public EnrollTrnRq getNextEnrollTrnRq() { ! return (EnrollTrnRq)super.readNextMessage(new Class[]{EnrollTrnRq.class}); } ! public void addEnrollTrnRq(EnrollTrnRq enrollTrnRq) { ! super.writeMessage(enrollTrnRq); } } --- 40,61 ---- } ! /** ! * @see org.jmonks.batch.io.ofx.messageset.SignUpMsgsRqV1#getSignUpMsgRqV1() ! */ ! public SignUpMsgRqV1 getSignUpMsgRqV1() { ! return (SignUpMsgRqV1)super.readNextMessage(new Class[]{EnrollTrnRqV1.class}); } ! /** ! * @see org.jmonks.batch.io.ofx.messageset.SignUpMsgsRqV1#addSignUpMsgRqV1(SignUpMsgRqV1) ! */ ! public void addSignUpMsgRqV1(SignUpMsgRqV1 signUpMsgRqV1) { ! SignUpMsgType msgType=signUpMsgRqV1.getSignUpMsgType(); ! if(msgType==SignUpMsgType.ENROLLTRN_RQV1) ! super.writeMessage(signUpMsgRqV1); ! else ! throw new OFXStreamException("Invalid message to be written to the " + this.getMessageSetType().toString()); } } Index: MessageSetImpl.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/impl/MessageSetImpl.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** MessageSetImpl.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- MessageSetImpl.java 18 Oct 2006 23:05:38 -0000 1.2 *************** *** 25,30 **** /** * ! * @author Suresh Pragada */ public abstract class MessageSetImpl implements MessageSetReader, MessageSetWriter --- 25,37 ---- /** + * <p> + * MessageSetImpl provides most of the core and common tasks for all the message sets. + * The tasks are like reading the next message from the stream and write the + * message to the stream. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public abstract class MessageSetImpl implements MessageSetReader, MessageSetWriter *************** *** 32,42 **** private static Logger logger=Logger.getLogger(MessageSetImpl.class); protected MessageSetType messageSetType=null; ! private OFXParser parser=null; protected OFXWriterHelper writerHelper=null; ! private boolean servedAllMessages=false; public void initializeReader(MessageSetType messageSetType, OFXParser parser) { --- 39,65 ---- private static Logger logger=Logger.getLogger(MessageSetImpl.class); + /** + * Type of message set it is building + */ protected MessageSetType messageSetType=null; ! /** ! * Parser to get the next message from the stream ! */ private OFXParser parser=null; + /** + * Writer to write the message to the stream + */ protected OFXWriterHelper writerHelper=null; ! /** ! * Tells whether it has served all the messages or not ! */ private boolean servedAllMessages=false; + /** + * Initializes Message set implementation to read the messages from the given parser. + * + * @param messageSetType Type of the message set it is representing. + * @param parser OFXParser to read the messages. + */ public void initializeReader(MessageSetType messageSetType, OFXParser parser) { *************** *** 46,51 **** --- 69,83 ---- } + /** + * Reads the next message from the parser. Caller would typically provide + * the expected classes from the stream. + * + * @param expectedMessageClassNames Array of classes caller is expecting. + * + * @return Returns the next message, null it no messages were found. + */ public Object readNextMessage(Class[] expectedMessageClassNames) { + logger.trace("Entering readNextMessage = " + servedAllMessages); if(this.servedAllMessages) return null; *************** *** 55,58 **** --- 87,94 ---- while((nextEvent=parser.getNextEvent())!=null) { + /** + * End element means, we need to create either an + * aggregate or message or it is the end of the message set. + */ if(nextEvent.getEventType()==OFXEvent.END_ELEMENT) { *************** *** 106,118 **** } ! public void finishedReadingMessages() { if(this.servedAllMessages) ! { ! /** ! * All the messages have been served. ! */ ! } else { --- 142,153 ---- } ! /** ! * Read all the unread messages from this message set to keep the pointer ! * to the next message set. ! */ public void finishedReadingMessages() { if(this.servedAllMessages) ! logger.trace("All messages have been served."); else { *************** *** 127,130 **** --- 162,173 ---- } + /** + * Constructs the aggregate for the given element name and element value map. + * + * @param elementName Aggregate name. + * @param elementValueMap Map consists of the simple elements to be injected to the aggregate. + * + * @return Returns the aggregate instance. + */ private Object handleAggregate(String elementName, Map elementValueMap) { *************** *** 182,186 **** } ! public void initializeWriter(MessageSetType messageSetType, OFXWriterHelper writerHelper) { --- 225,234 ---- } ! /** ! * Initializes Message set implementation to write the messages to the given stream. ! * ! * @param messageSetType Type of the message set it is representing. ! * @param writerHelper Writer to write the OFX data. ! */ public void initializeWriter(MessageSetType messageSetType, OFXWriterHelper writerHelper) { *************** *** 190,193 **** --- 238,244 ---- } + /** + * Writes the information that denotes the end of message set. + */ public void finishedWritingMessages() { *************** *** 196,199 **** --- 247,257 ---- } + /** + * Writes the message to the output stream. The message class should be + * configured in type defintions for this message set and it should support + * the OFXWriterSupport interface. + * + * @param message Message to be written to the output stream. + */ public boolean writeMessage(Object message) { Index: SignOnMsgsRsV2Impl.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/impl/SignOnMsgsRsV2Impl.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SignOnMsgsRsV2Impl.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- SignOnMsgsRsV2Impl.java 18 Oct 2006 23:05:38 -0000 1.2 *************** *** 21,35 **** /** * ! * @author Suresh Pragada */ public class SignOnMsgsRsV2Impl extends MessageSetImpl implements SignOnMsgsRsV2 { - - /** Creates a new instance of SignOnMsgsRsV2Impl */ public SignOnMsgsRsV2Impl() { } public MessageSetType getMessageSetType() { --- 21,41 ---- /** + * <p> + * SignOnMsgsRsV2Impl provides the implementation for the SignOnMsgsRsV2 interface. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class SignOnMsgsRsV2Impl extends MessageSetImpl implements SignOnMsgsRsV2 { public SignOnMsgsRsV2Impl() { } + /** + * Returns the SignOn response V2 Message Set Type. + */ public MessageSetType getMessageSetType() { *************** *** 37,40 **** --- 43,49 ---- } + /** + * @see org.jmonks.batch.io.ofx.messageset.SignOnMsgsRsV2#getSignOnMsgRsV2() + */ public SignOnMsgRsV2 getSignOnMsgRsV2() { *************** *** 42,45 **** --- 51,57 ---- } + /** + * @see org.jmonks.batch.io.ofx.messageset.SignOnMsgsRsV2#addSignOnMsgRsV2(SignOnMsgRsV2) + */ public void addSignOnMsgRsV2(SignOnMsgRsV2 signOnMsgRsV2) { Index: SignOnMsgsRqV2Impl.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/impl/SignOnMsgsRqV2Impl.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SignOnMsgsRqV2Impl.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- SignOnMsgsRqV2Impl.java 18 Oct 2006 23:05:38 -0000 1.2 *************** *** 21,26 **** /** * ! * @author Suresh Pragada */ public class SignOnMsgsRqV2Impl extends MessageSetImpl implements SignOnMsgsRqV2 --- 21,31 ---- /** + * <p> + * SignOnMsgsRqV2Impl provides the implementation for the SignOnMsgsRqV2 interface. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class SignOnMsgsRqV2Impl extends MessageSetImpl implements SignOnMsgsRqV2 *************** *** 30,33 **** --- 35,41 ---- } + /** + * Returns the SignOn request V2 Message Set Type. + */ public MessageSetType getMessageSetType() { *************** *** 35,43 **** } public SignOnMsgRqV2 getSignOnMsgRqV2() { return (SignOnMsgRqV2)super.readNextMessage(new Class[]{SignOnRqV2.class, PinChTrnRqV2.class, ChallengeTrnRqV2.class}); } ! public void addSignOnMsgRqV2(SignOnMsgRqV2 signOnMsgRqV2) { --- 43,57 ---- } + /** + * @see org.jmonks.batch.io.ofx.messageset.SignOnMsgsRqV2#getSignOnMsgRqV2() + */ public SignOnMsgRqV2 getSignOnMsgRqV2() { return (SignOnMsgRqV2)super.readNextMessage(new Class[]{SignOnRqV2.class, PinChTrnRqV2.class, ChallengeTrnRqV2.class}); } ! ! /** ! * @see org.jmonks.batch.io.ofx.messageset.SignOnMsgsRqV2#addSignOnMsgRqV2(SignOnMsgRqV2) ! */ public void addSignOnMsgRqV2(SignOnMsgRqV2 signOnMsgRqV2) { Index: SignOnMsgsRqV1Impl.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/impl/SignOnMsgsRqV1Impl.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SignOnMsgsRqV1Impl.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- SignOnMsgsRqV1Impl.java 18 Oct 2006 23:05:38 -0000 1.2 *************** *** 20,25 **** /** * ! * @author Suresh Pragada */ public class SignOnMsgsRqV1Impl extends MessageSetImpl implements SignOnMsgsRqV1 --- 20,30 ---- /** + * <p> + * SignOnMsgsRqV1Impl provides the implementation for the SignOnMsgsRqV1 interface. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class SignOnMsgsRqV1Impl extends MessageSetImpl implements SignOnMsgsRqV1 *************** *** 29,32 **** --- 34,40 ---- } + /** + * Returns the SignOn request V1 Message Set Type. + */ public MessageSetType getMessageSetType() { *************** *** 34,42 **** } public SignOnMsgRqV1 getSignOnMsgRqV1() { return (SignOnMsgRqV1)super.readNextMessage(new Class[]{SignOnRqV1.class, PinChTrnRqV1.class, ChallengeTrnRqV1.class}); } ! public void addSignOnMsgRqV1(SignOnMsgRqV1 signOnMsgRqV1) { --- 42,56 ---- } + /** + * @see org.jmonks.batch.io.ofx.messageset.SignOnMsgsRqV1#getSignOnMsgRqV1() + */ public SignOnMsgRqV1 getSignOnMsgRqV1() { return (SignOnMsgRqV1)super.readNextMessage(new Class[]{SignOnRqV1.class, PinChTrnRqV1.class, ChallengeTrnRqV1.class}); } ! ! /** ! * @see org.jmonks.batch.io.ofx.messageset.SignOnMsgsRqV1#addSignOnMsgRqV1(SignOnMsgRqV1) ! */ public void addSignOnMsgRqV1(SignOnMsgRqV1 signOnMsgRqV1) { Index: MessageSetReader.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/impl/MessageSetReader.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** MessageSetReader.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- MessageSetReader.java 18 Oct 2006 23:05:38 -0000 1.2 *************** *** 16,26 **** /** * ! * @author Suresh Pragada */ public interface MessageSetReader { void initializeReader(MessageSetType messageSetType, OFXParser parser); Object readNextMessage(Class[] expectedMessageClassNames); void finishedReadingMessages(); } --- 16,52 ---- /** + * <p> + * MessageSetReader provides the interface to the OFXFileReader to create the message + * sets should be constructed from the input stream. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public interface MessageSetReader { + /** + * Initializes Message set implementation to read the messages from the given parser. + * + * @param messageSetType Type of the message set it is representing. + * @param parser OFXParser to read the messages. + */ void initializeReader(MessageSetType messageSetType, OFXParser parser); + + /** + * Reads the next message from the parser. Caller would typically provide + * the expected classes from the stream. + * + * @param expectedMessageClassNames Array of classes caller is expecting. + * + * @return Returns the next message, null it no messages were found. + */ Object readNextMessage(Class[] expectedMessageClassNames); + + /** + * Read all the unread messages from this message set to keep the pointer + * to the next message set. + */ void finishedReadingMessages(); } --- NEW FILE: SignUpMsgsRsV1Impl.java --- /* * SignUpMsgsRsV1Impl.java * * Created on October 11, 2006, 11:47 AM * * To change this template, choose Tools | Options and locate the template under * the Source Creation and Management node. Right-click the template and choose * Open. You can then make changes to the template in the Source Editor. */ package org.jmonks.batch.io.ofx.messageset.impl; import org.jmonks.batch.io.ofx.messageset.MessageSetType; import org.jmonks.batch.io.ofx.messageset.SignUpMsgsRsV1; import org.jmonks.batch.io.ofx.messageset.aggregates.signup.EnrollTrnRsV1; import org.jmonks.batch.io.ofx.messageset.aggregates.signup.SignUpMsgRsV1; import org.jmonks.batch.io.ofx.messageset.aggregates.signup.SignUpMsgType; import org.jmonks.batch.io.ofx.parser.OFXStreamException; /** * <p> * SignUpMsgsRsV1Impl provides the implementation for the SignUpMsgsRsV1 interface. * </p> * * @author Suresh Pragada * @version 1.1 * @since 1.1 */ public class SignUpMsgsRsV1Impl extends MessageSetImpl implements SignUpMsgsRsV1 { public SignUpMsgsRsV1Impl() { } /** * Returns the SignUp response V1 Message Set Type. */ public MessageSetType getMessageSetType() { return MessageSetType.SIGNUP_MSGS_RSV1; } /** * @see org.jmonks.batch.io.ofx.messageset.SignUpMsgsRsV1#getSignUpMsgRsV1() */ public SignUpMsgRsV1 getSignUpMsgRsV1() { return (SignUpMsgRsV1)super.readNextMessage(new Class[]{EnrollTrnRsV1.class}); } /** * @see org.jmonks.batch.io.ofx.messageset.SignUpMsgsRsV1#addSignUpMsgRsV1(SignUpMsgRsV1) */ public void addSignUpMsgRsV1(SignUpMsgRsV1 signUpMsgRsV1) { SignUpMsgType msgType=signUpMsgRsV1.getSignUpMsgType(); if(msgType==SignUpMsgType.ENROLLTRN_RSV1) super.writeMessage(signUpMsgRsV1); else throw new OFXStreamException("Invalid message to be written to the " + this.getMessageSetType().toString()); } } |
From: Suresh <sur...@us...> - 2006-10-18 23:05:20
|
Update of /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv6273 Modified Files: FI.java MessageTypeDefinitions.properties MessageTypeDefintions.java Status.java StatusV1.java StatusV2.java Log Message: no message Index: FI.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/FI.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** FI.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- FI.java 18 Oct 2006 23:05:16 -0000 1.2 *************** *** 14,19 **** /** * ! * @author Suresh Pragada */ public class FI implements OFXWriterSupport --- 14,22 ---- /** + * <p>FI aggregate. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class FI implements OFXWriterSupport Index: MessageTypeDefintions.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/MessageTypeDefintions.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** MessageTypeDefintions.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- MessageTypeDefintions.java 18 Oct 2006 23:05:16 -0000 1.2 *************** *** 18,31 **** /** * ! * @author Suresh Pragada */ public class MessageTypeDefintions { private static final MessageTypeDefintions defintions=new MessageTypeDefintions(); ! private Map tagClassMap=new HashMap(); private Map classTagMap=new HashMap(); private MessageTypeDefintions() { --- 18,49 ---- /** + * <p> + * MessageTypeDefintions provides the interface for the MessageTypeDefintions.properties + * file and provides the additional methods to add the custom aggregate implementations. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class MessageTypeDefintions { + /** + * Holds the singleton reference. + */ private static final MessageTypeDefintions defintions=new MessageTypeDefintions(); ! /** ! * Holds all the tag to class mappings on message set basis. ! */ private Map tagClassMap=new HashMap(); + /** + * Holds all the class to tag mappings on message set basis. + */ private Map classTagMap=new HashMap(); + /** + * Constructs the MessageTypeDefinitions by loading the implementation mappings from the + * MessageTypeDefinitions.properties file. + */ private MessageTypeDefintions() { *************** *** 55,59 **** } } ! public static MessageTypeDefintions getDefinitions() { --- 73,80 ---- } } ! ! /** ! * Gets the reference to MessageTypeDefintions. ! */ public static MessageTypeDefintions getDefinitions() { *************** *** 61,64 **** --- 82,94 ---- } + /** + * Retruns the class name for a requested tag name belongs to the + * requested message set type. + * + * @param messageSetType Type of the message set. + * @param tagName Name of the tag. + * + * @return Returns the aggregate class name. + */ public String getClassNameFromTagName(MessageSetType messageSetType, String tagName) { *************** *** 70,73 **** --- 100,112 ---- } + /** + * Retruns the tag name for a requested class name belongs to the + * requested message set type. + * + * @param messageSetType Type of the message set. + * @param className Name of the class. + * + * @return Returns the tag name. + */ public String getTagNameFromClassName(MessageSetType messageSetType, String className) { Index: StatusV2.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/StatusV2.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** StatusV2.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- StatusV2.java 18 Oct 2006 23:05:16 -0000 1.2 *************** *** 14,19 **** /** * ! * @author Suresh Pragada */ public class StatusV2 extends Status implements OFXWriterSupport --- 14,22 ---- /** + * <p>StatusV2 aggregate. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class StatusV2 extends Status implements OFXWriterSupport Index: MessageTypeDefinitions.properties =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/MessageTypeDefinitions.properties,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** MessageTypeDefinitions.properties 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- MessageTypeDefinitions.properties 18 Oct 2006 23:05:16 -0000 1.2 *************** *** 27,32 **** SIGNONMSGSRSV2.CHALLENGERS=org.jmonks.batch.io.ofx.messageset.aggregates.signon.ChallengeRs #################### SignUpMessageSet ! SIGNUPMSGSRQV1.ENROLLTRNRQ=org.jmonks.batch.io.ofx.messageset.aggregates.EnrollTrnRq ! SIGNUPMSGSRQV1.ENROLLRQ=org.jmonks.batch.io.ofx.messageset.aggregates.EnrollRq ! SIGNUPMSGSRQV2.ENROLLTRNRQ=org.jmonks.batch.io.ofx.messageset.aggregates.EnrollTrnRq ! SIGNUPMSGSRQV2.ENROLLRQ=org.jmonks.batch.io.ofx.messageset.aggregates.EnrollRq --- 27,33 ---- SIGNONMSGSRSV2.CHALLENGERS=org.jmonks.batch.io.ofx.messageset.aggregates.signon.ChallengeRs #################### SignUpMessageSet ! SIGNUPMSGSRQV1.ENROLLTRNRQ=org.jmonks.batch.io.ofx.messageset.aggregates.signup.EnrollTrnRqV1 ! SIGNUPMSGSRQV1.ENROLLRQ=org.jmonks.batch.io.ofx.messageset.aggregates.signup.EnrollRq ! SIGNUPMSGSRSV1.ENROLLTRNRS=org.jmonks.batch.io.ofx.messageset.aggregates.signup.EnrollTrnRsV1 ! SIGNUPMSGSRSV1.ENROLLRS=org.jmonks.batch.io.ofx.messageset.aggregates.signup.EnrollRs ! SIGNUPMSGSRSV1.STATUS=org.jmonks.batch.io.ofx.messageset.aggregates.StatusV1 Index: StatusV1.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/StatusV1.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** StatusV1.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- StatusV1.java 18 Oct 2006 23:05:16 -0000 1.2 *************** *** 14,19 **** /** * ! * @author Suresh Pragada */ public class StatusV1 extends Status implements OFXWriterSupport --- 14,22 ---- /** + * <p>StatusV1 aggregate. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class StatusV1 extends Status implements OFXWriterSupport Index: Status.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/aggregates/Status.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** Status.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- Status.java 18 Oct 2006 23:05:16 -0000 1.2 *************** *** 12,17 **** /** * ! * @author Suresh Pragada */ public class Status --- 12,20 ---- /** + * <p>Status aggregate. </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class Status |
Update of /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv5898 Modified Files: MessageSet.java MessageSetDefinitions.java MessageSetDefinitions.properties MessageSetType.java SignOnMsgsRqV1.java SignOnMsgsRqV2.java SignOnMsgsRsV1.java SignOnMsgsRsV2.java SignUpMsgsRqV1.java Added Files: SignUpMsgsRsV1.java Removed Files: SignUpMsgsRqV2.java Log Message: no message Index: MessageSet.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/MessageSet.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** MessageSet.java 18 Oct 2006 03:19:16 -0000 1.1.1.1 --- MessageSet.java 18 Oct 2006 23:05:01 -0000 1.2 *************** *** 12,20 **** /** * ! * @author Suresh Pragada */ public interface MessageSet { MessageSetType getMessageSetType(); } --- 12,30 ---- /** + * <p> + * Marker interface to identify the type of the message set. All message set + * implementations should implements this interface and should return the + * corrent message set type. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public interface MessageSet { + /** + * Returns the message set type. + */ MessageSetType getMessageSetType(); } Index: SignUpMsgsRqV1.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/SignUpMsgsRqV1.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SignUpMsgsRqV1.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- SignUpMsgsRqV1.java 18 Oct 2006 23:05:02 -0000 1.2 *************** *** 10,22 **** package org.jmonks.batch.io.ofx.messageset; ! import org.jmonks.batch.io.ofx.messageset.aggregates.signup.EnrollTrnRq; /** * ! * @author Suresh Pragada */ public interface SignUpMsgsRqV1 extends MessageSet { ! EnrollTrnRq getNextEnrollTrnRq(); ! void addEnrollTrnRq(EnrollTrnRq enrollTrnRq); } --- 10,35 ---- package org.jmonks.batch.io.ofx.messageset; ! import org.jmonks.batch.io.ofx.messageset.aggregates.signup.SignUpMsgRqV1; /** + * <p> + * SignUpMsgsRqV1 defines the methods to read and write the messages of + * signup V1 request message set. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public interface SignUpMsgsRqV1 extends MessageSet { ! /** ! * Gets the next singup V1 request message from the stream. ! */ ! SignUpMsgRqV1 getSignUpMsgRqV1(); ! ! /** ! * Writes the signup V1 request message to the stream. ! */ ! void addSignUpMsgRqV1(SignUpMsgRqV1 signUpMsgRqV1); } Index: MessageSetType.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/MessageSetType.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** MessageSetType.java 18 Oct 2006 03:19:16 -0000 1.1.1.1 --- MessageSetType.java 18 Oct 2006 23:05:01 -0000 1.2 *************** *** 12,22 **** /** * ! * @author Suresh Pragada */ public class MessageSetType { private String messageSetType=null; protected MessageSetType(String type) { --- 12,33 ---- /** + * <p> + * MessageSetType is the enum class to describe the type of message set. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class MessageSetType { + /** + * Holds the message set type. + */ private String messageSetType=null; + /** + * Constructs the message set type. + */ protected MessageSetType(String type) { *************** *** 24,27 **** --- 35,46 ---- } + /** + * Returns the matching reference. Returns null if it cannot be matched + * with any message set. + * + * @param type Type of message set. + * + * @return Returns the appropriate message set reference. + */ public static MessageSetType getMessageSetType(String type) { *************** *** 36,45 **** if(SIGNUP_MSGS_RQV1.toString().equalsIgnoreCase(type)) return SIGNUP_MSGS_RQV1; ! else if(SIGNUP_MSGS_RQV2.toString().equalsIgnoreCase(type)) ! return SIGNUP_MSGS_RQV2; else return null; } public String toString() { --- 55,67 ---- if(SIGNUP_MSGS_RQV1.toString().equalsIgnoreCase(type)) return SIGNUP_MSGS_RQV1; ! else if(SIGNUP_MSGS_RSV1.toString().equalsIgnoreCase(type)) ! return SIGNUP_MSGS_RSV1; else return null; } + /** + * Returns the message set type as string. + */ public String toString() { *************** *** 47,56 **** } public static final MessageSetType SIGNON_MSGS_RQV1=new MessageSetType("SIGNONMSGSRQV1"); public static final MessageSetType SIGNON_MSGS_RQV2=new MessageSetType("SIGNONMSGSRQV2"); public static final MessageSetType SIGNON_MSGS_RSV1=new MessageSetType("SIGNONMSGSRSV1"); public static final MessageSetType SIGNON_MSGS_RSV2=new MessageSetType("SIGNONMSGSRSV2"); public static final MessageSetType SIGNUP_MSGS_RQV1=new MessageSetType("SIGNUPMSGSRQV1"); ! public static final MessageSetType SIGNUP_MSGS_RQV2=new MessageSetType("SIGNUPMSGSRQV2"); } --- 69,96 ---- } + /** + * Represents the SIGNONMSGSRQV1 + */ public static final MessageSetType SIGNON_MSGS_RQV1=new MessageSetType("SIGNONMSGSRQV1"); + /** + * Represents the SIGNONMSGSRQV2 + */ public static final MessageSetType SIGNON_MSGS_RQV2=new MessageSetType("SIGNONMSGSRQV2"); + /** + * Represents the SIGNONMSGSRSV1 + */ public static final MessageSetType SIGNON_MSGS_RSV1=new MessageSetType("SIGNONMSGSRSV1"); + /** + * Represents the SIGNONMSGSRSV2 + */ public static final MessageSetType SIGNON_MSGS_RSV2=new MessageSetType("SIGNONMSGSRSV2"); + /** + * Represents the SIGNUPMSGSRQV1 + */ public static final MessageSetType SIGNUP_MSGS_RQV1=new MessageSetType("SIGNUPMSGSRQV1"); ! /** ! * Represents the SIGNUPMSGSRQV2 ! */ ! public static final MessageSetType SIGNUP_MSGS_RSV1=new MessageSetType("SIGNUPMSGSRSV1"); } Index: SignOnMsgsRsV1.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/SignOnMsgsRsV1.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SignOnMsgsRsV1.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- SignOnMsgsRsV1.java 18 Oct 2006 23:05:02 -0000 1.2 *************** *** 13,22 **** /** * ! * @author Suresh Pragada */ public interface SignOnMsgsRsV1 extends MessageSet { SignOnMsgRsV1 getSignOnMsgRsV1(); void addSignOnMsgRsV1(SignOnMsgRsV1 signOnMsgRsV1); } --- 13,35 ---- /** + * <p> + * SignOnMsgsRsV1 defines the methods to read and write the messages of + * signon V1 response message set. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public interface SignOnMsgsRsV1 extends MessageSet { + /** + * Gets the next signon V1 response message from the stream. + */ SignOnMsgRsV1 getSignOnMsgRsV1(); + + /** + * Writes the next signon V1 response message to the stream. + */ void addSignOnMsgRsV1(SignOnMsgRsV1 signOnMsgRsV1); } Index: SignOnMsgsRqV2.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/SignOnMsgsRqV2.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SignOnMsgsRqV2.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- SignOnMsgsRqV2.java 18 Oct 2006 23:05:01 -0000 1.2 *************** *** 14,23 **** /** * ! * @author Suresh Pragada */ public interface SignOnMsgsRqV2 extends MessageSet { SignOnMsgRqV2 getSignOnMsgRqV2(); void addSignOnMsgRqV2(SignOnMsgRqV2 signOnMsgRqV2); } --- 14,36 ---- /** + * <p> + * SignOnMsgsRqV2 defines the methods to read and write the messages of + * signon V2 request message set. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public interface SignOnMsgsRqV2 extends MessageSet { + /** + * Gets the next signon V2 request message from the stream. + */ SignOnMsgRqV2 getSignOnMsgRqV2(); + + /** + * Writes the signon V2 request message to the stream. + */ void addSignOnMsgRqV2(SignOnMsgRqV2 signOnMsgRqV2); } Index: MessageSetDefinitions.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/MessageSetDefinitions.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** MessageSetDefinitions.java 18 Oct 2006 03:19:16 -0000 1.1.1.1 --- MessageSetDefinitions.java 18 Oct 2006 23:05:01 -0000 1.2 *************** *** 17,29 **** /** * ! * @author Suresh Pragada */ public class MessageSetDefinitions { private static final MessageSetDefinitions defintions=new MessageSetDefinitions(); ! private Map messageSetMap=new HashMap(); public MessageSetDefinitions() { --- 17,44 ---- /** + * <p> + * MessageSetDefinitions provides the interface for the MessageSetDefintions.properties + * file and provides the additional methods to add the custom message set implementations. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class MessageSetDefinitions { + /** + * Holds the singleton reference. + */ private static final MessageSetDefinitions defintions=new MessageSetDefinitions(); ! /** ! * Holds all the implementation mappings. ! */ private Map messageSetMap=new HashMap(); + /** + * Constructs the MessageSetDefinitions by loading the implementations from the + * MessageSetDefinitions.properties file. + */ public MessageSetDefinitions() { *************** *** 36,40 **** } } ! public static MessageSetDefinitions getDefinitions() { --- 51,58 ---- } } ! ! /** ! * Gets the reference to MessageSetDefinitions. ! */ public static MessageSetDefinitions getDefinitions() { *************** *** 42,45 **** --- 60,71 ---- } + /** + * Retruns the message set implementation calss name for the given + * message set name. + * + * @param messageSetName Name of the message set. + * + * @return Returns the implementation class name. + */ public String getMessageSetImpl(String messageSetName) { *************** *** 47,54 **** } public String getMessageSetImpl(MessageSetType messageSetType) { return (String)this.messageSetMap.get(messageSetType.toString()); } - } --- 73,87 ---- } + /** + * Retruns the message set implementation calss name for the given + * message set name. + * + * @param messageSetType Defined message set type. + * + * @return Returns the implementation class name. + */ public String getMessageSetImpl(MessageSetType messageSetType) { return (String)this.messageSetMap.get(messageSetType.toString()); } } Index: SignOnMsgsRsV2.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/SignOnMsgsRsV2.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SignOnMsgsRsV2.java 18 Oct 2006 03:19:17 -0000 1.1.1.1 --- SignOnMsgsRsV2.java 18 Oct 2006 23:05:02 -0000 1.2 *************** *** 14,23 **** /** * ! * @author Suresh Pragada */ public interface SignOnMsgsRsV2 extends MessageSet { SignOnMsgRsV2 getSignOnMsgRsV2(); void addSignOnMsgRsV2(SignOnMsgRsV2 signOnMsgRsV2); } --- 14,36 ---- /** + * <p> + * SignOnMsgsRsV2 defines the methods to read and write the messages of + * signon V2 response message set. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public interface SignOnMsgsRsV2 extends MessageSet { + /** + * Gets the next signon V2 response message from the stream. + */ SignOnMsgRsV2 getSignOnMsgRsV2(); + + /** + * Writes the next signon V2 response message to the stream. + */ void addSignOnMsgRsV2(SignOnMsgRsV2 signOnMsgRsV2); } --- NEW FILE: SignUpMsgsRsV1.java --- /* * SignUpMsgsRsV1.java * * Created on October 11, 2006, 9:39 AM * * To change this template, choose Tools | Options and locate the template under * the Source Creation and Management node. Right-click the template and choose * Open. You can then make changes to the template in the Source Editor. */ package org.jmonks.batch.io.ofx.messageset; import org.jmonks.batch.io.ofx.messageset.aggregates.signup.SignUpMsgRsV1; /** * <p> * SignUpMsgsRsV1 defines the methods to read and write the messages of * signup V1 response message set. * </p> * * @author Suresh Pragada * @version 1.1 * @since 1.1 */ public interface SignUpMsgsRsV1 extends MessageSet { /** * Gets the next singup V1 response message from the stream. */ SignUpMsgRsV1 getSignUpMsgRsV1(); /** * Writes the signup V1 response message to the stream. */ void addSignUpMsgRsV1(SignUpMsgRsV1 signUpMsgRsV1); } --- SignUpMsgsRqV2.java DELETED --- Index: MessageSetDefinitions.properties =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/MessageSetDefinitions.properties,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** MessageSetDefinitions.properties 18 Oct 2006 03:19:16 -0000 1.1.1.1 --- MessageSetDefinitions.properties 18 Oct 2006 23:05:01 -0000 1.2 *************** *** 5,7 **** SIGNONMSGSRSV2=org.jmonks.batch.io.ofx.messageset.impl.SignOnMsgsRsV2Impl SIGNUPMSGSRQV1=org.jmonks.batch.io.ofx.messageset.impl.SignUpMsgsRqV1Impl ! SIGNUPMSGSRQV2=org.jmonks.batch.io.ofx.messageset.impl.SignUpMsgsRqV2Impl \ No newline at end of file --- 5,7 ---- SIGNONMSGSRSV2=org.jmonks.batch.io.ofx.messageset.impl.SignOnMsgsRsV2Impl SIGNUPMSGSRQV1=org.jmonks.batch.io.ofx.messageset.impl.SignUpMsgsRqV1Impl ! SIGNUPMSGSRSV1=org.jmonks.batch.io.ofx.messageset.impl.SignUpMsgsRsV1Impl \ No newline at end of file Index: SignOnMsgsRqV1.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset/SignOnMsgsRqV1.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** SignOnMsgsRqV1.java 18 Oct 2006 03:19:16 -0000 1.1.1.1 --- SignOnMsgsRqV1.java 18 Oct 2006 23:05:01 -0000 1.2 *************** *** 16,25 **** /** * ! * @author Suresh Pragada */ public interface SignOnMsgsRqV1 extends MessageSet { SignOnMsgRqV1 getSignOnMsgRqV1(); void addSignOnMsgRqV1(SignOnMsgRqV1 signOnMsgRqV1); } --- 16,38 ---- /** + * <p> + * SignOnMsgsRqV1 defines the methods to read and write the messages of + * signon V1 request message set. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public interface SignOnMsgsRqV1 extends MessageSet { + /** + * Gets the next signon V1 request message from the stream. + */ SignOnMsgRqV1 getSignOnMsgRqV1(); + + /** + * Writes the signon V1 request message to the stream. + */ void addSignOnMsgRqV1(SignOnMsgRqV1 signOnMsgRqV1); } |
From: Suresh <sur...@us...> - 2006-10-18 23:04:37
|
Update of /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/parser/impl In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv5865 Modified Files: CharactersImpl.java CharReader.java EndDocumentImpl.java EndElementImpl.java OFXSGMLParser.java StartDocumentImpl.java StartElementImpl.java Log Message: no message Index: EndDocumentImpl.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/parser/impl/EndDocumentImpl.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** EndDocumentImpl.java 18 Oct 2006 03:19:19 -0000 1.1.1.1 --- EndDocumentImpl.java 18 Oct 2006 23:04:34 -0000 1.2 *************** *** 15,27 **** /** * ! * @author Suresh Pragada */ public class EndDocumentImpl implements EndDocument { protected String endTagName=null; /** ! * Creates a new instance of EndDocumentImpl */ public EndDocumentImpl(String endTagName) --- 15,36 ---- /** + * <p> + * EndDocumentImpl provides the implementation for the EndDocument OFXEvent. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class EndDocumentImpl implements EndDocument { + /** + * Holds the end tag name. + */ protected String endTagName=null; + /** ! * Initializes the end tag name. */ public EndDocumentImpl(String endTagName) *************** *** 30,33 **** --- 39,45 ---- } + /** + * Returns the END DOCUMENT event type. + */ public int getEventType() { *************** *** 35,38 **** --- 47,53 ---- } + /** + * Returns the name of the end document. + */ public String getEventValue() { Index: StartElementImpl.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/parser/impl/StartElementImpl.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** StartElementImpl.java 18 Oct 2006 03:19:19 -0000 1.1.1.1 --- StartElementImpl.java 18 Oct 2006 23:04:34 -0000 1.2 *************** *** 16,27 **** /** * ! * @author Suresh Pragada */ public class StartElementImpl implements StartElement { protected String startTagName=null; /** ! * Creates a new instance of StartElementImpl */ public StartElementImpl(String startTagName) --- 16,33 ---- /** + * <p> + * StartElementImpl provides the implementation for the StartElement OFXEvent. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class StartElementImpl implements StartElement { protected String startTagName=null; + /** ! * Initializes the StartElementImpl */ public StartElementImpl(String startTagName) Index: EndElementImpl.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/parser/impl/EndElementImpl.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** EndElementImpl.java 18 Oct 2006 03:19:19 -0000 1.1.1.1 --- EndElementImpl.java 18 Oct 2006 23:04:34 -0000 1.2 *************** *** 15,25 **** /** * ! * @author Suresh Pragada */ public class EndElementImpl implements EndElement { protected String endTagName=null; ! /** Creates a new instance of EndElementImpl */ public EndElementImpl(String endTagName) { --- 15,32 ---- /** + * <p> + * EndElementImpl provides the implementation for the EndElement OFXEvent. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class EndElementImpl implements EndElement { protected String endTagName=null; ! /** ! * Initalizes the EndElementImpl ! */ public EndElementImpl(String endTagName) { Index: CharactersImpl.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/parser/impl/CharactersImpl.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** CharactersImpl.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- CharactersImpl.java 18 Oct 2006 23:04:34 -0000 1.2 *************** *** 15,20 **** /** * ! * @author Suresh Pragada */ public class CharactersImpl implements Characters --- 15,25 ---- /** + * <p> + * CharactersImpl provides the implementation for the Characters OFXEvent. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class CharactersImpl implements Characters *************** *** 23,27 **** private boolean isCdata=false; private boolean isWhiteSpace=true; ! /** Creates a new instance of CharactersImpl */ public CharactersImpl(boolean isCdata) { --- 28,34 ---- private boolean isCdata=false; private boolean isWhiteSpace=true; ! /** ! * Creates a new instance of CharactersImpl ! */ public CharactersImpl(boolean isCdata) { *************** *** 30,33 **** --- 37,43 ---- } + /** + * @see org.jmonks.batch.io.ofx.parser.Characters#getEventType + */ public int getEventType() { *************** *** 35,38 **** --- 45,51 ---- } + /** + * Returns the character data by escaping all the special characters. + */ public String getEventValue() { *************** *** 47,50 **** --- 60,66 ---- } + /** + * Tells whether this data is whitespace or not. + */ public boolean isWhiteSpace() { *************** *** 52,60 **** } public boolean isCDATA() { return this.isCdata; } ! public void addChar(char ch) { --- 68,82 ---- } + /** + * @see org.jmonks.batch.io.ofx.parser.Characters#getCDATA() + */ public boolean isCDATA() { return this.isCdata; } ! ! /** ! * Adds the given character to the buffer. ! */ public void addChar(char ch) { *************** *** 75,78 **** --- 97,103 ---- } + /** + * @see org.jmonks.batch.io.ofx.parser.Characters#getCDATA() + */ public String getCDATA() { Index: StartDocumentImpl.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/parser/impl/StartDocumentImpl.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** StartDocumentImpl.java 18 Oct 2006 03:19:19 -0000 1.1.1.1 --- StartDocumentImpl.java 18 Oct 2006 23:04:34 -0000 1.2 *************** *** 15,26 **** /** * ! * @author Suresh Pragada */ public class StartDocumentImpl implements StartDocument { protected String startTagName=null; /** ! * Creates a new instance of StartDocumentImpl */ public StartDocumentImpl(String startTagName) --- 15,35 ---- /** + * <p> + * StartDocumentImpl provides the implementation for the StartDocument OFXEvent. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class StartDocumentImpl implements StartDocument { + /** + * Holds the tag name. + */ protected String startTagName=null; + /** ! * Initializes with the tag name. */ public StartDocumentImpl(String startTagName) *************** *** 29,32 **** --- 38,44 ---- } + /** + * Returns the Start Document Event Type. + */ public int getEventType() { *************** *** 34,37 **** --- 46,52 ---- } + /** + * Returns the name of the start document. + */ public String getEventValue() { Index: CharReader.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/parser/impl/CharReader.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** CharReader.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- CharReader.java 18 Oct 2006 23:04:34 -0000 1.2 *************** *** 17,22 **** /** * ! * @author Suresh Pragada */ class CharReader --- 17,28 ---- /** + * <p> + * CharReader is a wrapper to the given reader. It provides the characters on + * needed basis. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ class CharReader *************** *** 27,31 **** private int currentPosition=0; private int dataLength=-1; ! CharReader(Reader reader) { --- 33,40 ---- private int currentPosition=0; private int dataLength=-1; ! ! /** ! * Constructs the CharReader. ! */ CharReader(Reader reader) { *************** *** 34,37 **** --- 43,49 ---- } + /** + * Reads the data to the buffer. + */ private void readData() { *************** *** 47,51 **** } } ! boolean isEmpty() { --- 59,66 ---- } } ! ! /** ! * Returns true if there are no more characters in the reader, false otherwise. ! */ boolean isEmpty() { *************** *** 53,56 **** --- 68,74 ---- } + /** + * Gets the line number of the current character. + */ int getLineNumber() { *************** *** 58,61 **** --- 76,82 ---- } + /** + * Returns the character that is going to serve in the next call to the getChar. + */ char seekChar() { *************** *** 67,72 **** /** ! * Assumes callers always checks the availability of chars using either ! * isEmpty or seekChar. */ char getChar() --- 88,93 ---- /** ! * Gets the next available char. Caller should check using isEmpty before attempting ! * to read the next character. */ char getChar() Index: OFXSGMLParser.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/parser/impl/OFXSGMLParser.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** OFXSGMLParser.java 18 Oct 2006 03:19:19 -0000 1.1.1.1 --- OFXSGMLParser.java 18 Oct 2006 23:04:34 -0000 1.2 *************** *** 16,28 **** /** * ! * @author Suresh Pragada */ public class OFXSGMLParser implements OFXParser { public static final String OFX_DOCUMENT_ELEMENT="OFX"; private OFXEvent prevStartElement=null; ! private CharReader reader=null; public OFXSGMLParser(Reader reader) { --- 16,46 ---- /** + * <p> + * OFXSGMLParser reads the stream in the form of SMGL and XML and returns the + * appropriate events. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class OFXSGMLParser implements OFXParser { + /** + * Represents the element name for the OFX. + */ public static final String OFX_DOCUMENT_ELEMENT="OFX"; + /** + * Tells whether previous event is start element or not. + */ private OFXEvent prevStartElement=null; ! /** ! * Holds the reference of the CharReader. ! */ ! protected CharReader reader=null; + /** + * Constructs the parser with the given reader. + */ public OFXSGMLParser(Reader reader) { *************** *** 94,97 **** --- 112,118 ---- } + /** + * Reads the tag name. + */ private String readTagName() { *************** *** 115,119 **** return tagName.toString(); } ! private void readCharaters(CharactersImpl chars) { --- 136,143 ---- return tagName.toString(); } ! ! /** ! * Reads the characters. ! */ private void readCharaters(CharactersImpl chars) { *************** *** 136,139 **** --- 160,166 ---- } + /** + * Reads the CDATA section. + */ private void readCDATA(CharactersImpl cdata) { |
From: Suresh <sur...@us...> - 2006-10-18 23:04:25
|
Update of /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/parser In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv5841 Modified Files: Characters.java EndDocument.java EndElement.java OFXEvent.java OFXParser.java OFXParserFactory.java OFXStreamException.java StartDocument.java StartElement.java Log Message: no message Index: EndDocument.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/parser/EndDocument.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** EndDocument.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- EndDocument.java 18 Oct 2006 23:04:23 -0000 1.2 *************** *** 12,17 **** /** * ! * @author Suresh Pragada */ public interface EndDocument extends OFXEvent --- 12,22 ---- /** + * <p> + * EndDocument represents the </OFX> element in the stream. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public interface EndDocument extends OFXEvent Index: StartElement.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/parser/StartElement.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** StartElement.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- StartElement.java 18 Oct 2006 23:04:23 -0000 1.2 *************** *** 12,17 **** /** * ! * @author Suresh Pragada */ public interface StartElement extends OFXEvent --- 12,22 ---- /** + * <p> + * StartElement represents any start element in the stream except <OFX> + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public interface StartElement extends OFXEvent Index: StartDocument.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/parser/StartDocument.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** StartDocument.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- StartDocument.java 18 Oct 2006 23:04:23 -0000 1.2 *************** *** 12,20 **** /** * ! * @author Suresh Pragada */ public interface StartDocument extends OFXEvent { - } --- 12,24 ---- /** + * <p> + * StartDocument represents the <OFX> element in the stream. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public interface StartDocument extends OFXEvent { } Index: OFXEvent.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/parser/OFXEvent.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** OFXEvent.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- OFXEvent.java 18 Oct 2006 23:04:23 -0000 1.2 *************** *** 12,28 **** /** * ! * @author Suresh Pragada */ public interface OFXEvent { int START_DOCUMENT = 1; int START_ELEMENT = 2; int CHARACTERS = 3; int END_ELEMENT = 4; int END_DOCUMENT = 5; int getEventType(); String getEventValue(); --- 12,56 ---- /** + * <p> + * OFXEvent represents the piece of information that OFXParser intended to return + * to the caller. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public interface OFXEvent { + /** + * Represents the StartDocument + */ int START_DOCUMENT = 1; + /** + * Represents the StartElement + */ int START_ELEMENT = 2; + /** + * Represents the Characters + */ int CHARACTERS = 3; + /** + * Represents the EndElement + */ int END_ELEMENT = 4; + /** + * Represents the EndDocument + */ int END_DOCUMENT = 5; + /** + * Tells the type of event. + */ int getEventType(); + /** + * Gets the event value. It is element name in case of StartElement, StartDocument + * , EndDocument and EndElement. + */ String getEventValue(); Index: OFXStreamException.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/parser/OFXStreamException.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** OFXStreamException.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- OFXStreamException.java 18 Oct 2006 23:04:23 -0000 1.2 *************** *** 12,17 **** /** * ! * @author Suresh Pragada */ public class OFXStreamException extends RuntimeException --- 12,23 ---- /** + * <p> + * To report the problems while reading and writing of OFXEvent from and + * to the OFX Stream. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class OFXStreamException extends RuntimeException Index: EndElement.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/parser/EndElement.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** EndElement.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- EndElement.java 18 Oct 2006 23:04:23 -0000 1.2 *************** *** 12,17 **** /** * ! * @author Suresh Pragada */ public interface EndElement extends OFXEvent --- 12,22 ---- /** + * <p> + * EndElement represents any end element in the stream except </OFX> + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public interface EndElement extends OFXEvent Index: OFXParserFactory.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/parser/OFXParserFactory.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** OFXParserFactory.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- OFXParserFactory.java 18 Oct 2006 23:04:23 -0000 1.2 *************** *** 19,29 **** /** ! * In case if we have different parser for XML block. ! * @author Suresh Pragada */ public abstract class OFXParserFactory { public static final int SGML_OFX_BLOCK = 1; public static final int XML_OFX_BLOCK = 2; public static OFXParser createOFXParser(Reader reader, int ofxBlockType) { --- 19,52 ---- /** ! * <p> ! * OFXParserFactory creates appropriate OFX Parser using the given reader ! * based OFX block type requested. ! * </p> ! * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public abstract class OFXParserFactory { + /** + * Represents the SMGL OFX Block. + */ public static final int SGML_OFX_BLOCK = 1; + /** + * Represents the XML OFX Block. + */ public static final int XML_OFX_BLOCK = 2; + + /** + * Creates the appropriate OFX Parser for the requested OFX Block type. + * + * @param reader Reader to the OFX File / data. + * @param ofxBlockType Type of the OFX Block defined in the factory. + * + * @return Returns the OFXParser instance. + * + * @throws java.lang.IllegalArgumentException If given reader is null or ofx block type is not supported. + */ public static OFXParser createOFXParser(Reader reader, int ofxBlockType) { *************** *** 42,49 **** } public static OFXParser createOFXParser(InputStream stream, int ofxBlockType) { if(stream==null) ! throw new IllegalArgumentException("Reader to parse OFX cannot be null."); OFXParser parser=createOFXParser(new BufferedReader(new InputStreamReader(stream)), ofxBlockType); return parser; --- 65,82 ---- } + /** + * Creates the appropriate OFX Parser for the requested OFX Block type. + * + * @param reader Input Stream to the OFX File / data. + * @param ofxBlockType Type of the OFX Block defined in the factory. + * + * @return Returns the OFXParser instance. + * + * @throws java.lang.IllegalArgumentException If given stream is null or ofx block type is not supported. + */ public static OFXParser createOFXParser(InputStream stream, int ofxBlockType) { if(stream==null) ! throw new IllegalArgumentException("Stream to parse OFX cannot be null."); OFXParser parser=createOFXParser(new BufferedReader(new InputStreamReader(stream)), ofxBlockType); return parser; Index: OFXParser.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/parser/OFXParser.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** OFXParser.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- OFXParser.java 18 Oct 2006 23:04:23 -0000 1.2 *************** *** 12,20 **** /** * ! * @author Suresh Pragada */ public interface OFXParser { ! OFXEvent getNextEvent() throws OFXStreamException; } --- 12,33 ---- /** + * <p> + * OFXParser reads the OFX Stream and returns the elements and their values + * as OFX Events. It it intended to read only OFX Data block and not with the headers. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public interface OFXParser { ! /** ! * Gets the next OFXEvent from the stream. ! * ! * @return Returns OFXEvent avilable in the stream, null if none is available. ! * ! * @throws OFXStreamException If there is any problem reading the events from the stream. ! */ ! OFXEvent getNextEvent(); } Index: Characters.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/parser/Characters.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** Characters.java 18 Oct 2006 03:19:18 -0000 1.1.1.1 --- Characters.java 18 Oct 2006 23:04:23 -0000 1.2 *************** *** 12,22 **** /** * ! * @author Suresh Pragada */ public interface Characters extends OFXEvent { boolean isCDATA(); String getCDATA(); } --- 12,35 ---- /** + * <p> + * Characters represents all the element values and CDATA sections. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public interface Characters extends OFXEvent { + /** + * Tells whether Charcater instance is CDATA or not. + * + * @return Returns true if the instance is CDATA section, false otherwise. + */ boolean isCDATA(); + /** + * Returns the character content wrapping with the <!CDATA[[]]> + */ String getCDATA(); } |
Update of /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv5459 Modified Files: OFXFileReader.java OFXFileSpec.java OFXFileWriter.java OFXHeaderRecord.java OFXVersion.java Added Files: package.html Log Message: no message Index: OFXFileReader.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/OFXFileReader.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** OFXFileReader.java 18 Oct 2006 03:19:16 -0000 1.1.1.1 --- OFXFileReader.java 18 Oct 2006 23:04:01 -0000 1.2 *************** *** 34,41 **** /** * <p> ! * OFXFileReader reads the file in the OFX format and returns ! * the message sets as objects. It supports the new set of ! * methods to return the message sets and doesnt support the ! * <i>getNextRecord</i> method from FileReader. * </p> * --- 34,47 ---- /** * <p> ! * OFXFileReader reads the specified OFX file using the given file spec ! * and returns the records on the needed basis. ! * It reads the message sets and messages lazily to support reading ! * of the large files. It doesnt support the <i>getNextRecord</i> method ! * inherited from the FileReader and supports a new method <i>getNextMessageSet</i> to ! * read the message sets on needed basis. It guesses the OFXVersion from the given ! * file stream and ofx headers. So, OFXFileSpec doesnt need version to read the files. ! * To find out how to read ! * each record from the file and to read the each field from the record, refer to the ! * package javadoc. * </p> * *************** *** 53,61 **** * Holds the reference of the file. */ ! protected BufferedReader reader=null; /** * Holds the OFXHeaderRecord. */ ! protected OFXHeaderRecord headerRecord=null; /** * Holds the OFXParser refernece. --- 59,67 ---- * Holds the reference of the file. */ ! private BufferedReader reader=null; /** * Holds the OFXHeaderRecord. */ ! private OFXHeaderRecord headerRecord=null; /** * Holds the OFXParser refernece. *************** *** 104,107 **** --- 110,114 ---- this.reader=new BufferedReader(reader); OFXVersion version=this.guessAndCreateOFXHeaderRecord(); + logger.debug("Successuflly read the header record and the version guessed = " + version.toString()); try { *************** *** 115,132 **** OFXEvent event=null; while((event=parser.getNextEvent())!=null) - { if(event.getEventType()==OFXEvent.START_DOCUMENT) break; ! } } catch(OFXStreamException exception) { exception.printStackTrace(); ! logger.fatal("OFXParseException while trying to create the OFXParser. Message = " + exception.getMessage(), exception); throw new OFXStreamException("Unable to create the OFXParser. Message = " + exception.getMessage()); } logger.trace("Exiting OFXFileReader constructor"); } ! public OFXHeaderRecord getOFXHeaderRecord() { --- 122,144 ---- OFXEvent event=null; while((event=parser.getNextEvent())!=null) if(event.getEventType()==OFXEvent.START_DOCUMENT) break; ! logger.debug("Reader initialization has been done."); } catch(OFXStreamException exception) { exception.printStackTrace(); ! logger.fatal("OFXStreamException while trying to create the OFXParser. Message = " + exception.getMessage(), exception); throw new OFXStreamException("Unable to create the OFXParser. Message = " + exception.getMessage()); } logger.trace("Exiting OFXFileReader constructor"); } ! ! /** ! * Returns the OFX Headers as OFXHeaderRecord. This header record is constructed ! * at the time of initialization and can be called at any time. ! * ! * @return Returns the OFXHeaderRecord. ! */ public OFXHeaderRecord getOFXHeaderRecord() { *************** *** 134,144 **** } public ReaderRecord getNextRecord() { ! throw new UnsupportedOperationException("OFXFileReader not supports getNextRecord method. Use getNextMessageSet method."); } public void close() { if(this.reader!=null) { --- 146,170 ---- } + /** + * OFXFileReader does not support this method and provide an alternative + * <i>getNextMessageSet</i> method to read the message sets. + * + * @throws java.lang.UnsupportedOperationException If this method is called to + * read the message sets. + */ public ReaderRecord getNextRecord() { ! throw new UnsupportedOperationException("OFXFileReader does not supports " + ! "getNextRecord method. Use getNextMessageSet method."); } + /** + * Closes the OFXFileReader. Any attempt to read the message sets on the reader + * after calling this method yeilds null. Any attempt to read + * read the messages from the message sets yields null. + */ public void close() { + logger.trace("Entering OFXFileReader close"); if(this.reader!=null) { *************** *** 146,149 **** --- 172,176 ---- { this.reader.close(); + logger.debug("OFXFileReader has been closed."); } catch(IOException exception) *************** *** 156,161 **** --- 183,192 ---- } } + logger.trace("Exiting OFXFileReader close"); } + /** + * Gets the version of the stream this reader is reading. + */ public OFXVersion getOFXVersion() { *************** *** 163,168 **** --- 194,211 ---- } + /** + * Gets the next message set available from the stream. If reader is closed + * or no more message sets available, it return null. Once message set is obtained + * all the message to be retrieved, before calling this method for the next + * message sets. If fail to read all the messages, it skips all the messages + * in the previous message set. + * + * @return Returns the next message set available. Null, if none is available or reader is closed. + * + * @throws OFXStreamException If any problem while reading the next message set. + */ public MessageSet getNextMessageSet() { + logger.trace("Entering getNextMessageSet"); if(this.reader!=null) { *************** *** 185,189 **** this.currentMessageSet=(MessageSet)messageSet; ((MessageSetReader)messageSet).initializeReader(this.currentMessageSet.getMessageSetType(), this.parser); - return this.currentMessageSet; } catch(Exception exception) --- 228,231 ---- *************** *** 208,213 **** else { this.close(); - return null; } } --- 250,256 ---- else { + logger.debug("Reader encountered the end of document event. Closing the reader."); + this.currentMessageSet=null; this.close(); } } *************** *** 215,230 **** { exception.printStackTrace(); ! logger.fatal("OFXParseException while trying to read the next message set. Message = " + exception.getMessage(), exception); throw new OFXStreamException("Unable to read the next message set. Message = " + exception.getMessage()); } } else ! return null; } private OFXVersion guessAndCreateOFXHeaderRecord() { OFXVersion version=OFXVersion.OFX_1_6; ! while(true) { --- 258,285 ---- { exception.printStackTrace(); ! logger.fatal("OFXStreamException while trying to read the next message set. Message = " + exception.getMessage(), exception); throw new OFXStreamException("Unable to read the next message set. Message = " + exception.getMessage()); } } else ! this.currentMessageSet=null; ! ! logger.trace("Entering getNextMessageSet"); ! return this.currentMessageSet; } + /** + * Guesses the version of the ofx stream and creates the ofx header record. + * + * @return Returns the version of the ofx stream. + */ private OFXVersion guessAndCreateOFXHeaderRecord() { + logger.trace("Entering guessAndCreateOFXHeaderRecord"); OFXVersion version=OFXVersion.OFX_1_6; ! /** ! * Keep on reading the stream until receive the non space character. Check ! * the non space chacter for the ofx block type. ! */ while(true) { *************** *** 269,280 **** } } return version; } private OFXVersion createXMLOFXHeaderRecord() { try { - OFXVersion version=OFXVersion.OFX_2_0_2; this.headerRecord=new OFXHeaderRecord(); boolean endOfHeaders=false; --- 324,340 ---- } } + logger.trace("Entering guessAndCreateOFXHeaderRecord"); return version; } + /** + * Creates the OFXHeaderRecord from the OFX Headers in the form of XML. + */ private OFXVersion createXMLOFXHeaderRecord() { + logger.trace("Entering createXMLOFXHeaderRecord"); + OFXVersion version=OFXVersion.OFX_2_0_2; try { this.headerRecord=new OFXHeaderRecord(); boolean endOfHeaders=false; *************** *** 327,331 **** } - return version; } catch(IOException exception) --- 387,390 ---- *************** *** 335,345 **** throw new OFXStreamException(exception.getMessage()); } } ! private OFXVersion createSGMLOFXHeaderRecord() { try { - OFXVersion version=OFXVersion.OFX_1_6; this.headerRecord=new OFXHeaderRecord(); boolean endOfHeaders=false; --- 394,410 ---- throw new OFXStreamException(exception.getMessage()); } + logger.trace("Exiting createXMLOFXHeaderRecord"); + return version; } ! ! /** ! * Creates the OFXHeaderRecord from the OFX Headers in the form of SGML. ! */ private OFXVersion createSGMLOFXHeaderRecord() { + logger.trace("Entering createSGMLOFXHeaderRecord"); + OFXVersion version=OFXVersion.OFX_1_6; try { this.headerRecord=new OFXHeaderRecord(); boolean endOfHeaders=false; *************** *** 381,385 **** endOfHeaders=true; } - return version; } catch(IOException exception) --- 446,449 ---- *************** *** 389,392 **** --- 453,458 ---- throw new OFXStreamException(exception.getMessage()); } + logger.trace("Exiting createSGMLOFXHeaderRecord"); + return version; } Index: OFXVersion.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/OFXVersion.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** OFXVersion.java 18 Oct 2006 03:19:16 -0000 1.1.1.1 --- OFXVersion.java 18 Oct 2006 23:04:01 -0000 1.2 *************** *** 12,27 **** /** * ! * @author Suresh Pragada */ public class OFXVersion { ! String versionId=null; ! /** Creates a new instance of OFXVersion */ private OFXVersion(String versionId) { this.versionId=versionId; } ! public static OFXVersion createOFXVersion(String versionId) { --- 12,46 ---- /** + * <p> + * OFXVersion is an enum class provides the OFX Version list. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class OFXVersion { ! /** ! * Holds the version ID. ! */ ! private String versionId=null; ! ! /** ! * Creates a new instance of OFXVersion ! */ private OFXVersion(String versionId) { this.versionId=versionId; } ! ! /** ! * Returns the matching OFXVersion reference to the input value. If doesnt ! * matches with any existing versions, it returns null. ! * ! * @param versionId Version id to be matched. ! * ! * @return Returns OFXVersion reference, null, if none is matched with the given value. ! */ public static OFXVersion createOFXVersion(String versionId) { *************** *** 38,41 **** --- 57,63 ---- } + /** + * Returns the versionId. + */ public String toString() { *************** *** 43,49 **** --- 65,83 ---- } + /** + * Represents the OFX version 1.0.2 and the value in the file spec should be "102". + */ public static final OFXVersion OFX_1_0_2 = new OFXVersion("102"); + /** + * Represents the OFX version 1.5.1 and the value in the file spec should be "151". + */ public static final OFXVersion OFX_1_5_1 = new OFXVersion("151"); + /** + * Represents the OFX version 1.6 and the value in the file spec should be "16". + */ public static final OFXVersion OFX_1_6 = new OFXVersion("16"); + /** + * Represents the OFX version 2.0.2 and the value in the file spec should be "202". + */ public static final OFXVersion OFX_2_0_2 = new OFXVersion("202"); } Index: OFXFileSpec.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/OFXFileSpec.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** OFXFileSpec.java 18 Oct 2006 03:19:16 -0000 1.1.1.1 --- OFXFileSpec.java 18 Oct 2006 23:04:01 -0000 1.2 *************** *** 19,25 **** /** * <p> ! * OFXFileSpec provides the details about the OFX version number. It doesnt ! * any record specs, since the OFX file formats are predefined in the format ! * of specification. * </p> * --- 19,38 ---- /** * <p> ! * OFXFileSpec represents the file spec defines the OFX file. ! * Since the format of the OFX files are defined in the form of ! * a specification, this file spec doesnt require any record specs. ! * It follows the defined specification to read the message sets and ! * messages. The file-type attribute should be "ofx" and it requires one ! * more additional attribute "version" to identify the version of the file. ! * The values here should be one of the valid versions from ! * {@link org.jmonks.batch.io.ofx.OFXVersion} class. ! * class. ! * ! * </p> ! * <p> ! * <pre> ! * <file-spec file-type="ofx" version="151"> ! * </file-spec> ! * </pre> * </p> * *************** *** 30,39 **** public class OFXFileSpec extends FileSpec { public static final String VERSION_ATTRIB_NAME = "version"; ! protected String version=null; private static Logger logger=Logger.getLogger(OFXFileSpec.class); ! protected OFXFileSpec() { --- 43,60 ---- public class OFXFileSpec extends FileSpec { + /** + * Constant defines the version attribute name. + */ public static final String VERSION_ATTRIB_NAME = "version"; ! /** ! * Holds the given version identifier. ! */ protected String version=null; private static Logger logger=Logger.getLogger(OFXFileSpec.class); ! ! /** ! * Constructs the OFXFileSpec instance. ! */ protected OFXFileSpec() { *************** *** 41,44 **** --- 62,68 ---- } + /** + * Gets the defined version in the file spec. + */ public String getVersion() { *************** *** 46,51 **** --- 70,84 ---- } + /** + * Factory method to create the ofx file spec object from the given + * DOM Element representing the file-spec element. + * + * @param fileSpecElement DOM Element representing the file-spec element. + * + * @return Returns the instance of OFXFileSpec. + */ public static FileSpec createOFXFileSpec(final Element fileSpecElement) { + logger.trace("Entering createOFXFileSpec"); OFXFileSpec fileSpec=new OFXFileSpec(); *************** *** 55,60 **** else fileSpec.version=null; ! return fileSpec; } } --- 88,107 ---- else fileSpec.version=null; ! ! logger.trace("Exiting createOFXFileSpec"); return fileSpec; } + + /** + * Returns the string representation of OFXFileSpec. + */ + public String toString() + { + StringBuffer stringValue=new StringBuffer("{OFXFileSpec "); + stringValue.append("[fileType = " + super.fileType.toString() + "]"); + stringValue.append("[version = " + this.version + "]"); + stringValue.append("}"); + return stringValue.toString(); + } + } --- NEW FILE: package.html --- <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>OFX Implementation Overview</title> </head> <body> OFX implementation for the IO API. <p> </p> </body> </html> Index: OFXHeaderRecord.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/OFXHeaderRecord.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** OFXHeaderRecord.java 18 Oct 2006 03:19:16 -0000 1.1.1.1 --- OFXHeaderRecord.java 18 Oct 2006 23:04:01 -0000 1.2 *************** *** 12,36 **** /** * ! * @author Suresh Pragada */ public class OFXHeaderRecord { ! private String ofxHeader=null; private String data=null; private String version=null; private String security=null; private String encoding=null; private String charSet=null; private String compression=null; private String oldFileUID=null; private String newFileUID=null; ! /** Creates a new instance of OFXHeaderRecord */ public OFXHeaderRecord() { } ! public void setOfxHeader(String ofxHeader) { --- 12,73 ---- /** + * <p> + * OFXHeaderRecord holds the OFX headers read from the OFXFileReader or + * OFX header to be written to the OFXFileWriter. + * </p> * ! * @author Suresh Pragada ! * @version 1.1 ! * @since 1.1 */ public class OFXHeaderRecord { ! /** ! * Holds the OFXHEADER header ! */ private String ofxHeader=null; + /** + * Holds the DATA header + */ private String data=null; + /** + * Holds the VERSION header + */ private String version=null; + /** + * Holds the SECURITY header + */ private String security=null; + /** + * Holds the ENCODING header + */ private String encoding=null; + /** + * Holds the CHARSET header + */ private String charSet=null; + /** + * Holds the COMPRESSION header + */ private String compression=null; + /** + * Holds the OLDFILEUID header + */ private String oldFileUID=null; + /** + * Holds the NEWFILEUID header + */ private String newFileUID=null; ! /** ! * Creates a new instance of OFXHeaderRecord ! */ public OFXHeaderRecord() { } ! ! /** ! * Sets OFXHEADER header. ! */ public void setOfxHeader(String ofxHeader) { *************** *** 38,41 **** --- 75,81 ---- } + /** + * Sets DATA header. + */ public void setData(String data) { *************** *** 43,46 **** --- 83,89 ---- } + /** + * Sets VERSION header. + */ public void setVersion(String version) { *************** *** 48,51 **** --- 91,97 ---- } + /** + * Sets SECURITY header. + */ public void setSecurity(String security) { *************** *** 53,56 **** --- 99,105 ---- } + /** + * Sets ENCODING header. + */ public void setEncoding(String encoding) { *************** *** 58,61 **** --- 107,113 ---- } + /** + * Sets CHARSET header. + */ public void setCharSet(String charSet) { *************** *** 63,66 **** --- 115,121 ---- } + /** + * Sets COMPRESSION header. + */ public void setCompression(String compression) { *************** *** 68,71 **** --- 123,129 ---- } + /** + * Sets OLDFILEUID header. + */ public void setOldFileUID(String oldFileUID) { *************** *** 73,76 **** --- 131,137 ---- } + /** + * Sets NEWFILEUID header. + */ public void setNewFileUID(String newFileUID) { *************** *** 78,86 **** } public String getOfxHeader() { return this.ofxHeader; } ! public String getData() { --- 139,153 ---- } + /** + * Gets OFXHEADER header. + */ public String getOfxHeader() { return this.ofxHeader; } ! ! /** ! * Gets DATA header. ! */ public String getData() { *************** *** 88,91 **** --- 155,161 ---- } + /** + * Gets VERSION header. + */ public String getVersion() { *************** *** 93,96 **** --- 163,169 ---- } + /** + * Gets SECURITY header. + */ public String getSecurity() { *************** *** 98,101 **** --- 171,177 ---- } + /** + * Gets ENCODING header. + */ public String getEncoding() { *************** *** 103,106 **** --- 179,185 ---- } + /** + * Gets CHARSET header. + */ public String getCharSet() { *************** *** 108,111 **** --- 187,193 ---- } + /** + * Gets COMPRESSION header. + */ public String getCompression() { *************** *** 113,116 **** --- 195,201 ---- } + /** + * Gets OLDFILEUID header. + */ public String getOldFileUID() { *************** *** 118,121 **** --- 203,209 ---- } + /** + * Gets NEWFILEUID header. + */ public String getNewFileUID() { Index: OFXFileWriter.java =================================================================== RCS file: /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx/OFXFileWriter.java,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** OFXFileWriter.java 18 Oct 2006 03:19:16 -0000 1.1.1.1 --- OFXFileWriter.java 18 Oct 2006 23:04:01 -0000 1.2 *************** *** 29,49 **** /** * ! * @author Suresh Pragada */ public class OFXFileWriter extends FileWriter { protected OFXFileSpec fileSpec=null; private OFXWriterHelper writerHelper=null; private MessageSet currentMessageSet=null; private boolean writtenHeaderRecord=false; private static Logger logger=Logger.getLogger(OFXFileWriter.class); public OFXFileWriter(OutputStream fileOutputStream,FileSpec fileSpec) { this(new OutputStreamWriter(fileOutputStream), fileSpec); } ! public OFXFileWriter(Writer writer,FileSpec fileSpec) { --- 29,88 ---- /** + * <p> + * OFXFileWriter writes the ofx file using the submmited message sets + * and following the given file spec. It looks for the version of the OFX + * data block in needs to generate from the "version" attribute in the file spec. + * It none is mentioned it uses the default "1.6" OFX version. It does not supports + * the <i>createNextRecord</i> and <i>writeRecord</i> methods inherited from + * the FileWriter. It provides a method <i>createNextMessageSet</i> to create the + * message sets that can be written to the stream. It writes the message sets and + * messages immediately to the output stream to support the writing of large files. + * OFXHeaderRecord needs to be written before creating any message sets. + * </p> * ! * @author Suresh Pragada ! * @version 1.0 ! * @since 1.0 */ public class OFXFileWriter extends FileWriter { + /** + * Holds the OFX FileSpec. + */ protected OFXFileSpec fileSpec=null; + /** + * Holds the OFX Writer helper. + */ private OFXWriterHelper writerHelper=null; + /** + * Holds the recent message set reference. + */ private MessageSet currentMessageSet=null; + /** + * Flag tells whether header has been written to the stream or not. + */ private boolean writtenHeaderRecord=false; private static Logger logger=Logger.getLogger(OFXFileWriter.class); + /** + * Constructs the OFXFileWriter by accepting the outputStream + * and file spec. + * + * @param fileOutputStream Reference to the outputstream. + * @param fileSpec Reference to the file spec. + */ public OFXFileWriter(OutputStream fileOutputStream,FileSpec fileSpec) { this(new OutputStreamWriter(fileOutputStream), fileSpec); } ! ! /** ! * Constructs the OFXFileWriter by accepting the outputStream ! * and file spec. ! * ! * @param writer Reference to the writer. ! * @param fileSpec Reference to the file spec. ! */ public OFXFileWriter(Writer writer,FileSpec fileSpec) { *************** *** 55,61 **** } ! public void writeOFXHeaderRecord(OFXHeaderRecord headerRecord) { if(this.writtenHeaderRecord) throw new IllegalStateException("OFXHeaderRecord should be written only once."); --- 94,107 ---- } ! /** ! * Writes the OFX Headers represented by OFXHeaderRecord to the stream. ! * ! * @param headerRecord OFXHeaderRecord which holds ofx headers. ! * ! * @throws IllegalStateException If header is written already. ! */ public void writeOFXHeaderRecord(OFXHeaderRecord headerRecord) { + logger.trace("Entering writeOFXHeaderRecord = " + this.writtenHeaderRecord); if(this.writtenHeaderRecord) throw new IllegalStateException("OFXHeaderRecord should be written only once."); *************** *** 65,103 **** this.writtenHeaderRecord=true; } } public MessageSet createNextMessageSet(MessageSetType messageSetType) { if(!this.writtenHeaderRecord) throw new IllegalStateException("Header record should be written before creating any message sets."); ! if(this.currentMessageSet!=null) ! ((MessageSetWriter)this.currentMessageSet).finishedWritingMessages(); ! ! String messageSetImplClassName=(String)MessageSetDefinitions.getDefinitions().getMessageSetImpl(messageSetType); ! if(messageSetImplClassName!=null) { ! try { ! Object messageSet=Class.forName(messageSetImplClassName).newInstance(); ! ((MessageSetWriter)messageSet).initializeWriter(messageSetType, this.writerHelper); ! this.currentMessageSet=(MessageSet)messageSet; ! return this.currentMessageSet; } ! catch(Exception exception) ! { ! exception.printStackTrace(); ! logger.error("Unable to instantiate the configured messageset implementation " + messageSetImplClassName + ". Message =" + exception.getMessage()); ! throw new OFXStreamException("Unable to instantiate the configured messageset implementation " + messageSetImplClassName + ". Message =" + exception.getMessage()); } } else ! { ! logger.error("Unsupported MessageSet " + messageSetType.toString() + " has been requested."); ! throw new OFXStreamException("Unsupported MessageSet " + messageSetType.toString() + " has been requested."); ! } } ! public WriterRecord createWriterRecord(RecordType recordType) { --- 111,176 ---- this.writtenHeaderRecord=true; } + logger.trace("Exiting writeOFXHeaderRecord"); } + /** + * Creates the next message set to be written to the stream. Writer immediately + * start writing the message set and messages added to the message set there after + * to the stream. + * + * @param messageSetType Type of the message set to be created. + * + * @return Returns the requested message set, null, if writer is already closed. + * + * @throws OFXStreamException If there is any problem creating the message set. + */ public MessageSet createNextMessageSet(MessageSetType messageSetType) { + logger.trace("Entering createNextMessageSet"); if(!this.writtenHeaderRecord) throw new IllegalStateException("Header record should be written before creating any message sets."); ! if(this.writerHelper!=null) { ! if(this.currentMessageSet!=null) ! ((MessageSetWriter)this.currentMessageSet).finishedWritingMessages(); ! ! String messageSetImplClassName=(String)MessageSetDefinitions.getDefinitions().getMessageSetImpl(messageSetType); ! if(messageSetImplClassName!=null) { ! try ! { ! Object messageSet=Class.forName(messageSetImplClassName).newInstance(); ! ((MessageSetWriter)messageSet).initializeWriter(messageSetType, this.writerHelper); ! this.currentMessageSet=(MessageSet)messageSet; ! } ! catch(Exception exception) ! { ! exception.printStackTrace(); ! logger.error("Unable to instantiate the configured messageset implementation " + messageSetImplClassName + ". Message =" + exception.getMessage()); ! throw new OFXStreamException("Unable to instantiate the configured messageset implementation " + messageSetImplClassName + ". Message =" + exception.getMessage()); ! } } ! else ! { ! logger.error("Unsupported MessageSet " + messageSetType.toString() + " has been requested."); ! throw new OFXStreamException("Unsupported MessageSet " + messageSetType.toString() + " has been requested."); } } else ! this.currentMessageSet=null; ! ! logger.trace("Entering createNextMessageSet"); ! return this.currentMessageSet; } ! ! /** ! * This methos is not supported by OFXFileWriter. Use <i>createNextMessageSet</i> ! * to create the message sets. ! * ! * @throws java.lang.UnsupportedOperationException Thrown if there is any attempt to ! * call this method. ! */ public WriterRecord createWriterRecord(RecordType recordType) { *************** *** 105,113 **** } public void writeRecord(WriterRecord record) { ! throw new UnsupportedOperationException("OFXFileWriter not supports writeRecord method. Messages written into the messageset will be written to the file."); } public void close() { --- 178,196 ---- } + /** + * This methos is not supported by OFXFileWriter. Messages will be immediately + * written to the stream, when they are being added to the message sets. + * + * @throws java.lang.UnsupportedOperationException Thrown if there is any attempt to + * call this method. + */ public void writeRecord(WriterRecord record) { ! throw new UnsupportedOperationException("OFXFileWriter not supports writeRecord method. Messages written into the messageset will be written to the file immediately."); } + /** + * Closes the OFXFileWriter. + */ public void close() { *************** *** 126,135 **** --- 209,234 ---- + /** + * Helper class for the OFXFileWriter to write OFX Content based on the differnt + * parameters like version and special characters. + */ public class OFXWriterHelper { + /** + * Holds the writer. + */ private BufferedWriter writer=null; + /** + * Holds the version number. + */ private OFXVersion version=null; + /** + * Tells whether this writer have to write end tags or not. + */ private boolean needEndTag=true; + /** + * Constructs the OFXWriterHelper using given writer and version. + */ private OFXWriterHelper(BufferedWriter writer, OFXVersion version) { *************** *** 140,143 **** --- 239,245 ---- } + /** + * Write the start element. It adds the angle brackets to the given element name. + */ public void writeStartElement(String elementName) { *************** *** 153,156 **** --- 255,261 ---- } + /** + * Writes the given element name and value to the stream. + */ public void writeElement(String name, String value) { *************** *** 174,178 **** } } ! public void writeEndElement(String elementName) { --- 279,287 ---- } } ! ! /** ! * Writes the end element to the stream. Before writing it escapses the special ! * characters. ! */ public void writeEndElement(String elementName) { *************** *** 188,191 **** --- 297,303 ---- } + /** + * Writes the OFXHeaderRecord to the stream. + */ private void writeOFXHeaderRecord(OFXHeaderRecord headerRecord) { *************** *** 245,248 **** --- 357,363 ---- } + /** + * Closes the writer. + */ private void close(boolean writeEndDocumentTag) { |
From: Suresh <sur...@us...> - 2006-10-18 14:52:22
|
Update of /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/ofx In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv1270 Added Files: sample-ofx-file-spec.xml Log Message: no message --- NEW FILE: sample-ofx-file-spec.xml --- <?xml version="1.0" encoding="UTF-8"?> <file-spec file-type="ofx" version="151"/> |
From: Suresh <sur...@us...> - 2006-10-18 14:51:45
|
Update of /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/xml In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv876 Added Files: sample-xml-file-spec.xml sample-xml-file.xml Log Message: no message --- NEW FILE: sample-xml-file-spec.xml --- <?xml version="1.0" encoding="UTF-8"?> <file-spec file-type="xml" root-element="sample-root" indentation-engine="org.jmonks.batch.io.xml.PrettyXMLIndentationEngine" encoding="ISO-8859-1"> <record-spec record-type="header" record-xpath="/sample-root/sample-header"/> <record-spec record-type="detail" record-xpath="/sample-root/sample-detail"/> <record-spec record-type="trailer" record-xpath="/sample-root/sample-trailer"/> </file-spec> --- NEW FILE: sample-xml-file.xml --- <?xml version='1.0' encoding='ISO-8859-1'?> <sample-root> <sample-header> <file-type>Employee Records</file-type> </sample-header> <sample-detail> <first-name>Suresh</first-name> <last-name>Pragada</last-name> <dept-info> <dept-name>IT</dept-name> <dept-location>LOC1</dept-location> </dept-info> <addresses> <address> <address-type>home</address-type> <city>Menomonee Falls</city> <zip-code>53051</zip-code> </address> <address> <address-type>office</address-type> <city>Menomonee Falls</city> <zip-code>53051</zip-code> </address> <address>Unidentified</address> </addresses> </sample-detail> <sample-trailer> <transaction-count>1</transaction-count> </sample-trailer> </sample-root> |
From: Suresh <sur...@us...> - 2006-10-18 14:51:30
|
Update of /cvsroot/batchserver/Batch_IO_1.1/src/org/jmonks/batch/io/flat In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv859 Added Files: sample-delimited-file-spec.xml sample-fixed-width-file-spec.xml Log Message: no message --- NEW FILE: sample-fixed-width-file-spec.xml --- <?xml version="1.0" encoding="UTF-8"?> <file-spec file-type="fixed-width-flat"> <record-spec record-type="header" starts-with="1" record-length="9"> <field-spec field-name="timestamp" start-pos="2" end-pos="9"/> </record-spec> <record-spec record-type="detail" starts-with="5" record-length="41"> <field-spec field-name="field1" start-pos="2" end-pos="11"/> <field-spec field-name="field2" start-pos="12" end-pos="21"/> <field-spec field-name="field3" start-pos="22" end-pos="31"/> <field-spec field-name="field4" start-pos="32" end-pos="41"/> </record-spec> <record-spec record-type="trailer" starts-with="6" record-length="9"> <field-spec field-name="recordCount" start-pos="2" end-pos="9"/> </record-spec> </file-spec> --- NEW FILE: sample-delimited-file-spec.xml --- <?xml version="1.0" encoding="UTF-8"?> <file-spec file-type="delimited-flat"> <record-spec record-type="detail" delimiter="|" field-count="4"> <field-spec field-name="field1" index="1"/> <field-spec field-name="field2" index="2"/> <field-spec field-name="field3" index="3"/> <field-spec field-name="field4" index="4"/> </record-spec> </file-spec> |
From: Suresh <sur...@us...> - 2006-09-20 12:58:39
|
Update of /cvsroot/batchserver/batchserver In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv22566 Modified Files: .cvsignore Log Message: no message Index: .cvsignore =================================================================== RCS file: /cvsroot/batchserver/batchserver/.cvsignore,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** .cvsignore 26 Jan 2006 05:17:17 -0000 1.1.1.1 --- .cvsignore 20 Sep 2006 12:58:37 -0000 1.2 *************** *** 1,5 **** docs dist - nbproject reports build \ No newline at end of file --- 1,4 ---- |
From: Suresh <sur...@us...> - 2006-09-20 12:58:18
|
Update of /cvsroot/batchserver/batchserver/nbproject/private In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv22540 Added Files: private.properties private.xml Log Message: no message --- NEW FILE: private.properties --- application.args= javac.debug=true javadoc.preview=true user.properties.file=C:\\Documents and Settings\\Suresh Pragada\\.jstudio\\Ent8\\build.properties --- NEW FILE: private.xml --- <?xml version="1.0" encoding="UTF-8"?> <project-private xmlns="http://www.netbeans.org/ns/project-private/1"> <editor-bookmarks xmlns="http://www.netbeans.org/ns/editor-bookmarks/1"/> </project-private> |
From: Suresh <sur...@us...> - 2006-09-20 12:58:03
|
Update of /cvsroot/batchserver/batchserver/nbproject In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv22150 Added Files: build-impl.xml genfiles.properties project.properties project.xml Log Message: no message --- NEW FILE: project.properties --- application.args= build.classes.dir=${build.dir}/classes build.classes.excludes=**/*.java,**/*.form # This directory is removed when the project is cleaned: build.dir=build # Only compile against the classpath explicitly listed here: build.sysclasspath=ignore build.test.classes.dir=${build.dir}/test/classes build.test.results.dir=${build.dir}/test/results debug.classpath=\ ${run.classpath} debug.test.classpath=\ ${run.test.classpath} # This directory is removed when the project is cleaned: dist.dir=dist dist.jar=${dist.dir}/batchserver.jar dist.javadoc.dir=${dist.dir}/javadoc file.reference.batchserver-conf=conf file.reference.batchserver-src=src file.reference.batchserver-test=test file.reference.concurrent_1.3.4.jar=lib/concurrent/concurrent_1.3.4.jar file.reference.db4o_5.0.jar=lib/db/db4o/db4o_5.0.jar file.reference.jmxremote_1.0.1_04.jar=lib/jmx/ri/jmxremote_1.0.1_04.jar file.reference.jmxremote_optional1.0.1_04.jar=lib/jmx/ri/jmxremote_optional1.0.1_04.jar file.reference.jmxri_1.2.1.jar=lib/jmx/ri/jmxri_1.2.1.jar file.reference.junit_1.0.jar=lib/junit/junit_1.0.jar file.reference.log4j_1.2.13.jar=lib/log4j/log4j_1.2.13.jar file.reference.mysql_jdbc_driver_3.1.13.jar=lib/jdbc/mysql/mysql_jdbc_driver_3.1.13.jar file.reference.ojdbc14.jar=lib/jdbc/oracle/ojdbc14.jar file.reference.resolver_2.7.1.jar=lib/xml/apache/resolver_2.7.1.jar file.reference.stax_api_1.0.zip=lib/stax/stax_api_1.0.zip file.reference.stax_impl_1.2.zip=lib/stax/ri/stax_impl_1.2.zip file.reference.xerces_impl_2.7.1.jar=lib/xml/apache/xerces_impl_2.7.1.jar file.reference.xml_apis.jar=lib/xml/xml_apis.jar jar.compress=false javac.classpath=\ ${file.reference.concurrent_1.3.4.jar}:\ ${file.reference.db4o_5.0.jar}:\ ${file.reference.jmxremote_1.0.1_04.jar}:\ ${file.reference.jmxremote_optional1.0.1_04.jar}:\ ${file.reference.jmxri_1.2.1.jar}:\ ${file.reference.junit_1.0.jar}:\ ${file.reference.xml_apis.jar}:\ ${file.reference.log4j_1.2.13.jar}:\ ${file.reference.resolver_2.7.1.jar}:\ ${file.reference.xerces_impl_2.7.1.jar}:\ ${file.reference.stax_api_1.0.zip}:\ ${file.reference.stax_impl_1.2.zip}:\ ${file.reference.mysql_jdbc_driver_3.1.13.jar}:\ ${file.reference.ojdbc14.jar}:\ ${file.reference.batchserver-conf} # Space-separated list of extra javac options javac.compilerargs= javac.deprecation=false javac.source=1.4 javac.target=1.4 javac.test.classpath=\ ${javac.classpath}:\ ${build.classes.dir}:\ ${libs.junit.classpath} javadoc.additionalparam= javadoc.author=true javadoc.encoding= javadoc.noindex=false javadoc.nonavbar=false javadoc.notree=false javadoc.private=true javadoc.splitindex=true javadoc.use=true javadoc.version=true javadoc.windowtitle= main.class= manifest.file=manifest.mf platform.active=Java_HotSpot_TM__Client_VM_1.4.2_08-b03 run.classpath=\ ${javac.classpath}:\ ${build.classes.dir} # Space-separated list of JVM arguments used when running the project # (you may also define separate properties like run-sys-prop.name=value instead of -Dname=value # or test-sys-prop.name=value to set system properties for unit tests): run.jvmargs= run.test.classpath=\ ${javac.test.classpath}:\ ${build.test.classes.dir} src.dir=${file.reference.batchserver-src} test.test.dir=${file.reference.batchserver-test} --- NEW FILE: genfiles.properties --- build.xml.data.CRC32=51f48ede build.xml.script.CRC32=71f32c39 build.xml.stylesheet.CRC32=e2435cb5 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. nbproject/build-impl.xml.data.CRC32=51f48ede nbproject/build-impl.xml.script.CRC32=9efff7d9 nbproject/build-impl.xml.stylesheet.CRC32=3b89b5a6 --- NEW FILE: build-impl.xml --- <?xml version="1.0" encoding="UTF-8"?> <!-- *** GENERATED FROM project.xml - DO NOT EDIT *** *** EDIT ../build.xml INSTEAD *** For the purpose of easier reading the script is divided into following sections: - initialization - compilation - jar - execution - debugging - javadoc - junit compilation - junit execution - junit debugging - applet - cleanup --> <project name="batchserver-impl" default="default" basedir=".." xmlns:j2seproject2="http://www.netbeans.org/ns/j2se-project/2" xmlns:j2seproject1="http://www.netbeans.org/ns/j2se-project/1"> <target name="default" depends="test,jar,javadoc" description="Build and test whole project."/> <!-- ====================== INITIALIZATION SECTION ====================== --> <target name="-pre-init"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> <target name="-init-private" depends="-pre-init"> <property file="nbproject/private/private.properties"/> </target> <target name="-init-user" depends="-pre-init,-init-private"> <property file="${user.properties.file}"/> <!-- The two properties below are usually overridden --> <!-- by the active platform. Just a fallback. --> <property name="default.javac.source" value="1.4"/> <property name="default.javac.target" value="1.4"/> </target> <target name="-init-project" depends="-pre-init,-init-private,-init-user"> <property file="nbproject/project.properties"/> </target> <target name="-do-init" depends="-pre-init,-init-private,-init-user,-init-project,-init-macrodef-property"> <j2seproject1:property name="platform.home" value="platforms.${platform.active}.home"/> <j2seproject1:property name="platform.bootcp" value="platforms.${platform.active}.bootclasspath"/> <j2seproject1:property name="platform.compiler" value="platforms.${platform.active}.compile"/> <j2seproject1:property name="platform.javac.tmp" value="platforms.${platform.active}.javac"/> <condition property="platform.javac" value="${platform.home}/bin/javac"> <equals arg1="${platform.javac.tmp}" arg2="$${platforms.${platform.active}.javac}"/> </condition> <property name="platform.javac" value="${platform.javac.tmp}"/> <j2seproject1:property name="platform.java.tmp" value="platforms.${platform.active}.java"/> <condition property="platform.java" value="${platform.home}/bin/java"> <equals arg1="${platform.java.tmp}" arg2="$${platforms.${platform.active}.java}"/> </condition> <property name="platform.java" value="${platform.java.tmp}"/> <condition property="platform.invalid" value="true"> <or> <contains string="${platform.javac}" substring="$${platforms."/> <contains string="${platform.java}" substring="$${platforms."/> </or> </condition> <fail unless="platform.home">Must set platform.home</fail> <fail unless="platform.bootcp">Must set platform.bootcp</fail> <fail unless="platform.java">Must set platform.java</fail> <fail unless="platform.javac">Must set platform.javac</fail> <fail if="platform.invalid">Platform is not correctly set up</fail> <available file="${manifest.file}" property="manifest.available"/> <condition property="manifest.available+main.class"> <and> <isset property="manifest.available"/> <isset property="main.class"/> <not> <equals arg1="${main.class}" arg2="" trim="true"/> </not> </and> </condition> <condition property="have.tests"> <or> <available file="${test.test.dir}"/> </or> </condition> <condition property="netbeans.home+have.tests"> <and> <isset property="netbeans.home"/> <isset property="have.tests"/> </and> </condition> <condition property="no.javadoc.preview"> <isfalse value="${javadoc.preview}"/> </condition> <property name="run.jvmargs" value=""/> <property name="javac.compilerargs" value=""/> <property name="work.dir" value="${basedir}"/> <condition property="no.deps"> <and> <istrue value="${no.dependencies}"/> </and> </condition> </target> <target name="-post-init"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> <target name="-init-check" depends="-pre-init,-init-private,-init-user,-init-project,-do-init"> <fail unless="src.dir">Must set src.dir</fail> <fail unless="test.test.dir">Must set test.test.dir</fail> <fail unless="build.dir">Must set build.dir</fail> <fail unless="dist.dir">Must set dist.dir</fail> <fail unless="build.classes.dir">Must set build.classes.dir</fail> <fail unless="dist.javadoc.dir">Must set dist.javadoc.dir</fail> <fail unless="build.test.classes.dir">Must set build.test.classes.dir</fail> <fail unless="build.test.results.dir">Must set build.test.results.dir</fail> <fail unless="build.classes.excludes">Must set build.classes.excludes</fail> <fail unless="dist.jar">Must set dist.jar</fail> </target> <target name="-init-macrodef-property"> <macrodef name="property" uri="http://www.netbeans.org/ns/j2se-project/1"> <attribute name="name"/> <attribute name="value"/> <sequential> <property name="@{name}" value="${@{value}}"/> </sequential> </macrodef> </target> <target name="-init-macrodef-javac"> <macrodef name="javac" uri="http://www.netbeans.org/ns/j2se-project/2"> <attribute name="srcdir" default="${src.dir}"/> <attribute name="destdir" default="${build.classes.dir}"/> <attribute name="classpath" default="${javac.classpath}"/> <attribute name="debug" default="${javac.debug}"/> <element name="customize" optional="true"/> <sequential> <javac srcdir="@{srcdir}" destdir="@{destdir}" debug="@{debug}" deprecation="${javac.deprecation}" source="${javac.source}" target="${javac.target}" fork="yes" executable="${platform.javac}" tempdir="${java.io.tmpdir}" includeantruntime="false"> <classpath> <path path="@{classpath}"/> </classpath> <compilerarg line="${javac.compilerargs}"/> <customize/> </javac> </sequential> </macrodef> </target> <target name="-init-macrodef-junit"> <macrodef name="junit" uri="http://www.netbeans.org/ns/j2se-project/2"> <attribute name="includes" default="**/*Test.java"/> <sequential> <junit showoutput="true" fork="true" dir="${basedir}" failureproperty="tests.failed" errorproperty="tests.failed" jvm="${platform.java}"> <batchtest todir="${build.test.results.dir}"> <fileset dir="${test.test.dir}" includes="@{includes}"/> </batchtest> <classpath> <path path="${run.test.classpath}"/> </classpath> <syspropertyset> <propertyref prefix="test-sys-prop."/> <mapper type="glob" from="test-sys-prop.*" to="*"/> </syspropertyset> <formatter type="brief" usefile="false"/> </junit> </sequential> </macrodef> </target> <target name="-init-macrodef-nbjpda"> <macrodef name="nbjpdastart" uri="http://www.netbeans.org/ns/j2se-project/1"> <attribute name="name" default="${main.class}"/> <attribute name="classpath" default="${debug.classpath}"/> <attribute name="stopclassname" default=""/> <sequential> <nbjpdastart transport="dt_socket" addressproperty="jpda.address" name="@{name}" stopclassname="@{stopclassname}"> <classpath> <path path="@{classpath}"/> </classpath> <bootclasspath> <path path="${platform.bootcp}"/> </bootclasspath> </nbjpdastart> </sequential> </macrodef> <macrodef name="nbjpdareload" uri="http://www.netbeans.org/ns/j2se-project/1"> <attribute name="dir" default="${build.classes.dir}"/> <sequential> <nbjpdareload> <fileset includes="${fix.includes}*.class" dir="@{dir}"/> </nbjpdareload> </sequential> </macrodef> </target> <target name="-init-macrodef-debug"> <macrodef name="debug" uri="http://www.netbeans.org/ns/j2se-project/2"> <attribute name="classname" default="${main.class}"/> <attribute name="classpath" default="${debug.classpath}"/> <element name="customize" optional="true"/> <sequential> <java fork="true" classname="@{classname}" dir="${work.dir}" jvm="${platform.java}"> <jvmarg value="-Xdebug"/> <jvmarg value="-Xnoagent"/> <jvmarg value="-Djava.compiler=none"/> <jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/> <jvmarg line="${run.jvmargs}"/> <classpath> <path path="@{classpath}"/> </classpath> <syspropertyset> <propertyref prefix="run-sys-prop."/> <mapper type="glob" from="run-sys-prop.*" to="*"/> </syspropertyset> <customize/> </java> </sequential> </macrodef> </target> <target name="-init-macrodef-java"> <macrodef name="java" uri="http://www.netbeans.org/ns/j2se-project/1"> <attribute name="classname" default="${main.class}"/> <element name="customize" optional="true"/> <sequential> <java fork="true" classname="@{classname}" dir="${work.dir}" jvm="${platform.java}"> <jvmarg line="${run.jvmargs}"/> <classpath> <path path="${run.classpath}"/> </classpath> <syspropertyset> <propertyref prefix="run-sys-prop."/> <mapper type="glob" from="run-sys-prop.*" to="*"/> </syspropertyset> <customize/> </java> </sequential> </macrodef> </target> <target name="-init-presetdef-jar"> <presetdef name="jar" uri="http://www.netbeans.org/ns/j2se-project/1"> <jar jarfile="${dist.jar}" compress="${jar.compress}"> <j2seproject1:fileset dir="${build.classes.dir}"/> </jar> </presetdef> </target> <target name="init" depends="-pre-init,-init-private,-init-user,-init-project,-do-init,-post-init,-init-check,-init-macrodef-property,-init-macrodef-javac,-init-macrodef-junit,-init-macrodef-nbjpda,-init-macrodef-debug,-init-macrodef-java,-init-presetdef-jar"/> <!-- =================== COMPILATION SECTION =================== --> <target name="deps-jar" depends="init" unless="no.deps"/> <target name="-pre-pre-compile" depends="init,deps-jar"> <mkdir dir="${build.classes.dir}"/> </target> <target name="-pre-compile"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> <target name="-do-compile" depends="init,deps-jar,-pre-pre-compile,-pre-compile"> <j2seproject2:javac/> <copy todir="${build.classes.dir}"> <fileset dir="${src.dir}" excludes="${build.classes.excludes}"/> </copy> </target> <target name="-post-compile"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> <target name="compile" depends="init,deps-jar,-pre-pre-compile,-pre-compile,-do-compile,-post-compile" description="Compile project."/> <target name="-pre-compile-single"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> <target name="-do-compile-single" depends="init,deps-jar,-pre-pre-compile"> <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> <j2seproject2:javac> <customize> <patternset includes="${javac.includes}"/> </customize> </j2seproject2:javac> </target> <target name="-post-compile-single"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> <target name="compile-single" depends="init,deps-jar,-pre-pre-compile,-pre-compile-single,-do-compile-single,-post-compile-single"/> <!-- ==================== JAR BUILDING SECTION ==================== --> <target name="-pre-pre-jar" depends="init"> <dirname property="dist.jar.dir" file="${dist.jar}"/> <mkdir dir="${dist.jar.dir}"/> </target> <target name="-pre-jar"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> <target name="-do-jar-without-manifest" depends="init,compile,-pre-pre-jar,-pre-jar" unless="manifest.available"> <j2seproject1:jar/> </target> <target name="-do-jar-with-manifest" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available" unless="manifest.available+main.class"> <j2seproject1:jar manifest="${manifest.file}"/> </target> <target name="-do-jar-with-mainclass" depends="init,compile,-pre-pre-jar,-pre-jar" if="manifest.available+main.class"> <j2seproject1:jar manifest="${manifest.file}"> <j2seproject1:manifest> <j2seproject1:attribute name="Main-Class" value="${main.class}"/> </j2seproject1:manifest> </j2seproject1:jar> </target> <target name="-post-jar"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> <target name="jar" depends="init,compile,-pre-jar,-do-jar-with-manifest,-do-jar-without-manifest,-do-jar-with-mainclass,-post-jar" description="Build JAR."/> <!-- ================= EXECUTION SECTION ================= --> <target name="run" depends="init,compile" description="Run a main class."> <j2seproject1:java> <customize> <arg line="${application.args}"/> </customize> </j2seproject1:java> </target> <target name="run-single" depends="init,compile-single"> <fail unless="run.class">Must select one file in the IDE or set run.class</fail> <j2seproject1:java classname="${run.class}"/> </target> <!-- ================= DEBUGGING SECTION ================= --> <target name="-debug-start-debugger" if="netbeans.home" depends="init"> <j2seproject1:nbjpdastart name="${debug.class}"/> </target> <target name="-debug-start-debuggee" depends="init,compile"> <j2seproject2:debug> <customize> <arg line="${application.args}"/> </customize> </j2seproject2:debug> </target> <target name="debug" if="netbeans.home" depends="init,compile,-debug-start-debugger,-debug-start-debuggee" description="Debug project in IDE."/> <target name="-debug-start-debugger-stepinto" if="netbeans.home" depends="init"> <j2seproject1:nbjpdastart stopclassname="${main.class}"/> </target> <target name="debug-stepinto" if="netbeans.home" depends="init,compile,-debug-start-debugger-stepinto,-debug-start-debuggee"/> <target name="-debug-start-debuggee-single" if="netbeans.home" depends="init,compile-single"> <fail unless="debug.class">Must select one file in the IDE or set debug.class</fail> <j2seproject2:debug classname="${debug.class}"/> </target> <target name="debug-single" if="netbeans.home" depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-single"/> <target name="-pre-debug-fix" depends="init"> <fail unless="fix.includes">Must set fix.includes</fail> <property name="javac.includes" value="${fix.includes}.java"/> </target> <target name="-do-debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,compile-single"> <j2seproject1:nbjpdareload/> </target> <target name="debug-fix" if="netbeans.home" depends="init,-pre-debug-fix,-do-debug-fix"/> <!-- =============== JAVADOC SECTION =============== --> <target name="-javadoc-build" depends="init"> <mkdir dir="${dist.javadoc.dir}"/> <j2seproject1:property name="platform.javadoc.tmp" value="platforms.${platform.active}.javadoc"/> <condition property="platform.javadoc" value="${platform.home}/bin/javadoc"> <equals arg1="${platform.javadoc.tmp}" arg2="$${platforms.${platform.active}.javadoc}"/> </condition> <property name="platform.javadoc" value="${platform.javadoc.tmp}"/> <condition property="javadoc.notree.opt" value="-notree"> <istrue value="${javadoc.notree}"/> </condition> <property name="javadoc.notree.opt" value=""/> <condition property="javadoc.use.opt" value="-use"> <istrue value="${javadoc.use}"/> </condition> <property name="javadoc.use.opt" value=""/> <condition property="javadoc.nonavbar.opt" value="-nonavbar"> <istrue value="${javadoc.nonavbar}"/> </condition> <property name="javadoc.nonavbar.opt" value=""/> <condition property="javadoc.noindex.opt" value="-noindex"> <istrue value="${javadoc.noindex}"/> </condition> <property name="javadoc.noindex.opt" value=""/> <condition property="javadoc.splitindex.opt" value="-splitindex"> <istrue value="${javadoc.splitindex}"/> </condition> <property name="javadoc.splitindex.opt" value=""/> <condition property="javadoc.author.opt" value="-author"> <istrue value="${javadoc.author}"/> </condition> <property name="javadoc.author.opt" value=""/> <condition property="javadoc.version.opt" value="-version"> <istrue value="${javadoc.version}"/> </condition> <property name="javadoc.version.opt" value=""/> <condition property="javadoc.private.opt" value="-private"> <istrue value="${javadoc.private}"/> </condition> <property name="javadoc.private.opt" value=""/> <condition property="javadoc.classpath.opt" value=""""> <equals arg1="${javac.classpath}" arg2=""/> </condition> <path id="javadoc.classpath.temp"> <pathelement path="${javac.classpath}"/> </path> <property name="javadoc.classpath.opt" refid="javadoc.classpath.temp"/> <apply executable="${platform.javadoc}" failonerror="true" parallel="true"> <arg value="-d"/> <arg file="${dist.javadoc.dir}"/> <arg value="-source"/> <arg value="${javac.source}"/> <arg value="-windowtitle"/> <arg value="${javadoc.windowtitle}"/> <arg line="${javadoc.notree.opt} ${javadoc.use.opt} ${javadoc.nonavbar.opt} ${javadoc.noindex.opt} ${javadoc.splitindex.opt} ${javadoc.author.opt} ${javadoc.version.opt} ${javadoc.private.opt} ${javadoc.additionalparam}"/> <arg value="-classpath"/> <arg value="${javadoc.classpath.opt}"/> <arg value="-sourcepath"/> <arg path="${src.dir}"/> <fileset dir="${src.dir}" includes="**/*.java"/> </apply> </target> <target name="-javadoc-browse" if="netbeans.home" unless="no.javadoc.preview" depends="init,-javadoc-build"> <nbbrowse file="${dist.javadoc.dir}/index.html"/> </target> <target name="javadoc" depends="init,-javadoc-build,-javadoc-browse" description="Build Javadoc."/> <!-- ========================= JUNIT COMPILATION SECTION ========================= --> <target name="-pre-pre-compile-test" if="have.tests" depends="init,compile"> <mkdir dir="${build.test.classes.dir}"/> </target> <target name="-pre-compile-test"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> <target name="-do-compile-test" if="have.tests" depends="init,compile,-pre-pre-compile-test,-pre-compile-test"> <j2seproject2:javac srcdir="${test.test.dir}" destdir="${build.test.classes.dir}" debug="true" classpath="${javac.test.classpath}"/> <copy todir="${build.test.classes.dir}"> <fileset dir="${test.test.dir}" excludes="**/*.java"/> </copy> </target> <target name="-post-compile-test"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> <target name="compile-test" depends="init,compile,-pre-pre-compile-test,-pre-compile-test,-do-compile-test,-post-compile-test"/> <target name="-pre-compile-test-single"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> <target name="-do-compile-test-single" if="have.tests" depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single"> <fail unless="javac.includes">Must select some files in the IDE or set javac.includes</fail> <j2seproject2:javac srcdir="${test.test.dir}" destdir="${build.test.classes.dir}" debug="true" classpath="${javac.test.classpath}"> <customize> <patternset includes="${javac.includes}"/> </customize> </j2seproject2:javac> </target> <target name="-post-compile-test-single"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> <target name="compile-test-single" depends="init,compile,-pre-pre-compile-test,-pre-compile-test-single,-do-compile-test-single,-post-compile-test-single"/> <!-- ======================= JUNIT EXECUTION SECTION ======================= --> <target name="-pre-test-run" if="have.tests" depends="init"> <mkdir dir="${build.test.results.dir}"/> </target> <target name="-do-test-run" if="have.tests" depends="init,compile-test,-pre-test-run"> <j2seproject2:junit/> </target> <target name="-post-test-run" if="have.tests" depends="init,compile-test,-pre-test-run,-do-test-run"> <fail if="tests.failed">Some tests failed; see details above.</fail> </target> <target name="test-report" if="have.tests" depends="init"/> <target name="-test-browse" if="netbeans.home+have.tests" depends="init"/> <target name="test" depends="init,compile-test,-pre-test-run,-do-test-run,test-report,-post-test-run,-test-browse" description="Run unit tests."/> <target name="-pre-test-run-single" if="have.tests" depends="init"> <mkdir dir="${build.test.results.dir}"/> </target> <target name="-do-test-run-single" if="have.tests" depends="init,compile-test-single,-pre-test-run-single"> <fail unless="test.includes">Must select some files in the IDE or set test.includes</fail> <j2seproject2:junit includes="${test.includes}"/> </target> <target name="-post-test-run-single" if="have.tests" depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single"> <fail if="tests.failed">Some tests failed; see details above.</fail> </target> <target name="test-single" depends="init,compile-test-single,-pre-test-run-single,-do-test-run-single,-post-test-run-single" description="Run single unit test."/> <!-- ======================= JUNIT DEBUGGING SECTION ======================= --> <target name="-debug-start-debuggee-test" if="have.tests" depends="init,compile-test"> <fail unless="test.class">Must select one file in the IDE or set test.class</fail> <j2seproject2:debug classname="junit.textui.TestRunner" classpath="${debug.test.classpath}"> <customize> <arg line="${test.class}"/> </customize> </j2seproject2:debug> </target> <target name="-debug-start-debugger-test" if="netbeans.home+have.tests" depends="init,compile-test"> <j2seproject1:nbjpdastart name="${test.class}" classpath="${debug.test.classpath}"/> </target> <target name="debug-test" depends="init,compile-test,-debug-start-debugger-test,-debug-start-debuggee-test"/> <target name="-do-debug-fix-test" if="netbeans.home" depends="init,-pre-debug-fix,compile-test-single"> <j2seproject1:nbjpdareload dir="${build.test.classes.dir}"/> </target> <target name="debug-fix-test" if="netbeans.home" depends="init,-pre-debug-fix,-do-debug-fix-test"/> <!-- ========================= APPLET EXECUTION SECTION ========================= --> <target name="run-applet" depends="init,compile-single"> <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> <j2seproject1:java classname="sun.applet.AppletViewer"> <customize> <arg value="${applet.url}"/> </customize> </j2seproject1:java> </target> <!-- ========================= APPLET DEBUGGING SECTION ========================= --> <target name="-debug-start-debuggee-applet" if="netbeans.home" depends="init,compile-single"> <fail unless="applet.url">Must select one file in the IDE or set applet.url</fail> <j2seproject2:debug classname="sun.applet.AppletViewer"> <customize> <arg value="${applet.url}"/> </customize> </j2seproject2:debug> </target> <target name="debug-applet" if="netbeans.home" depends="init,compile-single,-debug-start-debugger,-debug-start-debuggee-applet"/> <!-- =============== CLEANUP SECTION =============== --> <target name="deps-clean" depends="init" unless="no.deps"/> <target name="-do-clean" depends="init"> <delete dir="${build.dir}"/> <delete dir="${dist.dir}"/> </target> <target name="-post-clean"> <!-- Empty placeholder for easier customization. --> <!-- You can override this target in the ../build.xml file. --> </target> <target name="clean" depends="init,deps-clean,-do-clean,-post-clean" description="Clean build products."/> </project> --- NEW FILE: project.xml --- <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://www.netbeans.org/ns/project/1"> <type>org.netbeans.modules.java.j2seproject</type> <configuration> <data xmlns="http://www.netbeans.org/ns/j2se-project/2"> <name>batchserver</name> <minimum-ant-version>1.6</minimum-ant-version> <explicit-platform explicit-source-supported="true"/> <source-roots> <root id="src.dir"/> </source-roots> <test-roots> <root id="test.test.dir"/> </test-roots> </data> </configuration> </project> |
From: Suresh <sur...@us...> - 2006-09-20 12:57:41
|
Update of /cvsroot/batchserver/batchserver/nbproject/private In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv22116/private Log Message: Directory /cvsroot/batchserver/batchserver/nbproject/private added to the repository |
From: Suresh <sur...@us...> - 2006-09-20 12:57:31
|
Update of /cvsroot/batchserver/batchserver/nbproject In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv22090/nbproject Log Message: Directory /cvsroot/batchserver/batchserver/nbproject added to the repository |
From: Suresh <sur...@us...> - 2006-09-20 12:56:26
|
Update of /cvsroot/batchserver/batchserver In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv21674 Modified Files: build.xml Log Message: no message Index: build.xml =================================================================== RCS file: /cvsroot/batchserver/batchserver/build.xml,v retrieving revision 1.5 retrieving revision 1.6 diff -C2 -d -r1.5 -r1.6 *** build.xml 15 Sep 2006 20:29:38 -0000 1.5 --- build.xml 20 Sep 2006 12:56:23 -0000 1.6 *************** *** 1,230 **** ! <project name="batch-framework" default="source-compile" basedir="."> ! ! <!-- ===================== Property Definitions =========================== --> ! ! <property file="build.properties"/> ! ! ! <!-- ==================== File and Directory Names ======================== --> ! ! <property name="build.home" value="${basedir}/build"/> ! <property name="dist.home" value="${basedir}/dist"/> ! <property name="docs.home" value="${basedir}/docs"/> ! <property name="src.home" value="${basedir}/src"/> ! <property name="lib.home" value="${basedir}/lib"/> ! <property name="test.home" value="${basedir}/test"/> ! <property name="reports.home" value="${basedir}/reports"/> ! ! ! <!-- ==================== Compilation Control Options ==================== --> ! ! <property name="compile.debug" value="true"/> ! <property name="compile.deprecation" value="false"/> ! <property name="compile.optimize" value="true"/> ! ! ! <!-- ======= Pattern Sets, File Sets, Application Classpaths ======= --> ! ! <patternset id="app.resources"> ! <include name="**/*.properties"/> ! <include name="**/*.xml"/> ! </patternset> ! ! <path id="compile.classpath"> ! <!-- Include all JAR files that will be required to compile application --> ! <pathelement location="${lib.home}/xml/xml_apis.jar"/> ! <pathelement location="${lib.home}/xml/apache/resolver_2.7.1.jar"/> ! <pathelement location="${lib.home}/xml/apache/xerces_impl_2.7.1.jar"/> ! </path> ! <property name="compile.classpath" refid="compile.classpath"/> ! ! ! <path id="runtime.classpath"> ! <path location="${build.home}/src"/> ! <path refid="compile.classpath"/> ! </path> ! <property name="runtime.classpath" refid="runtime.classpath"/> ! ! <path id="test.compile.classpath"> ! <path refid="runtime.classpath"/> ! <path location="${lib.home}/junit/junit_1.0.jar"/> ! </path> ! <property name="test.compile.classpath" refid="test.compile.classpath"/> ! ! <path id="test.runtime.classpath"> ! <path refid="test.compile.classpath"/> ! <pathelement location="${build.home}/test"/> ! </path> ! <property name="test.runtime.classpath" refid="test.runtime.classpath"/> ! ! <!-- ==================== Source-Clean-Compile Target ====================================== --> ! ! <target name="source-clean-compile" depends="source-clean,source-compile" description="Clean and compile the source"/> ! ! <!-- ==================== Source-Clean Target ==================================== --> ! ! <target name="source-clean" description="Delete old source build directories"> ! <delete dir="${build.home}/src"/> ! </target> ! ! ! <!-- ==================== Source-Compile Target ================================== --> ! ! <target name="source-compile" description="Compile Java sources"> ! ! <!-- Compile Java classes as necessary --> ! <mkdir dir="${build.home}/src"/> ! <echo message="Classpath for compilation : ${compile.classpath}"/> ! <javac srcdir="${src.home}" ! destdir="${build.home}/src" ! debug="${compile.debug}" ! deprecation="${compile.deprecation}" ! optimize="${compile.optimize}"> ! <classpath refid="compile.classpath"/> ! </javac> ! ! <!-- Copy application resources --> ! <copy todir="${build.home}/src"> ! <fileset dir="${src.home}"> ! <patternset refid="app.resources"/> ! </fileset> ! </copy> ! ! </target> ! ! <!-- ======================== Run Target ================================================ --> ! ! <target name="run" depends="source-compile" description="Runs the given class file"> ! <echo message="Running the class using the classpath : ${runtime.classpath}"/> ! <java classname="org.jmonks.batchserver.framework.common.Main" fork="true"> ! <classpath refid="runtime.classpath"/> ! <arg value="batchJobName=SomeJob"/> ! </java> ! </target> ! ! <!-- ==================== Test-Clean-Compile Target ====================================== --> ! ! <target name="test-clean-compile" depends="test-clean,test-compile" description="Clean and compile the test classes"/> ! ! <!-- ==================== Test-Clean Target ==================================== --> ! ! <target name="test-clean" description="Delete old test build directories"> ! <delete dir="${build.home}/test"/> ! </target> ! ! ! <!-- ==================== Test-Compile Target ================================== --> ! ! <target name="test-compile" depends="source-compile" description="Compile Test Java sources"> ! ! <!-- Compile Test Java classes as necessary --> ! <mkdir dir="${build.home}/test"/> ! <echo message="Classpath for test compilation : ${test.compile.classpath}"/> ! ! <javac srcdir="${test.home}" ! destdir="${build.home}/test" ! debug="${compile.debug}" ! deprecation="${compile.deprecation}" ! optimize="${compile.optimize}"> ! <classpath refid="test.compile.classpath"/> ! </javac> ! ! <!-- Copy application resources --> ! <copy todir="${build.home}/test"> ! <fileset dir="${test.home}"> ! <patternset refid="app.resources"/> ! </fileset> ! </copy> ! ! </target> ! ! <!-- ==================== Run Framework Test Suite Target ===================================== --> ! <target name="run-framework-test-suite" depends="test-compile" description="Run Framework Test Suite"> ! <!-- Make sure you have junit jar and junit ant jar in ant lib directory --> ! <echo message="Running Framework Test Suite"/> ! <echo message="Classpath to run test suite : ${test.runtime.classpath}"/> ! <delete dir="${reports.home}"/> ! <mkdir dir="${reports.home}"/> ! <junit printsummary="true"> ! <classpath refid="test.runtime.classpath"/> ! <!-- To generate the test reports use the below xml formatter instead of plain formmater --> ! <formatter type="xml" usefile="true"/> ! <!-- <formatter type="plain" usefile="false"/> --> ! <test name="org.jmonks.batchserver.framework.FrameworkTestSuite" todir="${reports.home}"/> ! </junit> ! </target> ! <!-- ==================== Run All Tests Target ===================================== --> ! <target name="run-all-tests" depends="test-compile" description="Run all the tests available in project"> ! <!-- Make sure you have junit jar and junit ant jar in ant lib directory --> ! <echo message="Running All JUnit Tests"/> ! <echo message="Classpath for run all tests : ${test.runtime.classpath}"/> ! <delete dir="${reports.home}"/> ! <mkdir dir="${reports.home}"/> ! ! <junit printsummary="true"> ! <classpath refid="test.runtime.classpath"/> ! <!-- To run all the JUnit Test classes --> ! <formatter type="xml" usefile="true"/> ! <batchtest todir="${reports.home}"> ! <fileset dir="${build.home}/test" includes="**/*Test.class"/> ! </batchtest> ! </junit> ! </target> ! <!-- ==================== JUnit Reports Format Target ===================================== --> ! <target name="run-format-framework-test-suite" depends="run-framework-test-suite" description="Run the unittests and format the test results into html docs"> ! <!-- Make sure you have junit jar and junit ant jar in ant lib directory --> ! <junitreport todir="${reports.home}"> ! <fileset dir="${reports.home}"> ! <include name="*.xml"/> ! </fileset> ! <report format="frames" todir="${reports.home}/html"/> ! </junitreport> ! </target> - <target name="run-format-all-tests-results" depends="run-all-tests" description="Run the unittests and format the test results into html docs"> - <!-- Make sure you have junit jar and junit ant jar in ant lib directory --> - <junitreport todir="${reports.home}"> - <fileset dir="${reports.home}"> - <include name="*.xml"/> - </fileset> - <report format="frames" todir="${reports.home}/html"/> - </junitreport> - </target> ! <!-- ==================== Dist Target ===================================== --> ! <target name="dist" depends="source-clean-compile,javadoc" description="Create binary distribution"> ! <!-- Copy documentation subdirectories --> ! <mkdir dir="${dist.home}/docs"/> ! <copy todir="${dist.home}/docs"> ! <fileset dir="${docs.home}"/> ! </copy> ! <!-- Create application JAR file --> ! <jar jarfile="${dist.home}/${app.name}-${app.version}.jar" ! basedir="${build.home}/src"/> ! </target> ! <!-- ==================== Javadoc Target ================================== --> ! <target name="javadoc" depends="source-clean-compile" description="Create Javadoc API documentation"> ! <delete dir="${docs.home}"/> ! <mkdir dir="${docs.home}"/> ! <javadoc sourcepath="${src.home}" ! destdir="${docs.home}" ! packagenames="*" ! author="true" ! version="true" ! use="true"> ! <classpath refid="compile.classpath"/> ! </javadoc> ! </target> </project> - --- 1,69 ---- ! <?xml version="1.0" encoding="UTF-8"?> ! <!-- You may freely edit this file. See commented blocks below for --> ! <!-- some examples of how to customize the build. --> ! <!-- (If you delete it and reopen the project it will be recreated.) --> ! <project name="batchserver" default="default" basedir="."> ! <description>Builds, tests, and runs the project batchserver.</description> ! <import file="nbproject/build-impl.xml"/> ! <!-- ! There exist several targets which are by default empty and which can be ! used for execution of your tasks. These targets are usually executed ! before and after some main targets. They are: ! -pre-init: called before initialization of project properties ! -post-init: called after initialization of project properties ! -pre-compile: called before javac compilation ! -post-compile: called after javac compilation ! -pre-compile-single: called before javac compilation of single file ! -post-compile-single: called after javac compilation of single file ! -pre-compile-test: called before javac compilation of JUnit tests ! -post-compile-test: called after javac compilation of JUnit tests ! -pre-compile-test-single: called before javac compilation of single JUnit test ! -post-compile-test-single: called after javac compilation of single JUunit test ! -pre-jar: called before JAR building ! -post-jar: called after JAR building ! -post-clean: called after cleaning build products ! (Targets beginning with '-' are not intended to be called on their own.) ! Example of inserting an obfuscator after compilation could look like this: ! <target name="-post-compile"> ! <obfuscate> ! <fileset dir="${build.classes.dir}"/> ! </obfuscate> ! </target> ! For list of available properties check the imported ! nbproject/build-impl.xml file. ! Another way to customize the build is by overriding existing main targets. ! The targets of interest are: ! -init-macrodef-javac: defines macro for javac compilation ! -init-macrodef-junit: defines macro for junit execution ! -init-macrodef-debug: defines macro for class debugging ! -init-macrodef-java: defines macro for class execution ! -do-jar-with-manifest: JAR building (if you are using a manifest) ! -do-jar-without-manifest: JAR building (if you are not using a manifest) ! run: execution of project ! -javadoc-build: Javadoc generation ! test-report: JUnit report generation ! An example of overriding the target for project execution could look like this: ! <target name="run" depends="batchserver-impl.jar"> ! <exec dir="bin" executable="launcher.exe"> ! <arg file="${dist.jar}"/> ! </exec> ! </target> ! Notice that the overridden target depends on the jar target and not only on ! the compile target as the regular run target does. Again, for a list of available ! properties which you can use, check the target you are overriding in the ! nbproject/build-impl.xml file. + --> </project> |
From: Suresh <sur...@us...> - 2006-09-20 12:55:50
|
Update of /cvsroot/batchserver/batchserver In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv21276 Removed Files: build.properties Log Message: no message --- build.properties DELETED --- |
From: Suresh <sur...@us...> - 2006-09-20 12:53:40
|
Update of /cvsroot/batchserver/batchserver/src/org/jmonks/batch/framework/repository/db4o In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv20357/framework/repository/db4o Modified Files: Db4oRepository.java Log Message: no message Index: Db4oRepository.java =================================================================== RCS file: /cvsroot/batchserver/batchserver/src/org/jmonks/batch/framework/repository/db4o/Db4oRepository.java,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** Db4oRepository.java 15 Sep 2006 22:04:23 -0000 1.2 --- Db4oRepository.java 20 Sep 2006 12:53:37 -0000 1.3 *************** *** 135,139 **** * @return Returns the Db4o object container reference. */ ! protected ObjectContainer createContainer(Map configProps) { String db4oDirectoryName=(String)configProps.get(Db4oRepository.PROPERTY_DB4O_DIRECTORY); --- 135,139 ---- * @return Returns the Db4o object container reference. */ ! protected synchronized ObjectContainer createContainer(Map configProps) { String db4oDirectoryName=(String)configProps.get(Db4oRepository.PROPERTY_DB4O_DIRECTORY); *************** *** 145,149 **** * @see org.jmonks.batch.framework.repository Repository#sendDataToNextJob(String,String,Object) */ ! public boolean sendDataToNextJob(String dataIdentifier, String nextJobName, final Object data) { logger.trace("Entering sendDataToNextJob);"); --- 145,149 ---- * @see org.jmonks.batch.framework.repository Repository#sendDataToNextJob(String,String,Object) */ ! public synchronized boolean sendDataToNextJob(String dataIdentifier, String nextJobName, final Object data) { logger.trace("Entering sendDataToNextJob);"); *************** *** 202,206 **** * @see org.jmonks.batch.framework.repository.Repository#getDataFromPreviousJob(String,String) */ ! public Object getDataFromPreviousJob(String dataIdentifier, String previousJobName) { logger.trace("Entering getDataFromPreviousJob"); --- 202,206 ---- * @see org.jmonks.batch.framework.repository.Repository#getDataFromPreviousJob(String,String) */ ! public synchronized Object getDataFromPreviousJob(String dataIdentifier, String previousJobName) { logger.trace("Entering getDataFromPreviousJob"); *************** *** 251,255 **** * @see org.jmonks.batch.framework.repository.Repository#clearDataTransferredToNextJob() */ ! public boolean clearDataTransferredFromThisJob() { logger.trace("Entering clearDataTransferredToNextJob"); --- 251,255 ---- * @see org.jmonks.batch.framework.repository.Repository#clearDataTransferredToNextJob() */ ! public synchronized boolean clearDataTransferredFromThisJob() { logger.trace("Entering clearDataTransferredToNextJob"); *************** *** 289,293 **** * @see org.jmonks.batch.framework.repository.Repository#registerJobMgmtMntrInfo(Object) */ ! public boolean registerJobMgmtMntrInfo(final Object registrationInfo) { logger.trace("Entering registerJobMgmtMntrInfo"); --- 289,293 ---- * @see org.jmonks.batch.framework.repository.Repository#registerJobMgmtMntrInfo(Object) */ ! public synchronized boolean registerJobMgmtMntrInfo(final Object registrationInfo) { logger.trace("Entering registerJobMgmtMntrInfo"); *************** *** 323,327 **** * @see org.jmonks.batch.framework.repository.Repository#unregisterJobMgmtMntrInfo() */ ! public boolean unregisterJobMgmtMntrInfo() { logger.trace("Entering unregisterJobMgmtMntrInfo"); --- 323,327 ---- * @see org.jmonks.batch.framework.repository.Repository#unregisterJobMgmtMntrInfo() */ ! public synchronized boolean unregisterJobMgmtMntrInfo() { logger.trace("Entering unregisterJobMgmtMntrInfo"); *************** *** 354,358 **** * @see org.jmonks.batch.framework.repository.Repository#logStatistics(org.jmonks.batch.framework.JobStatistics) */ ! public boolean logStatistics(final JobStatistics statistics) { logger.trace("Entering logStatistics"); --- 354,358 ---- * @see org.jmonks.batch.framework.repository.Repository#logStatistics(org.jmonks.batch.framework.JobStatistics) */ ! public synchronized boolean logStatistics(final JobStatistics statistics) { logger.trace("Entering logStatistics"); |
From: Suresh <sur...@us...> - 2006-09-20 12:53:40
|
Update of /cvsroot/batchserver/batchserver/src/org/jmonks/batch/framework/repository/jdbc In directory sc8-pr-cvs3.sourceforge.net:/tmp/cvs-serv20357/framework/repository/jdbc Modified Files: JdbcRepository.java Log Message: no message Index: JdbcRepository.java =================================================================== RCS file: /cvsroot/batchserver/batchserver/src/org/jmonks/batch/framework/repository/jdbc/JdbcRepository.java,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** JdbcRepository.java 15 Sep 2006 20:07:32 -0000 1.1 --- JdbcRepository.java 20 Sep 2006 12:53:37 -0000 1.2 *************** *** 101,105 **** * @see org.jmonks.batch.framework.repository.Repository#clearDataTransferredToNextJob() */ ! public boolean clearDataTransferredFromThisJob() { logger.trace("Entering clearDataTransferredToNextJob"); --- 101,105 ---- * @see org.jmonks.batch.framework.repository.Repository#clearDataTransferredToNextJob() */ ! public synchronized boolean clearDataTransferredFromThisJob() { logger.trace("Entering clearDataTransferredToNextJob"); *************** *** 139,143 **** * @see org.jmonks.batch.framework.repository Repository#sendDataToNextJob(String,String,Object) */ ! public boolean sendDataToNextJob(String dataIdentifier, String nextJobName, final Object data) { logger.trace("Entering sendDataToNextJob);"); --- 139,143 ---- * @see org.jmonks.batch.framework.repository Repository#sendDataToNextJob(String,String,Object) */ ! public synchronized boolean sendDataToNextJob(String dataIdentifier, String nextJobName, final Object data) { logger.trace("Entering sendDataToNextJob);"); *************** *** 195,199 **** * @see org.jmonks.batch.framework.repository.Repository#getDataFromPreviousJob(String,String) */ ! public Object getDataFromPreviousJob(String dataIdentifier, String previousJobName) { logger.trace("Entering getDataFromPreviousJob"); --- 195,199 ---- * @see org.jmonks.batch.framework.repository.Repository#getDataFromPreviousJob(String,String) */ ! public synchronized Object getDataFromPreviousJob(String dataIdentifier, String previousJobName) { logger.trace("Entering getDataFromPreviousJob"); *************** *** 246,250 **** * @see org.jmonks.batch.framework.repository.Repository#logStatistics(org.jmonks.batch.framework.JobStatistics) */ ! public boolean logStatistics(final JobStatistics statistics) { logger.trace("Entering logStatistics"); --- 246,250 ---- * @see org.jmonks.batch.framework.repository.Repository#logStatistics(org.jmonks.batch.framework.JobStatistics) */ ! public synchronized boolean logStatistics(final JobStatistics statistics) { logger.trace("Entering logStatistics"); *************** *** 299,303 **** * @see org.jmonks.batch.framework.repository.Repository#unregisterJobMgmtMntrInfo() */ ! public boolean unregisterJobMgmtMntrInfo() { logger.trace("Entering unregisterJobMgmtMntrInfo"); --- 299,303 ---- * @see org.jmonks.batch.framework.repository.Repository#unregisterJobMgmtMntrInfo() */ ! public synchronized boolean unregisterJobMgmtMntrInfo() { logger.trace("Entering unregisterJobMgmtMntrInfo"); *************** *** 336,340 **** * @see org.jmonks.batch.framework.repository.Repository#registerJobMgmtMntrInfo(Object) */ ! public boolean registerJobMgmtMntrInfo(final Object registrationInfo) { logger.trace("Entering registerJobMgmtMntrInfo"); --- 336,340 ---- * @see org.jmonks.batch.framework.repository.Repository#registerJobMgmtMntrInfo(Object) */ ! public synchronized boolean registerJobMgmtMntrInfo(final Object registrationInfo) { logger.trace("Entering registerJobMgmtMntrInfo"); |