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   *  businessService information.  This message contains zero or more
23   *  serviceInfo structures.  It is returned in response to a find_service
24   *  message."
25   *
26   * @author Steve Viens (sviens@apache.org)
27   */
28  public class ServiceList implements RegistryObject
29  {
30    String generic;
31    String operator;
32    boolean truncated;
33    ServiceInfos serviceInfos;
34  
35    /***
36     * default constructor, creates empty BindingTemplates list.
37     */
38    public ServiceList()
39    {
40    }
41  
42    /***
43     *
44     * @param genericValue
45     */
46    public void setGeneric(String genericValue)
47    {
48      this.generic = genericValue;
49    }
50  
51    /***
52     *
53     * @return String UDDI generic value.
54     */
55    public String getGeneric()
56    {
57      return this.generic;
58    }
59  
60    /***
61     *
62     */
63    public void setOperator(String operator)
64    {
65      this.operator = operator;
66    }
67  
68    /***
69     *
70     */
71    public String getOperator()
72    {
73       return this.operator;
74    }
75  
76    /***
77     *
78     */
79    public boolean isTruncated()
80    {
81      return this.truncated;
82    }
83  
84    /***
85     *
86     */
87    public void setTruncated(boolean val)
88    {
89      this.truncated = val;
90    }
91  
92    /***
93     *
94     */
95    public void addServiceInfo(ServiceInfo info)
96    {
97      if (this.serviceInfos == null)
98        this.serviceInfos = new ServiceInfos();
99      this.serviceInfos.addServiceInfo(info);
100   }
101 
102   /***
103    *
104    */
105   public void setServiceInfos(ServiceInfos infos)
106   {
107     this.serviceInfos = infos;
108   }
109 
110   /***
111    *
112    */
113   public ServiceInfos getServiceInfos()
114   {
115     return this.serviceInfos;
116   }
117 }