KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > juddi > datatype > request > GetPublisherDetail


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.request;
17
18 import java.util.Vector JavaDoc;
19
20 import org.apache.juddi.datatype.RegistryObject;
21 import org.apache.juddi.datatype.publisher.PublisherID;
22
23 /**
24  * Used to get full details for a given set of registered
25  * publisher data. Returns a publisherList message.
26  *
27  * @author Steve Viens (sviens@apache.org)
28  */

29 public class GetPublisherDetail implements RegistryObject,Admin
30 {
31   String JavaDoc generic;
32   Vector JavaDoc publisherIDVector;
33
34   /**
35    * Construct a new empty get_publisherDetail request.
36    */

37   public GetPublisherDetail()
38   {
39   }
40
41   /**
42    *
43    * @param genericValue
44    */

45   public void setGeneric(String JavaDoc genericValue)
46   {
47     this.generic = genericValue;
48   }
49
50   /**
51    *
52    * @return String request's generic value.
53    */

54   public String JavaDoc getGeneric()
55   {
56     return this.generic;
57   }
58
59   /**
60    *
61    */

62   public Vector JavaDoc getPublisherIDVector()
63   {
64     return this.publisherIDVector;
65   }
66
67   /**
68    * Add a PublisherID to the collection of PublisherIDs
69    *
70    * @param id The new PublisherID to add
71    */

72   public void addPublisherID(PublisherID id)
73   {
74     if ((id != null) && (id.getValue() != null))
75       addPublisherID(id.getValue());
76   }
77
78   /**
79    * Add a PublisherID to the collection of PublisherIDs
80    *
81    * @param id The new PublisherID to add
82    */

83   public void addPublisherID(String JavaDoc id)
84   {
85     // nothing to add so just return
86
if (id == null)
87       return;
88
89     if (publisherIDVector == null)
90       publisherIDVector = new Vector JavaDoc();
91     publisherIDVector.add(id);
92   }
93
94   /**
95    * Sets the PublisherID Vector
96    *
97    * @param idVector The new collection of PublisherIDs
98    */

99   public void setPublisherIDVector(Vector JavaDoc idVector)
100   {
101     this.publisherIDVector = idVector;
102   }
103 }
Popular Tags