KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > juddi > datatype > TModelKey


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;
17
18 /**
19  * Used in BusinessEntity as the Name of the BusinessEntity, in BusinessService
20  * as the name of the BusinessService and in TModel as the name of the TModel.
21  *
22  * @author Steve Viens (sviens@apache.org)
23  */

24 public class TModelKey implements RegistryObject
25 {
26   String JavaDoc keyValue;
27
28   /**
29    * Construct a new initialized name instance.
30    */

31   public TModelKey()
32   {
33   }
34
35   /**
36    * Construct a new name with a given name.
37    *
38    * @param keyValue The name of the new name-object.
39    */

40   public TModelKey(String JavaDoc keyValue)
41   {
42     setValue(keyValue);
43   }
44
45   /**
46    * Sets the name of this name-object to the new given name.
47    *
48    * @param newValue The new name for this name-object.
49    */

50   public void setValue(String JavaDoc newValue)
51   {
52     this.keyValue = newValue;
53   }
54
55   /**
56    * Returns the name of this name-object.
57    *
58    * @return The name of this name-object.
59    */

60   public String JavaDoc getValue()
61   {
62     return this.keyValue;
63   }
64 }
Popular Tags