KickJava   Java API By Example, From Geeks To Geeks.

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


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.Name;
21 import org.apache.juddi.datatype.RegistryObject;
22
23 /**
24  * @author Steve Viens (sviens@apache.org)
25  */

26 public class ServiceInfo implements RegistryObject
27 {
28   String JavaDoc businessKey;
29   String JavaDoc serviceKey;
30   Vector JavaDoc nameVector;
31
32   /**
33    * default constructor
34    */

35   public ServiceInfo()
36   {
37   }
38
39   /**
40    *
41    */

42   public ServiceInfo(String JavaDoc bizKey,String JavaDoc servKey)
43   {
44     this.businessKey = bizKey;
45     this.serviceKey = servKey;
46   }
47
48   /**
49    *
50    */

51   public void setServiceKey(String JavaDoc key)
52   {
53     this.serviceKey = key;
54   }
55
56   /**
57    *
58    */

59   public String JavaDoc getServiceKey()
60   {
61     return serviceKey;
62   }
63
64   /**
65    *
66    */

67   public void setBusinessKey(String JavaDoc key)
68   {
69     this.businessKey = key;
70   }
71
72   /**
73    *
74    */

75   public String JavaDoc getBusinessKey()
76   {
77     return businessKey;
78   }
79
80   /**
81    *
82    */

83   public void addName(Name name)
84   {
85     if (this.nameVector == null)
86       this.nameVector = new Vector JavaDoc();
87     this.nameVector.add(name);
88   }
89
90   /**
91    *
92    */

93   public void setNameVector(Vector JavaDoc names)
94   {
95     this.nameVector = names;
96   }
97
98   /**
99    *
100    */

101   public Vector JavaDoc getNameVector()
102   {
103     return this.nameVector;
104   }
105 }
106
Popular Tags