KickJava   Java API By Example, From Geeks To Geeks.

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


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.subscription.Subscription;
22
23 /**
24  * @author Steve Viens (sviens@apache.org)
25  */

26 public class Subscriptions implements RegistryObject
27 {
28   String JavaDoc generic;
29   String JavaDoc operator;
30   Vector JavaDoc subscriptionVector;
31
32   /**
33    * default constructor
34    */

35   public Subscriptions()
36   {
37   }
38
39   /**
40    *
41    * @param genericValue
42    */

43   public void setGeneric(String JavaDoc genericValue)
44   {
45     this.generic = genericValue;
46   }
47
48   /**
49    *
50    * @return String UDDI generic value.
51    */

52   public String JavaDoc getGeneric()
53   {
54     return this.generic;
55   }
56
57   /**
58    *
59    */

60   public void setOperator(String JavaDoc operator)
61   {
62     this.operator = operator;
63   }
64
65   /**
66    *
67    */

68   public String JavaDoc getOperator()
69   {
70      return this.operator;
71   }
72
73   /**
74    *
75    */

76   public void addSubscription(Subscription subscription)
77   {
78     if (this.subscriptionVector == null)
79       this.subscriptionVector = new Vector JavaDoc();
80     this.subscriptionVector.add(subscription);
81   }
82
83   /**
84    *
85    */

86   public void setSubscriptionVector(Vector JavaDoc subscriptions)
87   {
88     this.subscriptionVector = subscriptions;
89   }
90
91   /**
92    *
93    */

94   public Vector JavaDoc getSubscriptionVector()
95   {
96     return subscriptionVector;
97   }
98 }
Popular Tags