KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > compiere > process > ProcessInfoParameter


1 /******************************************************************************
2  * The contents of this file are subject to the Compiere License Version 1.1
3  * ("License"); You may not use this file except in compliance with the License
4  * You may obtain a copy of the License at http://www.compiere.org/license.html
5  * Software distributed under the License is distributed on an "AS IS" basis,
6  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for
7  * the specific language governing rights and limitations under the License.
8  * The Original Code is Compiere ERP & CRM Smart Business Solution
9  * The Initial Developer of the Original Code is Jorg Janke and ComPiere, Inc.
10  * Portions created by Jorg Janke are Copyright (C) 1999-2003 Jorg Janke, parts
11  * created by ComPiere are Copyright (C) ComPiere, Inc.; All Rights Reserved.
12  * Contributor(s): ______________________________________.
13  *****************************************************************************/

14 package org.compiere.process;
15
16 import java.io.*;
17
18 /**
19  * Process Parameter
20  *
21  * @author Jorg Janke
22  * @version $Id: ProcessInfoParameter.java,v 1.2 2003/08/08 16:15:28 jjanke Exp $
23  */

24 public class ProcessInfoParameter implements Serializable
25 {
26     /**
27      * Construct Parameter
28      * @param parameterName parameter name
29      * @param parameter parameter
30      * @param parameter_To to parameter
31      * @param info info
32      * @param info_To to info
33      */

34     public ProcessInfoParameter (String JavaDoc parameterName, Object JavaDoc parameter, Object JavaDoc parameter_To, String JavaDoc info, String JavaDoc info_To)
35     {
36         setParameterName (parameterName);
37         setParameter (parameter);
38         setParameter_To (parameter_To);
39         setInfo (info);
40         setInfo_To (info_To);
41     } // ProcessInfoParameter
42

43     private String JavaDoc m_ParameterName;
44     private Object JavaDoc m_Parameter;
45     private Object JavaDoc m_Parameter_To;
46     private String JavaDoc m_Info = "";
47     private String JavaDoc m_Info_To = "";
48
49     /**
50      * String Representation
51      * @return info
52      */

53     public String JavaDoc toString()
54     {
55         if (m_Parameter_To != null || m_Info_To.length() > 0)
56             return "ProcessInfoParameter[" + m_ParameterName + "=" + m_Parameter
57                 + "(" + m_Info + ") - "
58                 + m_Parameter_To + "(" + m_Info_To + ")";
59         return "ProcessInfoParameter[" + m_ParameterName + "=" + m_Parameter
60               + "(" + m_Info + ")";
61     } // toString
62

63
64     public String JavaDoc getInfo ()
65     {
66         return m_Info;
67     }
68
69     public String JavaDoc getInfo_To ()
70     {
71         return m_Info_To;
72     }
73
74     public Object JavaDoc getParameter ()
75     {
76         return m_Parameter;
77     }
78
79     public Object JavaDoc getParameter_To ()
80     {
81         return m_Parameter_To;
82     }
83
84     public String JavaDoc getParameterName ()
85     {
86         return m_ParameterName;
87     }
88
89     public void setInfo (String JavaDoc Info)
90     {
91         if (Info == null)
92             m_Info = "";
93         else
94             m_Info = Info;
95     }
96
97     public void setInfo_To (String JavaDoc Info_To)
98     {
99         if (Info_To == null)
100             m_Info_To = "";
101         else
102             m_Info_To = Info_To;
103     }
104
105     public void setParameter (Object JavaDoc Parameter)
106     {
107         m_Parameter = Parameter;
108     }
109
110     public void setParameter_To (Object JavaDoc Parameter_To)
111     {
112         m_Parameter_To = Parameter_To;
113     }
114
115     public void setParameterName (String JavaDoc ParameterName)
116     {
117         m_ParameterName = ParameterName;
118     }
119
120 } // ProcessInfoParameter
121
Popular Tags