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