KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openbravo > data > Parameter


1 /*
2  ************************************************************************************
3  * Copyright (C) 2001-2006 Openbravo S.L.
4  * Licensed under the Apache Software License version 2.0
5  * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
6  * Unless required by applicable law or agreed to in writing, software distributed
7  * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
8  * CONDITIONS OF ANY KIND, either express or implied. See the License for the
9  * specific language governing permissions and limitations under the License.
10  ************************************************************************************
11 */

12 package org.openbravo.data;
13
14 class Parameter {
15   boolean boolSequence;
16   boolean boolRepeated = false;
17   String JavaDoc strName;
18   String JavaDoc strInOut;
19   int type;
20   String JavaDoc strDefault;
21   String JavaDoc strValue;
22   String JavaDoc strAfter;
23   String JavaDoc strText;
24   boolean boolOptional = false;
25
26   public Parameter(boolean sequence, String JavaDoc strName, String JavaDoc strDefault,
27       String JavaDoc strInOut, String JavaDoc strOptional, String JavaDoc strAfter, String JavaDoc strText) {
28     boolSequence = sequence;
29     this.strName = strName;
30     this.strDefault = strDefault;
31     this.strInOut = strInOut;
32     if (strOptional != null) boolOptional = true;
33     type = java.sql.Types.VARCHAR;
34     this.strAfter = strAfter;
35     this.strText = strText;
36   }
37
38 }
39
Popular Tags