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.BusinessKey;
19  import org.apache.juddi.datatype.RegistryObject;
20  
21  /***
22   * @author Steve Viens (sviens@apache.org)
23   * @author Anou Mana (anou_mana@users.sourceforge.net)
24   */
25  public class RelatedBusinessesList implements RegistryObject
26  {
27    String generic;
28    String operator;
29    boolean truncated;
30  
31    RelatedBusinessInfos relatedBusinessInfos;
32    BusinessKey  businessKey;
33  
34    /***
35     * default constructor
36     */
37    public RelatedBusinessesList()
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 generic value.
53     */
54    public String getGeneric()
55    {
56      return this.generic;
57    }
58  
59    /***
60     *
61     */
62    public void setOperator(String operator)
63    {
64      this.operator = operator;
65    }
66  
67    /***
68     *
69     */
70    public String getOperator()
71    {
72       return this.operator;
73    }
74  
75    /***
76     *
77     */
78    public boolean isTruncated()
79    {
80      return this.truncated;
81    }
82  
83    /***
84     *
85     */
86    public void setTruncated(boolean val)
87    {
88      this.truncated = val;
89    }
90  
91    /***
92     *
93     */
94    public void addRelatedBusinessInfo(RelatedBusinessInfo info)
95    {
96      if (this.relatedBusinessInfos == null)
97        this.relatedBusinessInfos = new RelatedBusinessInfos();
98      this.relatedBusinessInfos.addRelatedBusinessInfo(info);
99    }
100 
101   /***
102    *
103    */
104   public void setRelatedBusinessInfos(RelatedBusinessInfos infos)
105   {
106     this.relatedBusinessInfos = infos;
107   }
108 
109   /***
110    *
111    */
112   public RelatedBusinessInfos getRelatedBusinessInfos()
113   {
114     return this.relatedBusinessInfos;
115   }
116 
117   /***
118    * @return businessKey
119    */
120   public BusinessKey getBusinessKey()
121   {
122     return businessKey;
123   }
124 
125   /***
126    * @param key
127    */
128   public void setBusinessKey(BusinessKey key)
129   {
130     businessKey = key;
131   }
132 }