KickJava   Java API By Example, From Geeks To Geeks.

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


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.assertion.PublisherAssertion;
22
23 /**
24  * "The set_publisherAssertions API call is used to manage all of the
25  * tracked relationship assertions associated with an individual
26  * publisher account. See the appendix on relationship assertions for
27  * more information."
28  *
29  * - from UDDI Version 2 Programmers API Specification, pg. 52
30  *
31  * @author Steve Viens (sviens@apache.org)
32  */

33 public class SetPublisherAssertions implements RegistryObject,Publish
34 {
35   String JavaDoc generic;
36   AuthInfo authInfo;
37   Vector JavaDoc publisherAssertionVector;
38
39   /**
40    *
41    */

42   public SetPublisherAssertions()
43   {
44   }
45
46   /**
47    *
48    */

49   public SetPublisherAssertions(AuthInfo authInfo,Vector JavaDoc assertions)
50   {
51     this.authInfo = authInfo;
52     this.publisherAssertionVector = assertions;
53   }
54
55   /**
56    *
57    * @param genericValue
58    */

59   public void setGeneric(String JavaDoc genericValue)
60   {
61     this.generic = genericValue;
62   }
63
64   /**
65    *
66    * @return String UDDI request's generic value.
67    */

68   public String JavaDoc getGeneric()
69   {
70     return this.generic;
71   }
72
73   /**
74    *
75    */

76   public void setAuthInfo(AuthInfo authInfo)
77   {
78     this.authInfo = authInfo;
79   }
80
81   /**
82    *
83    */

84   public AuthInfo getAuthInfo()
85   {
86     return this.authInfo;
87   }
88
89   /**
90    *
91    */

92   public void addPublisherAssertion(PublisherAssertion assertion)
93   {
94     if (this.publisherAssertionVector == null)
95       this.publisherAssertionVector = new Vector JavaDoc();
96     this.publisherAssertionVector.add(assertion);
97   }
98
99   /**
100    *
101    */

102   public void setPublisherAssertionVector(Vector JavaDoc assertions)
103   {
104     this.publisherAssertionVector = assertions;
105   }
106
107   /**
108    *
109    */

110   public Vector JavaDoc getPublisherAssertionVector()
111   {
112      return this.publisherAssertionVector;
113   }
114 }
Popular Tags