001: /*
002: * Licensed to the Apache Software Foundation (ASF) under one
003: * or more contributor license agreements. See the NOTICE file
004: * distributed with this work for additional information
005: * regarding copyright ownership. The ASF licenses this file
006: * to you under the Apache License, Version 2.0 (the
007: * "License"); you may not use this file except in compliance
008: * with the License. You may obtain a copy of the License at
009: *
010: * http://www.apache.org/licenses/LICENSE-2.0
011: *
012: * Unless required by applicable law or agreed to in writing,
013: * software distributed under the License is distributed on an
014: * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015: * KIND, either express or implied. See the License for the
016: * specific language governing permissions and limitations
017: * under the License.
018: */
019: package org.apache.axis2.tool.service.bean;
020:
021: import java.util.ArrayList;
022:
023: public class Page2Bean {
024: private boolean manual = false;
025: private boolean automatic = false;
026:
027: private String manualFileName;
028: private String automaticClassName;
029: private String providerClassName;
030:
031: private ArrayList selectedMethodNames;
032: private String serviceName;
033:
034: /**
035: * @return Returns the serviceName.
036: */
037: public String getServiceName() {
038: return serviceName;
039: }
040:
041: /**
042: * @param serviceName The serviceName to set.
043: */
044: public void setServiceName(String serviceName) {
045: this .serviceName = serviceName;
046: }
047:
048: public String getProviderClassName() {
049: return providerClassName;
050: }
051:
052: public void setProviderClassName(String providerClassName) {
053: this .providerClassName = providerClassName;
054: }
055:
056: public Page2Bean() {
057: selectedMethodNames = new ArrayList();
058: }
059:
060: public boolean isManual() {
061: return manual;
062: }
063:
064: public void setManual(boolean manual) {
065: this .manual = manual;
066: }
067:
068: public boolean isAutomatic() {
069: return automatic;
070: }
071:
072: public void setAutomatic(boolean automatic) {
073: this .automatic = automatic;
074: }
075:
076: public String getManualFileName() {
077: return manualFileName;
078: }
079:
080: public void setManualFileName(String manualFileName) {
081: this .manualFileName = manualFileName;
082: }
083:
084: public String getAutomaticClassName() {
085: return automaticClassName;
086: }
087:
088: public void setAutomaticClassName(String automaticClassName) {
089: this .automaticClassName = automaticClassName;
090: }
091:
092: public int getMethodNameCount() {
093: return selectedMethodNames.size();
094: }
095:
096: public void setSelectedMethodNames(ArrayList list) {
097: this .selectedMethodNames = list;
098: }
099:
100: public String getMethodName(int index) {
101: return selectedMethodNames.get(index).toString();
102: }
103:
104: public void addMethodName(String selectedMethodName) {
105: this .selectedMethodNames.add(selectedMethodNames);
106: }
107:
108: public ArrayList getSelectedMethodNames() {
109: return selectedMethodNames;
110: }
111: }
|