KickJava   Java API By Example, From Geeks To Geeks.

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


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.BusinessKey;
21 import org.apache.juddi.datatype.RegistryObject;
22
23 /**
24  * "Used to delete registered businessEntity information from the registry."
25  *
26  * @author Steve Viens (sviens@apache.org)
27  */

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

37   public DeleteBusiness()
38   {
39   }
40
41   /**
42    *
43    */

44   public DeleteBusiness(AuthInfo authInfo, String JavaDoc businessKey)
45   {
46     this.authInfo = authInfo;
47     addBusinessKey(businessKey);
48   }
49
50   /**
51    *
52    */

53   public DeleteBusiness(AuthInfo authInfo,Vector JavaDoc businessKeys)
54   {
55     this.authInfo = authInfo;
56     this.businessKeyVector = businessKeys;
57   }
58
59   /**
60    *
61    * @param genericValue
62    */

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

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

80   public void addBusinessKey(BusinessKey businessKey)
81   {
82     if ((businessKey != null) && (businessKey.getValue() != null))
83       this.addBusinessKey(businessKey.getValue());
84   }
85
86   /**
87    *
88    */

89   public void addBusinessKey(String JavaDoc businessKey)
90   {
91     if (this.businessKeyVector == null)
92       this.businessKeyVector = new Vector JavaDoc();
93     this.businessKeyVector.add(businessKey);
94   }
95
96   /**
97    *
98    */

99   public void setBusinessKeyVector(Vector JavaDoc businessKeys)
100   {
101     this.businessKeyVector = businessKeys;
102   }
103
104   /**
105    *
106    */

107   public Vector JavaDoc getBusinessKeyVector()
108   {
109     return this.businessKeyVector;
110   }
111
112   /**
113    *
114    */

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

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