1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.juddi.datatype.response;
17
18 import java.util.Vector;
19
20 import org.apache.juddi.datatype.RegistryObject;
21 import org.apache.juddi.datatype.assertion.PublisherAssertion;
22
23 /***
24 * @author Steve Viens (sviens@apache.org)
25 */
26 public class PublisherAssertions implements RegistryObject
27 {
28 String generic;
29 String operator;
30 Vector publisherAssertionVector;
31
32 /***
33 *
34 */
35 public PublisherAssertions()
36 {
37 }
38
39 /***
40 *
41 * @param genericValue
42 */
43 public void setGeneric(String genericValue)
44 {
45 this.generic = genericValue;
46 }
47
48 /***
49 *
50 * @return String UDDI generic value.
51 */
52 public String getGeneric()
53 {
54 return this.generic;
55 }
56
57 /***
58 *
59 */
60 public void setOperator(String operator)
61 {
62 this.operator = operator;
63 }
64
65 /***
66 *
67 */
68 public String getOperator()
69 {
70 return this.operator;
71 }
72
73 /***
74 *
75 */
76 public void addPublisherAssertion(PublisherAssertion assertion)
77 {
78 if (this.publisherAssertionVector == null)
79 this.publisherAssertionVector = new Vector();
80 this.publisherAssertionVector.add(assertion);
81 }
82
83 /***
84 *
85 */
86 public void setPublisherAssertionVector(Vector assertions)
87 {
88 this.publisherAssertionVector = assertions;
89 }
90
91 /***
92 *
93 */
94 public Vector getPublisherAssertionVector()
95 {
96 return this.publisherAssertionVector;
97 }
98
99 /***
100 *
101 */
102 public String toString()
103 {
104 StringBuffer buffer = new StringBuffer();
105 buffer.append("org.apache.juddi.datatype.response.PublisherAssertions.operator=");
106 buffer.append(this.operator);
107 buffer.append("\n");
108
109 if (this.publisherAssertionVector != null)
110 for (int i=0; i<this.publisherAssertionVector.size(); i++)
111 buffer.append(this.publisherAssertionVector.elementAt(i));
112
113 return buffer.toString();
114 }
115 }