KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > mr > kernel > dmf > DMFObject


1 package org.mr.kernel.dmf;
2
3 import org.mr.core.protocol.MantaBusMessage;
4
5 import java.util.Map JavaDoc;
6 import java.util.HashMap JavaDoc;
7
8 /*
9  * Copyright 2002 by
10  * <a HREF="http://www.coridan.com">Coridan</a>
11  * <a HREF="mailto: support@coridan.com ">support@coridan.com</a>
12  *
13  * The contents of this file are subject to the Mozilla Public License Version
14  * 1.1 (the "License"); you may not use this file except in compliance with the
15  * License. You may obtain a copy of the License at
16  * http://www.mozilla.org/MPL/
17  *
18  * Software distributed under the License is distributed on an "AS IS" basis,
19  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
20  * for the specific language governing rights and limitations under the
21  * License.
22  *
23  * The Original Code is "MantaRay" (TM).
24  *
25  * The Initial Developer of the Original Code is Coridan.
26  * Portions created by the Initial Developer are Copyright (C) 2006
27  * Coridan Inc. All Rights Reserved.
28  *
29  * Contributor(s): all the names of the contributors are added in the source
30  * code where applicable.
31  *
32  * Alternatively, the contents of this file may be used under the terms of the
33  * LGPL license (the "GNU LESSER GENERAL PUBLIC LICENSE"), in which case the
34  * provisions of LGPL are applicable instead of those above. If you wish to
35  * allow use of your version of this file only under the terms of the LGPL
36  * License and not to allow others to use your version of this file under
37  * the MPL, indicate your decision by deleting the provisions above and
38  * replace them with the notice and other provisions required by the LGPL.
39  * If you do not delete the provisions above, a recipient may use your version
40  * of this file under either the MPL or the GNU LESSER GENERAL PUBLIC LICENSE.
41  
42  *
43  * This library is free software; you can redistribute it and/or modify it
44  * under the terms of the MPL as stated above or under the terms of the GNU
45  * Lesser General Public License as published by the Free Software Foundation;
46  * either version 2.1 of the License, or any later version.
47  *
48  * This library is distributed in the hope that it will be useful, but WITHOUT
49  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
50  * FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public
51  * License for more details.
52  */

53
54  /**
55  * User: Moti Tal
56  * Date: Mar 20, 2005
57  * Time: 2:38:54 PM
58  *
59  * And object that holds the MantaBusMessage and the parameters passed through the flow steps
60  */

61 public class DMFObject extends HashMap JavaDoc{
62
63     MantaBusMessage m_mantaBusMessage;
64
65     public DMFObject(MantaBusMessage i_mantaBusMessage) {
66         m_mantaBusMessage = i_mantaBusMessage;
67     }
68
69     public DMFObject(MantaBusMessage i_mantaBusMessage, HashMap JavaDoc i_params) {
70         super(i_params);
71         m_mantaBusMessage = i_mantaBusMessage;
72     }
73
74     public MantaBusMessage getMantaBusMessage() {
75         return m_mantaBusMessage;
76     }
77
78     public void setMantaBusMessage(MantaBusMessage i_mantaBusMessage) {
79         m_mantaBusMessage = i_mantaBusMessage;
80     }
81
82     ///////////////////////////////////////////////////////////////////////////
83
////////// Overwite HashMap methodes
84
///////////////////////////////////////////////////////////////////////////
85

86      public void putAll(Map JavaDoc m) {
87          if(m != null)
88             super.putAll(m);
89      }
90
91     public void clear() {
92         super.clear();
93         m_mantaBusMessage = null;
94     }
95 }
96
Popular Tags