KickJava   Java API By Example, From Geeks To Geeks.

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


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.BindingKey;
21 import org.apache.juddi.datatype.RegistryObject;
22
23 /**
24  * "Used to remove an existing bindingTemplate from the bindingTemplates
25  * collection that is part of a specified businessService structure."
26  *
27  * @author Steve Viens (sviens@apache.org)
28  */

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

38   public DeleteBinding()
39   {
40   }
41
42   /**
43    *
44    */

45   public DeleteBinding(AuthInfo authInfo,String JavaDoc bindingKey)
46   {
47     this.authInfo = authInfo;
48     addBindingKey(bindingKey);
49   }
50
51   /**
52    *
53    */

54   public DeleteBinding(AuthInfo authInfo,Vector JavaDoc bindingKeys)
55   {
56     this.authInfo = authInfo;
57     setBindingKeyVector(bindingKeys);
58   }
59
60   /**
61    *
62    * @param genericValue
63    */

64   public void setGeneric(String JavaDoc genericValue)
65   {
66     this.generic = genericValue;
67   }
68
69   /**
70    *
71    * @return String UDDI request's generic value.
72    */

73   public String JavaDoc getGeneric()
74   {
75     return this.generic;
76   }
77
78   /**
79    *
80    */

81   public void addBindingKey(BindingKey bindingKey)
82   {
83     if ((bindingKey != null) && (bindingKey.getValue() != null))
84       this.addBindingKey(bindingKey.getValue());
85   }
86
87   /**
88    *
89    */

90   public void addBindingKey(String JavaDoc bindingKey)
91   {
92     if (this.bindingKeyVector == null)
93       this.bindingKeyVector = new Vector JavaDoc();
94     this.bindingKeyVector.add(bindingKey);
95   }
96
97   /**
98    *
99    */

100   public void setBindingKeyVector(Vector JavaDoc bindingKeys)
101   {
102     this.bindingKeyVector = bindingKeys;
103   }
104
105   /**
106    *
107    */

108   public Vector JavaDoc getBindingKeyVector()
109   {
110     return this.bindingKeyVector;
111   }
112
113   /**
114    *
115    */

116   public void setAuthInfo(AuthInfo authInfo)
117   {
118     this.authInfo = authInfo;
119   }
120
121   /**
122    *
123    */

124   public AuthInfo getAuthInfo()
125   {
126     return this.authInfo;
127   }
128 }
Popular Tags