KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > juddi > datatype > response > BindingDetail


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.response;
17
18 import java.util.Vector JavaDoc;
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 JavaDoc generic;
34   String JavaDoc operator;
35   boolean truncated;
36   Vector JavaDoc 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 JavaDoc genericValue)
50   {
51     this.generic = genericValue;
52   }
53
54   /**
55    *
56    * @return String UDDI generic value.
57    */

58   public String JavaDoc getGeneric()
59   {
60     return this.generic;
61   }
62
63   /**
64    *
65    */

66   public void setOperator(String JavaDoc operator)
67   {
68     this.operator = operator;
69   }
70
71   /**
72    *
73    */

74   public String JavaDoc 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 JavaDoc();
102     this.bindingVector.add(template);
103   }
104
105   /**
106    *
107    */

108   public void setBindingTemplateVector(Vector JavaDoc templates)
109   {
110     this.bindingVector = templates;
111   }
112
113   /**
114    *
115    */

116   public Vector JavaDoc getBindingTemplateVector()
117   {
118     return this.bindingVector;
119   }
120 }
Popular Tags