View Javadoc

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;
19  
20  import org.apache.juddi.datatype.RegistryObject;
21  import org.apache.juddi.datatype.TModelKey;
22  
23  /***
24   * "Used to get full details for a given set of registered tModel
25   *  data. Returns a tModelDetail message."
26   *
27   * @author Steve Viens (sviens@apache.org)
28   */
29  public class GetTModelDetail implements RegistryObject,Inquiry
30  {
31    String generic;
32    Vector tModelKeyVector;
33  
34    /***
35     * default constructor
36     */
37    public GetTModelDetail()
38    {
39    }
40  
41    /***
42     *
43     * @param genericValue
44     */
45    public void setGeneric(String genericValue)
46    {
47      this.generic = genericValue;
48    }
49  
50    /***
51     *
52     * @return String UDDI request's generic value.
53     */
54    public String getGeneric()
55    {
56      return this.generic;
57    }
58  
59    /***
60     *
61     */
62    public Vector getTModelKeyVector()
63    {
64      return this.tModelKeyVector;
65    }
66  
67    /***
68     * Add a TModelKey to the collection of TModelKeys
69     *
70     * @param key The new TModelKey to add
71     */
72    public void addTModelKey(TModelKey key)
73    {
74      if ((key != null) && (key.getValue() != null))
75        addTModelKey(key.getValue());
76    }
77  
78    /***
79     * Add a ServiceKey to the collection of ServiceKeys
80     *
81     * @param key The new ServiceKey to add to the collection of ServiceKeys
82     */
83    public void addTModelKey(String key)
84    {
85      if (tModelKeyVector == null)
86        tModelKeyVector = new Vector();
87      tModelKeyVector.add(key);
88    }
89  
90    /***
91     * Sets the TModelKey Vector
92     *
93     * @param keys The new collection of TModelKeys
94     */
95    public void setTModelKeyVector(Vector keys)
96    {
97      this.tModelKeyVector = keys;
98    }
99  }