KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > juddi > datatype > subscription > CoveragePeriod


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.subscription;
17
18 import java.util.Date JavaDoc;
19
20 import org.apache.juddi.datatype.RegistryObject;
21
22 /**
23  * Example:
24  *
25  * <coveragePeriod>
26  * <startPoint>20020727T00:00:00</startPoint>
27  * <endPoint>20020728T00:00:00</endPoint>
28  * </coveragePeriod>
29  *
30  * @author Steve Viens (sviens@apache.org)
31  */

32 public class CoveragePeriod implements RegistryObject
33 {
34   Date JavaDoc startPoint;
35   Date JavaDoc endPoint;
36
37   /**
38    * default constructor
39    */

40   public CoveragePeriod()
41   {
42   }
43
44   /**
45    * constructor
46    */

47   public CoveragePeriod(Date JavaDoc startPoint,Date JavaDoc endPoint)
48   {
49   }
50
51   /**
52    * @return Returns the endPoint.
53    */

54   public Date JavaDoc getEndPoint()
55   {
56     return endPoint;
57   }
58
59   /**
60    * @param endPoint The endPoint to set.
61    */

62   public void setEndPoint(Date JavaDoc endPoint)
63   {
64     this.endPoint = endPoint;
65   }
66
67   /**
68    * @return Returns the startPoint.
69    */

70   public Date JavaDoc getStartPoint()
71   {
72     return startPoint;
73   }
74
75   /**
76    * @param startPoint The startPoint to set.
77    */

78   public void setStartPoint(Date JavaDoc startPoint)
79   {
80     this.startPoint = startPoint;
81   }
82 }
Popular Tags