1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.juddi.datatype.response;
17
18 import java.util.Vector;
19
20 import org.apache.juddi.datatype.RegistryObject;
21 import org.apache.juddi.datatype.service.BusinessService;
22
23 /***
24 * "This structure contains full details for zero or more businessService
25 * structures. It is returned in response to a get_serviceDetail message,
26 * and optionally in response to the save_binding and save_service messages."
27 * "Note that the businessKey value is supplied in this message because the
28 * container does not provide a link to the parent businessEntity structure"
29 * XML Structure Reference. (The businessKey in the businessService must
30 * be populated).
31 *
32 * @author Steve Viens (sviens@apache.org)
33 */
34 public class ServiceDetail implements RegistryObject
35 {
36 String generic;
37 String operator;
38 boolean truncated;
39 Vector serviceVector;
40
41 /***
42 * default constructor
43 */
44 public ServiceDetail()
45 {
46 }
47
48 /***
49 *
50 * @param genericValue
51 */
52 public void setGeneric(String genericValue)
53 {
54 this.generic = genericValue;
55 }
56
57 /***
58 *
59 * @return String UDDI generic value.
60 */
61 public String getGeneric()
62 {
63 return this.generic;
64 }
65
66 /***
67 *
68 */
69 public void setOperator(String operator)
70 {
71 this.operator = operator;
72 }
73
74 /***
75 *
76 */
77 public String getOperator()
78 {
79 return this.operator;
80 }
81
82 /***
83 *
84 */
85 public boolean isTruncated()
86 {
87 return this.truncated;
88 }
89
90 /***
91 *
92 */
93 public void setTruncated(boolean val)
94 {
95 this.truncated = val;
96 }
97
98 /***
99 *
100 */
101 public void addBusinessService(BusinessService service)
102 {
103 if (this.serviceVector == null)
104 this.serviceVector = new Vector();
105 this.serviceVector.add(service);
106 }
107
108 /***
109 *
110 */
111 public void setBusinessServiceVector(Vector services)
112 {
113 this.serviceVector = services;
114 }
115
116 /***
117 *
118 */
119 public Vector getBusinessServiceVector()
120 {
121 return this.serviceVector;
122 }
123 }