KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > axis > tool > service > bean > Page2Bean


1 package org.apache.axis.tool.service.bean;
2
3 import java.util.ArrayList JavaDoc;
4
5 /*
6  * Copyright 2004,2005 The Apache Software Foundation.
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */

20 public class Page2Bean {
21     private boolean manual;
22     private boolean automatic;
23
24     private String JavaDoc manualFileName;
25     private String JavaDoc automaticClassName;
26     private String JavaDoc providerClassName;
27
28     private ArrayList JavaDoc selectedMethodNames;
29
30     public String JavaDoc getProviderClassName() {
31         return providerClassName;
32     }
33
34     public void setProviderClassName(String JavaDoc providerClassName) {
35         this.providerClassName = providerClassName;
36     }
37
38     public Page2Bean() {
39         selectedMethodNames = new ArrayList JavaDoc();
40     }
41
42     public boolean isManual() {
43         return manual;
44     }
45
46     public void setManual(boolean manual) {
47         this.manual = manual;
48     }
49
50     public boolean isAutomatic() {
51         return automatic;
52     }
53
54     public void setAutomatic(boolean automatic) {
55         this.automatic = automatic;
56     }
57
58     public String JavaDoc getManualFileName() {
59         return manualFileName;
60     }
61
62     public void setManualFileName(String JavaDoc manualFileName) {
63         this.manualFileName = manualFileName;
64     }
65
66     public String JavaDoc getAutomaticClassName() {
67         return automaticClassName;
68     }
69
70     public void setAutomaticClassName(String JavaDoc automaticClassName) {
71         this.automaticClassName = automaticClassName;
72     }
73     public int getMethodNameCount(){
74         return selectedMethodNames.size();
75     }
76     public void setSelectedMethodNames(ArrayList JavaDoc list){
77         this.selectedMethodNames = list;
78     }
79     public String JavaDoc getMethodName(int index) {
80         return selectedMethodNames.get(index).toString();
81     }
82
83     public void addMethodName(String JavaDoc selectedMethodName) {
84         this.selectedMethodNames.add(selectedMethodNames);
85     }
86
87     public ArrayList JavaDoc getSelectedMethodNames() {
88         return selectedMethodNames;
89     }
90 }
91
Popular Tags