01 //
02 // This file is generated by MetaBoss Ver 1.4.0001 at Thu Dec 15 22:36:08 EST 2005
03 // MetaBoss is Copyright 2000-2005 © Softaris Pty.Ltd. All Rights Reserved.
04 // Content of this file is Copyright 2000-2005 © Softaris Pty. Ltd. All Rights Reserved.
05 // This content is licensed under Open Source Gnu Public License (GPL)
06 // Full terms and conditions of GPL can be found found at www.gnu.org
07 //
08
09 package com.almamater.crs.services.coursesdomainsupport;
10
11 import com.metaboss.enterprise.messages.DefaultMessageImplementation;
12
13 /** This error indicates that operation has failed because value of submitted Course VersionId was not the same as the one stored.
14 *<P>This class represents the CourseVersionMismatchError application message class (also called 'Message').
15 * Message class consists of any number of fields (ie. member variables). Every field of the message is accessible via dedicated getter and setter methods.</P>
16 * <p><b>Globally unique Id of this message is:</b> <i>Enterprise/systems[CRS]/servicemodules[CoursesDomainSupport]/messages[CourseVersionMismatchError]</i></p>
17 * <p><b>Default text for this message is:</b> <i>Course version id mismatch (possibly someone else have updated the entity). Expected VersionId: "</i>&lt;ExpectedVersionId&gt;<i>" Stored VersionId: "</i>&lt;StoredVersionId&gt;<i>"</i></p>
18 *<P><B>Fields in this message are:</B>
19 *<table border=\"1\">
20 * <tr><th>Field Name</th><th>Field Type</th><th>Field Description</th></tr>
21 * <tr><td>ExpectedVersionId</td><td>{@link com.almamater.crs.types.system.courses.CourseVersionId CourseVersionId}</td><td>The Course VersionId submitted to the service call.</td></tr>
22 * <tr><td>StoredVersionId</td><td>{@link com.almamater.crs.types.system.courses.CourseVersionId CourseVersionId}</td><td>The stored Course VersionId.</td></tr>
23 * </table>
24 */
25 public final class MOCourseVersionMismatchError extends DefaultMessageImplementation
26 {
27 /** Globally unique identifier of this message type. */
28 public static final String MESSAGE_ID = "Enterprise/systems[CRS]/servicemodules[CoursesDomainSupport]/messages[CourseVersionMismatchError]";
29 private com.almamater.crs.types.system.courses.CourseVersionId mExpectedVersionId;
30 private com.almamater.crs.types.system.courses.CourseVersionId mStoredVersionId;
31
32 /** Creates empty instance of the message. This is the only available
33 * constructor. To populate message with data use individual field setter methods. */
34 public MOCourseVersionMismatchError()
35 {
36 super(MESSAGE_ID,false,true, false);
37 }
38 /** Returns an array of message arguments used to render the message.
39 * Arguments are returned in form ready for use by java.text.MessageFormat (or similar) renderer. */
40 public Object[] getMessageArguments()
41 {
42 Object[] lMessageArguments = new Object[2];
43 if (mExpectedVersionId != null)
44 lMessageArguments[0] = mExpectedVersionId.toString();
45 else
46 lMessageArguments[0] = "";
47 if (mStoredVersionId != null)
48 lMessageArguments[1] = mStoredVersionId.toString();
49 else
50 lMessageArguments[1] = "";
51 return lMessageArguments;
52 }
53
54 /** Getter for the ExpectedVersionId field.
55 * Field description is: <i>The Course VersionId submitted to the service call.</i>
56 * @return the value of the ExpectedVersionId field */
57 public com.almamater.crs.types.system.courses.CourseVersionId getExpectedVersionId()
58 {
59 return mExpectedVersionId;
60 }
61
62 /** Setter for the ExpectedVersionId field.
63 * Field description is: <i>The Course VersionId submitted to the service call.</i>
64 * @param pExpectedVersionId the new value of the field */
65 public void setExpectedVersionId( com.almamater.crs.types.system.courses.CourseVersionId pExpectedVersionId)
66 {
67 mExpectedVersionId = pExpectedVersionId;
68 }
69
70 /** Getter for the StoredVersionId field.
71 * Field description is: <i>The stored Course VersionId.</i>
72 * @return the value of the StoredVersionId field */
73 public com.almamater.crs.types.system.courses.CourseVersionId getStoredVersionId()
74 {
75 return mStoredVersionId;
76 }
77
78 /** Setter for the StoredVersionId field.
79 * Field description is: <i>The stored Course VersionId.</i>
80 * @param pStoredVersionId the new value of the field */
81 public void setStoredVersionId( com.almamater.crs.types.system.courses.CourseVersionId pStoredVersionId)
82 {
83 mStoredVersionId = pStoredVersionId;
84 }
85 }
|