1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.juddi.datatype.request;
17
18 import java.util.Vector;
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 generic;
38 AuthInfo authInfo;
39 Vector tModelKeyVector;
40
41 /***
42 *
43 */
44 public DeleteTModel()
45 {
46 }
47
48 /***
49 *
50 */
51 public DeleteTModel(AuthInfo authInfo,String tModelKey)
52 {
53 setAuthInfo(authInfo);
54 addTModelKey(tModelKey);
55 }
56
57 /***
58 *
59 */
60 public DeleteTModel(AuthInfo authInfo,Vector 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 genericValue)
80 {
81 this.generic = genericValue;
82 }
83
84 /***
85 *
86 * @return String UDDI request's generic value.
87 */
88 public String getGeneric()
89 {
90 return this.generic;
91 }
92
93 /***
94 *
95 */
96 public void addTModelKey(String tModelKey)
97 {
98 if (this.tModelKeyVector == null)
99 this.tModelKeyVector = new Vector();
100 this.tModelKeyVector.add(tModelKey);
101 }
102
103 /***
104 *
105 */
106 public void setTModelKeyVector(Vector tModelKeys)
107 {
108 this.tModelKeyVector = tModelKeys;
109 }
110
111 /***
112 *
113 */
114 public Vector 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 }