[Batchserver-cvs] Batch_IO_1.1/src/org/jmonks/batch/io/ofx/messageset SignUpMsgsRsV1.java, NONE, 1
Brought to you by:
suresh_pragada
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); } |