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.binding.BindingTemplate;
22
23 /***
24 * Holds specific bindingTemplate information in response to a
25 * get_bindingDetail or find_binding inquiry message. BindingTemplates
26 * supplies getFirst() and getNext() to allow iteration through the
27 * resultset, each returning a BindingTemplate object.
28 *
29 * @author Steve Viens (sviens@apache.org)
30 */
31 public class BindingDetail implements RegistryObject
32 {
33 String generic;
34 String operator;
35 boolean truncated;
36 Vector bindingVector;
37
38 /***
39 * Constructor, creates empty BindingDetail.
40 */
41 public BindingDetail()
42 {
43 }
44
45 /***
46 *
47 * @param genericValue
48 */
49 public void setGeneric(String genericValue)
50 {
51 this.generic = genericValue;
52 }
53
54 /***
55 *
56 * @return String UDDI generic value.
57 */
58 public String getGeneric()
59 {
60 return this.generic;
61 }
62
63 /***
64 *
65 */
66 public void setOperator(String operator)
67 {
68 this.operator = operator;
69 }
70
71 /***
72 *
73 */
74 public String getOperator()
75 {
76 return this.operator;
77 }
78
79 /***
80 *
81 */
82 public boolean isTruncated()
83 {
84 return truncated;
85 }
86
87 /***
88 *
89 */
90 public void setTruncated(boolean val)
91 {
92 this.truncated = val;
93 }
94
95 /***
96 *
97 */
98 public void addBindingTemplate(BindingTemplate template)
99 {
100 if (this.bindingVector == null)
101 this.bindingVector = new Vector();
102 this.bindingVector.add(template);
103 }
104
105 /***
106 *
107 */
108 public void setBindingTemplateVector(Vector templates)
109 {
110 this.bindingVector = templates;
111 }
112
113 /***
114 *
115 */
116 public Vector getBindingTemplateVector()
117 {
118 return this.bindingVector;
119 }
120 }