View Javadoc

1   /*
2    * Copyright 2001-2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
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 }