KickJava   Java API By Example, From Geeks To Geeks.

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


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.TModelKey;
22
23 /**
24  * "Used to delete registered information about a tModel. If there
25  * are any references to a tModel when this call is made, the tModel
26  * will be marked deleted instead of being physically removed."
27  *
28  * <delete_tModel generic="2.0" xmlns="urn:uddi-org:api_v2" >
29  * <authInfo/>
30  * <tModelKey/> [<tModelKey/> �]
31  * </delete_tModel>
32  *
33  * @author Steve Viens (sviens@apache.org)
34  */

35 public class DeleteTModel implements RegistryObject,Publish
36 {
37   String JavaDoc generic;
38   AuthInfo authInfo;
39   Vector JavaDoc tModelKeyVector;
40
41   /**
42    *
43    */

44   public DeleteTModel()
45   {
46   }
47
48   /**
49    *
50    */

51   public DeleteTModel(AuthInfo authInfo,String JavaDoc tModelKey)
52   {
53     setAuthInfo(authInfo);
54     addTModelKey(tModelKey);
55   }
56
57   /**
58    *
59    */

60   public DeleteTModel(AuthInfo authInfo,Vector JavaDoc tModelKeys)
61   {
62     setAuthInfo(authInfo);
63     setTModelKeyVector(tModelKeys);
64   }
65
66   /**
67    *
68    */

69   public void addTModelKey(TModelKey tModelKey)
70   {
71     if ((tModelKey != null) && (tModelKey.getValue() != null))
72       addTModelKey(tModelKey.getValue());
73   }
74
75   /**
76    *
77    * @param genericValue
78    */

79   public void setGeneric(String JavaDoc genericValue)
80   {
81     this.generic = genericValue;
82   }
83
84   /**
85    *
86    * @return String UDDI request's generic value.
87    */

88   public String JavaDoc getGeneric()
89   {
90     return this.generic;
91   }
92
93   /**
94    *
95    */

96   public void addTModelKey(String JavaDoc tModelKey)
97   {
98     if (this.tModelKeyVector == null)
99       this.tModelKeyVector = new Vector JavaDoc();
100     this.tModelKeyVector.add(tModelKey);
101   }
102
103   /**
104    *
105    */

106   public void setTModelKeyVector(Vector JavaDoc tModelKeys)
107   {
108     this.tModelKeyVector = tModelKeys;
109   }
110
111   /**
112    *
113    */

114   public Vector JavaDoc getTModelKeyVector()
115   {
116     return this.tModelKeyVector;
117   }
118
119   /**
120    *
121    */

122   public void setAuthInfo(AuthInfo authInfo)
123   {
124     this.authInfo = authInfo;
125   }
126
127   /**
128    *
129    */

130   public AuthInfo getAuthInfo()
131   {
132     return authInfo;
133   }
134 }
Popular Tags