1   /***
2    * @(#)MockServiceEntry.java
3    * 
4    * JFoxSOAF, Service-Oriented Application Framework
5    * 
6    * Copyright(c) JFoxSOAF Team
7    * 
8    * Licensed under the GNU LGPL, Version 2.1 (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.gnu.org/copyleft/lesser.html
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   * For more information, please visit:
21   * http://www.jfox.cn/confluence/display/JFoxSOAF/Home
22   * http://www.huihoo.org/jfox/jfoxsoaf
23   */
24  
25  package org.huihoo.jfox.soaf.container;
26  
27  import java.io.IOException;
28  import java.io.Writer;
29  import java.util.Enumeration;
30  
31  import org.exolab.castor.xml.MarshalException;
32  import org.exolab.castor.xml.ValidationException;
33  import org.huihoo.jfox.soaf.schema.service.Parameter;
34  import org.xml.sax.ContentHandler;
35  
36  /***
37   * MockObject for ServiceEntry.
38   * 
39   * @author <a href="mailto:founder_chen@yahoo.com.cn">Peter Cheng </a>
40   * @version $Revision: 1.3 $ $Date: 2005/01/17 14:10:49 $
41   * @version Revision: 1.0
42   */
43  
44  public class MockServiceEntry implements ServiceEntry {
45  
46      private String id;
47  
48      private String _interface;
49  
50      private String description;
51  
52      private String implementation;
53  
54      private String manageable = "false";
55  
56      /***
57       * @see org.huihoo.jfox.soaf.container.ServiceEntry#addParameter(org.huihoo.jfox.soaf.schema.service.Parameter)
58       */
59      public void addParameter(Parameter vParameter)
60              throws IndexOutOfBoundsException {
61      }
62  
63      /***
64       * @see org.huihoo.jfox.soaf.container.ServiceEntry#addParameter(int,
65       *      org.huihoo.jfox.soaf.schema.service.Parameter)
66       */
67      public void addParameter(int index, Parameter vParameter)
68              throws IndexOutOfBoundsException {
69      }
70  
71      /***
72       * @see org.huihoo.jfox.soaf.container.ServiceEntry#enumerateParameter()
73       */
74      public Enumeration enumerateParameter() {
75          return null;
76      }
77  
78      /***
79       * @see org.huihoo.jfox.soaf.container.ServiceEntry#getDescription()
80       */
81      public String getDescription() {
82          return this.description;
83      }
84  
85      /***
86       * @see org.huihoo.jfox.soaf.container.ServiceEntry#getId()
87       */
88      public String getId() {
89          return this.id;
90      }
91  
92      /***
93       * @see org.huihoo.jfox.soaf.container.ServiceEntry#getImplementation()
94       */
95      public String getImplementation() {
96          return this.implementation;
97      }
98  
99      /***
100      * @see org.huihoo.jfox.soaf.container.ServiceEntry#getInterface()
101      */
102     public String getInterface() {
103         return this._interface;
104     }
105 
106     /***
107      * @see org.huihoo.jfox.soaf.container.ServiceEntry#getManageable()
108      */
109     public String getManageable() {
110         return this.manageable;
111     }
112 
113     /***
114      * @see org.huihoo.jfox.soaf.container.ServiceEntry#getParameter(int)
115      */
116     public Parameter getParameter(int index) throws IndexOutOfBoundsException {
117         return null;
118     }
119 
120     /***
121      * @see org.huihoo.jfox.soaf.container.ServiceEntry#getParameter()
122      */
123     public Parameter[] getParameter() {
124         return null;
125     }
126 
127     /***
128      * @see org.huihoo.jfox.soaf.container.ServiceEntry#getParameterCount()
129      */
130     public int getParameterCount() {
131         return 0;
132     }
133 
134     /***
135      * @see org.huihoo.jfox.soaf.container.ServiceEntry#isValid()
136      */
137     public boolean isValid() {
138         return false;
139     }
140 
141     /***
142      * @see org.huihoo.jfox.soaf.container.ServiceEntry#marshal(java.io.Writer)
143      */
144     public void marshal(Writer out) throws MarshalException,
145             ValidationException {
146     }
147 
148     /***
149      * @see org.huihoo.jfox.soaf.container.ServiceEntry#marshal(org.xml.sax.ContentHandler)
150      */
151     public void marshal(ContentHandler handler) throws IOException,
152             MarshalException, ValidationException {
153     }
154 
155     /***
156      * @see org.huihoo.jfox.soaf.container.ServiceEntry#removeAllParameter()
157      */
158     public void removeAllParameter() {
159     }
160 
161     /***
162      * @see org.huihoo.jfox.soaf.container.ServiceEntry#removeParameter(int)
163      */
164     public Parameter removeParameter(int index) {
165         return null;
166     }
167 
168     /***
169      * @see org.huihoo.jfox.soaf.container.ServiceEntry#setDescription(java.lang.String)
170      */
171     public void setDescription(String description) {
172         this.description = description;
173     }
174 
175     /***
176      * @see org.huihoo.jfox.soaf.container.ServiceEntry#setId(java.lang.String)
177      */
178     public void setId(String id) {
179         this.id = id;
180     }
181 
182     /***
183      * @see org.huihoo.jfox.soaf.container.ServiceEntry#setImplementation(java.lang.String)
184      */
185     public void setImplementation(String implementation) {
186         this.implementation = implementation;
187     }
188 
189     /*
190      * (non-Javadoc)
191      * 
192      * @see org.huihoo.jfox.soaf.container.ServiceEntry#setInterface(java.lang.String)
193      */
194     public void setInterface(String _interface) {
195         this._interface = _interface;
196 
197     }
198 
199     /***
200      * @see org.huihoo.jfox.soaf.container.ServiceEntry#setManageable(java.lang.String)
201      */
202     public void setManageable(String manageable) {
203         this.manageable = manageable;
204     }
205 
206     /***
207      * @see org.huihoo.jfox.soaf.container.ServiceEntry#setParameter(int,
208      *      org.huihoo.jfox.soaf.schema.service.Parameter)
209      */
210     public void setParameter(int index, Parameter vParameter)
211             throws IndexOutOfBoundsException {
212     }
213 
214     /***
215      * @see org.huihoo.jfox.soaf.container.ServiceEntry#setParameter(org.huihoo.jfox.soaf.schema.service.Parameter[])
216      */
217     public void setParameter(Parameter[] parameterArray) {
218     }
219 
220     /***
221      * @see org.huihoo.jfox.soaf.container.ServiceEntry#validate()
222      */
223     public void validate() throws ValidationException {
224     }
225 
226 }