1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.juddi.datatype.request;
17
18 import java.util.Vector;
19
20 import org.apache.juddi.datatype.RegistryObject;
21 import org.apache.juddi.datatype.ServiceKey;
22
23 /***
24 * "Used to get full details for a given set of registered
25 * businessService data. Returns a serviceDetail message."
26 *
27 * @author Steve Viens (sviens@apache.org)
28 */
29 public class GetServiceDetail implements RegistryObject,Inquiry
30 {
31 String generic;
32 Vector serviceKeyVector;
33
34 /***
35 * Construct a new empty get_serviceDetail request.
36 */
37 public GetServiceDetail()
38 {
39 }
40
41 /***
42 *
43 * @param genericValue
44 */
45 public void setGeneric(String genericValue)
46 {
47 this.generic = genericValue;
48 }
49
50 /***
51 *
52 * @return String UDDI request's generic value.
53 */
54 public String getGeneric()
55 {
56 return this.generic;
57 }
58
59 /***
60 *
61 */
62 public Vector getServiceKeyVector()
63 {
64 return this.serviceKeyVector;
65 }
66
67 /***
68 * Add a ServiceKey to the collection of ServiceKeys
69 *
70 * @param key The new ServiceKey to add
71 */
72 public void addServiceKey(ServiceKey key)
73 {
74 if ((key != null) && (key.getValue() != null))
75 addServiceKey(key.getValue());
76 }
77
78 /***
79 * Add a ServiceKey to the collection of ServiceKeys
80 *
81 * @param key The new ServiceKey to add to the collection of ServiceKeys
82 */
83 public void addServiceKey(String key)
84 {
85 if (serviceKeyVector == null)
86 serviceKeyVector = new Vector();
87 serviceKeyVector.add(key);
88 }
89
90 /***
91 * Sets the ServiceKey Vector
92 *
93 * @param keys The new collection of ServiceKeys
94 */
95 public void setServiceKeyVector(Vector keys)
96 {
97 this.serviceKeyVector = keys;
98 }
99 }