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 org.apache.juddi.datatype.RegistryObject;
19
20 /***
21 * "This structure contains abbreviated information about registered
22 * businessEntity information. This message contains zero or more
23 * businessInfo structures. It is returned in response to a
24 * find_business message."
25 *
26 * "BusinessInfo structures are abbreviated versions of BusinessEntity
27 * data suitable for populating lists of search results in anticipation of
28 * further drill-down detail inquiries." - XML Structure Reference
29 *
30 * @author Steve Viens (sviens@apache.org)
31 */
32 public class BusinessList implements RegistryObject
33 {
34 String generic;
35 String operator;
36 boolean truncated;
37 BusinessInfos businessInfos;
38
39 /***
40 *
41 */
42 public BusinessList()
43 {
44 }
45
46 /***
47 *
48 * @param genericValue
49 */
50 public void setGeneric(String genericValue)
51 {
52 this.generic = genericValue;
53 }
54
55 /***
56 *
57 * @return String UDDI generic value.
58 */
59 public String getGeneric()
60 {
61 return this.generic;
62 }
63
64 /***
65 *
66 */
67 public void setOperator(String operator)
68 {
69 this.operator = operator;
70 }
71
72 /***
73 *
74 */
75 public String getOperator()
76 {
77 return this.operator;
78 }
79
80 /***
81 *
82 */
83 public boolean isTruncated()
84 {
85 return this.truncated;
86 }
87
88 /***
89 *
90 */
91 public void setTruncated(boolean val)
92 {
93 this.truncated = val;
94 }
95
96 /***
97 *
98 */
99 public void addBusinessInfo(BusinessInfo info)
100 {
101 if (this.businessInfos == null)
102 this.businessInfos = new BusinessInfos();
103 this.businessInfos.addBusinessInfo(info);
104 }
105
106 /***
107 *
108 */
109 public void setBusinessInfos(BusinessInfos infos)
110 {
111 this.businessInfos = infos;
112 }
113
114 /***
115 *
116 */
117 public BusinessInfos getBusinessInfos()
118 {
119 return businessInfos;
120 }
121 }