001: /*
002: * CoadunationLib: The coaduntion implementation library.
003: * Copyright (C) 2006 Rift IT Contracting
004: *
005: * This library is free software; you can redistribute it and/or
006: * modify it under the terms of the GNU Lesser General Public
007: * License as published by the Free Software Foundation; either
008: * version 2.1 of the License, or (at your option) any later version.
009: *
010: * This library is distributed in the hope that it will be useful,
011: * but WITHOUT ANY WARRANTY; without even the implied warranty of
012: * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
013: * Lesser General Public License for more details.
014: *
015: * You should have received a copy of the GNU Lesser General Public
016: * License along with this library; if not, write to the Free Software
017: * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
018: *
019: * XMLConfigurationException.java
020: *
021: * WebServiceInfo.java
022: *
023: * The class containing the web service information
024: */
025:
026: // package imports
027: package com.rift.coad.lib.deployment;
028:
029: // java imports
030: import java.util.Vector;
031:
032: /**
033: * This class contains web service information
034: *
035: * @author Brett Chaldecott
036: */
037: public class WebServiceInfo {
038:
039: // member variables
040: private String path = null;
041: private String className = null;
042: private String wsdlPath = null;
043: private String role = null;
044: private boolean transaction = false;
045: private Vector extraClassNames = new Vector();
046:
047: /**
048: * Creates a new instance of WebServiceInfo
049: */
050: public WebServiceInfo() {
051: }
052:
053: /**
054: * The getter method for the path.
055: *
056: * @return The string containing the path information.
057: */
058: public String getPath() {
059: return path;
060: }
061:
062: /**
063: * This method will set the path information for the web service.
064: *
065: * @param path The path the web service will be available on.
066: */
067: public void setPath(String path) {
068: this .path = path;
069: }
070:
071: /**
072: * This getter method for the class name.
073: *
074: * @return The class name.
075: */
076: public String getClassName() {
077: return className;
078: }
079:
080: /**
081: * The method responsible for setting the class name.
082: *
083: * @param className The name of the class to set.
084: */
085: public void setClassName(String className) {
086: this .className = className;
087: }
088:
089: /**
090: * This method will return the path to the WSDL file
091: *
092: * @return The string containing the wsdl path.
093: */
094: public String getWSDLPath() {
095: return wsdlPath;
096: }
097:
098: /**
099: * The method responsible for setting the path to the WSDL file.
100: *
101: * @param WSDLPath The name of the target to set.
102: */
103: public void setWSDLPath(String wsdlPath) {
104: this .wsdlPath = wsdlPath;
105: }
106:
107: /**
108: * The role information
109: *
110: * @return The name of the role for this web service.
111: */
112: public String getRole() {
113: return role;
114: }
115:
116: /**
117: * This method sets the role information.
118: *
119: * @param role The role that the web service will run as.
120: */
121: public void setRole(String role) {
122: this .role = role;
123: }
124:
125: /**
126: * This method returns true if the container must control the transaction.
127: *
128: * @return TRUE if it must control the transaction.
129: */
130: public boolean getTransaction() {
131: return transaction;
132: }
133:
134: /**
135: * This method sets the transaction
136: *
137: * @param TRUE if this container must control the transaction.
138: */
139: public void setTransaction(boolean transaction) {
140: this .transaction = transaction;
141: }
142:
143: /**
144: * This method will return true if all values have been correctly initialized
145: *
146: * @return TRUE if all values have been initialized.
147: */
148: public boolean isInitialized() {
149: if ((this .className != null) && (this .path != null)
150: && (this .role != null) && (this .wsdlPath != null)) {
151: return true;
152: }
153: return false;
154: }
155:
156: /**
157: * This method adds to the classes list.
158: *
159: * @param className The class name to add to the list.
160: */
161: public void addToClasses(String className) {
162: extraClassNames.add(className);
163: }
164:
165: /**
166: * This method returns the list of class names for this web service.
167: *
168: * @return The list of classes.
169: */
170: public Vector getClasses() {
171: return extraClassNames;
172: }
173: }
|