KickJava   Java API By Example, From Geeks To Geeks.

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


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.binding.BindingTemplate;
22
23 /**
24  * "Used to register new bindingTemplate information or update existing
25  * bindingTemplate information. Use this to control information about
26  * technical capabilities exposed by a registered business."
27  *
28  * @author Steve Viens (sviens@apache.org)
29  */

30 public class SaveBinding implements RegistryObject,Publish
31 {
32   String JavaDoc generic;
33   AuthInfo authInfo;
34   Vector JavaDoc bindingTemplateVector;
35
36   /**
37    *
38    */

39   public SaveBinding()
40   {
41   }
42
43   /**
44    *
45    */

46   public SaveBinding(AuthInfo authInfo,Vector JavaDoc bindingTemplates)
47   {
48     this.authInfo = authInfo;
49     this.bindingTemplateVector = bindingTemplates;
50   }
51
52   /**
53    *
54    * @param genericValue
55    */

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

65   public String JavaDoc getGeneric()
66   {
67     return this.generic;
68   }
69
70   /**
71    *
72    */

73   public void setAuthInfo(AuthInfo authInfo)
74   {
75     this.authInfo = authInfo;
76   }
77
78   /**
79    *
80    */

81   public AuthInfo getAuthInfo()
82   {
83     return authInfo;
84   }
85
86   /**
87    *
88    */

89   public void addBindingTemplate(BindingTemplate bindingTemplate)
90   {
91     if (this.bindingTemplateVector == null)
92       this.bindingTemplateVector = new Vector JavaDoc();
93     this.bindingTemplateVector.add(bindingTemplate);
94   }
95
96   /**
97    *
98    */

99   public void setBindingTemplateVector(Vector JavaDoc bindingTemplates)
100   {
101     this.bindingTemplateVector = bindingTemplates;
102   }
103
104   /**
105    *
106    */

107   public Vector JavaDoc getBindingTemplateVector()
108   {
109     return bindingTemplateVector;
110   }
111 }
Popular Tags