KickJava   Java API By Example, From Geeks To Geeks.

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


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.Publisher;
22
23 /**
24  * Used to register or update complete information about a publisher.
25  *
26  * @author Steve Viens (sviens@apache.org)
27  */

28 public class SavePublisher implements RegistryObject,Admin
29 {
30   String JavaDoc generic;
31   AuthInfo authInfo;
32   Vector JavaDoc publisherVector;
33
34   /**
35    *
36    */

37   public SavePublisher()
38   {
39   }
40
41   /**
42    *
43    */

44   public SavePublisher(AuthInfo info,Publisher publisher)
45   {
46     this.authInfo = info;
47     addPublisher(publisher);
48   }
49
50   /**
51    *
52    */

53   public SavePublisher(AuthInfo info,Vector JavaDoc publishers)
54   {
55     this.authInfo = info;
56     this.publisherVector = publishers;
57   }
58
59   /**
60    *
61    * @param genericValue
62    */

63   public void setGeneric(String JavaDoc genericValue)
64   {
65     this.generic = genericValue;
66   }
67
68   /**
69    *
70    * @return String request's generic value.
71    */

72   public String JavaDoc getGeneric()
73   {
74     return this.generic;
75   }
76
77   /**
78    *
79    */

80   public void setAuthInfo(AuthInfo info)
81   {
82     this.authInfo = info;
83   }
84
85   /**
86    *
87    */

88   public AuthInfo getAuthInfo()
89   {
90     return this.authInfo;
91   }
92
93   /**
94    *
95    */

96   public void addPublisher(Publisher publisher)
97   {
98     if (this.publisherVector == null)
99       this.publisherVector = new Vector JavaDoc();
100     this.publisherVector.add(publisher);
101   }
102
103   /**
104    *
105    */

106   public void setPublisherVector(Vector JavaDoc publishers)
107   {
108     this.publisherVector = publishers;
109   }
110
111   /**
112    *
113    */

114   public Vector JavaDoc getPublisherVector()
115   {
116     return this.publisherVector;
117   }
118 }
Popular Tags