KickJava   Java API By Example, From Geeks To Geeks.

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


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 org.apache.juddi.datatype.RegistryObject;
19 import org.apache.juddi.datatype.subscription.CoveragePeriod;
20 import org.apache.juddi.datatype.subscription.KeyBag;
21 import org.apache.juddi.datatype.subscription.Subscription;
22
23 /**
24  * Example:
25  *
26  * <subscriptionResultsList>
27  * <coveragePeriod>
28  * <startPoint>20020727T00:00:00</startPoint>
29  * <endPoint>20020728T00:00:00</endPoint>
30  * </coveragePeriod>
31  * <subscription brief="true">
32  * <subscriptionFilter>
33  * <find_service xmlns="urn:uddi-org:api_v3" >
34  * <categoryBag>
35  * <keyedReference
36  * tModeKey="uddi:ubr.uddi.org: taxonomy:unspsc"
37  * keyName="Beer"
38  * keyValue="50.20.20.02.00"/>
39  * </categoryBag>
40  * </find_service>
41  * </subscriptionFilter>
42  * <bindingKey>
43  * BindingKey of the subscribers NotifySubscriptionListener service
44  * </bindingKey>
45  * <notificationInterval>P1D</notificationInterval>
46  * <maxEntities>1000</maxEntities>
47  * <expiresAfter>20030101T00:00:00</expiresAfter>
48  * </subscription>
49  * <keyBag>
50  * <deleted>false</deleted>
51  * <serviceKey>uddi:BeerSupplies.com:maltSelectionService</serviceKey>
52  * <serviceKey>uddi:Containers.com:kegs:orderingService</serviceKey>
53  * </keyBag>
54  * </subscriptionResultsList>
55  *
56  * @author Steve Viens (sviens@apache.org)
57  */

58 public class SubscriptionResultsList implements RegistryObject
59 {
60   String JavaDoc generic;
61   String JavaDoc operator;
62
63   CoveragePeriod coveragePeriod;
64   Subscription subscription;
65   KeyBag keyBag;
66
67   /**
68    * default constructor
69    */

70   public SubscriptionResultsList()
71   {
72   }
73
74   /**
75    *
76    * @param genericValue
77    */

78   public void setGeneric(String JavaDoc genericValue)
79   {
80     this.generic = genericValue;
81   }
82
83   /**
84    *
85    * @return String UDDI generic value.
86    */

87   public String JavaDoc getGeneric()
88   {
89     return this.generic;
90   }
91
92   /**
93    *
94    */

95   public void setOperator(String JavaDoc operator)
96   {
97     this.operator = operator;
98   }
99
100   /**
101    *
102    */

103   public String JavaDoc getOperator()
104   {
105     return this.operator;
106   }
107
108   /**
109    * @return Returns the coveragePeriod.
110    */

111   public CoveragePeriod getCoveragePeriod()
112   {
113     return coveragePeriod;
114   }
115
116   /**
117    * @param coveragePeriod The coveragePeriod to set.
118    */

119   public void setCoveragePeriod(CoveragePeriod coveragePeriod)
120   {
121     this.coveragePeriod = coveragePeriod;
122   }
123
124   /**
125    * @return Returns the keyBag.
126    */

127   public KeyBag getKeyBag()
128   {
129     return keyBag;
130   }
131
132   /**
133    * @param keyBag The keyBag to set.
134    */

135   public void setKeyBag(KeyBag keyBag)
136   {
137     this.keyBag = keyBag;
138   }
139
140   /**
141    * @return Returns the subscription.
142    */

143   public Subscription getSubscription()
144   {
145     return subscription;
146   }
147
148   /**
149    * @param subscription The subscription to set.
150    */

151   public void setSubscription(Subscription subscription)
152   {
153     this.subscription = subscription;
154   }
155 }
Popular Tags