KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > juddi > datatype > response > TModelDetail


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.response;
17
18 import java.util.Vector JavaDoc;
19
20 import org.apache.juddi.datatype.RegistryObject;
21 import org.apache.juddi.datatype.tmodel.TModel;
22
23 /**
24  * "This structure contains full details for zero or more tModel structures.
25  * It is returned in response to a get_tModelDetail message, and optionally
26  * in response to the save_tModel message."
27  *
28  * @author Steve Viens (sviens@apache.org)
29  */

30 public class TModelDetail implements RegistryObject
31 {
32   // "Because tModel structures are top-level data. the authorized name value is
33
// expressed. This is the name of the person whose account was used to register
34
// the data. The two expressions of the operator attribute each express the
35
// distinguished name of the Operator Site that is providing the data and
36
// the operator where the data is managed. (publishing operator in the tModel
37
// + operator in the ResponseMessage base class).
38

39   String JavaDoc generic;
40   String JavaDoc operator;
41   boolean truncated;
42   Vector JavaDoc tModelVector;
43
44   /**
45    * default constructor
46    */

47   public TModelDetail()
48   {
49   }
50
51   /**
52    *
53    * @param genericValue
54    */

55   public void setGeneric(String JavaDoc genericValue)
56   {
57     this.generic = genericValue;
58   }
59
60   /**
61    *
62    * @return String UDDI generic value.
63    */

64   public String JavaDoc getGeneric()
65   {
66     return this.generic;
67   }
68
69   /**
70    *
71    */

72   public void setOperator(String JavaDoc operator)
73   {
74     this.operator = operator;
75   }
76
77   /**
78    *
79    */

80   public String JavaDoc getOperator()
81   {
82      return this.operator;
83   }
84
85   /**
86    *
87    */

88   public boolean isTruncated()
89   {
90     return this.truncated;
91   }
92
93   /**
94    *
95    */

96   public void setTruncated(boolean val)
97   {
98     this.truncated = val;
99   }
100
101   /**
102    *
103    */

104   public void addTModel(TModel tModel)
105   {
106     if (this.tModelVector == null)
107       this.tModelVector = new Vector JavaDoc();
108     this.tModelVector.add(tModel);
109   }
110
111   /**
112    *
113    */

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

122   public void setTModelVector(Vector JavaDoc tModels)
123   {
124     this.tModelVector = tModels;
125   }
126 }
Popular Tags