summaryrefslogtreecommitdiffstats
path: root/src/org/uic/ticket/api/spec/IValidityDetails.java
blob: 37450097801fe368931cc6d960223ed021d5bee1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
package org.uic.ticket.api.spec;

import java.util.Collection;

/**
 * The Interface IValidityDetails.
 * 
 * IValidityDetails provides a more detailed validity description:
 * 
 * 	a list of date/time ranges
 *  a list of excluded time ranges
 * 
 */
public interface IValidityDetails {
	
	
	/**
	 * Gets the validity ranges.
	 *
	 * @return the validity ranges
	 */
	public Collection<IValidityRange> getValidityRanges();
	
	/**
	 * Gets the time ranges.
	 *
	 * @return the time ranges
	 */
	public Collection<ITimeRange> getTimeRanges();	
	
	/**
	 * Adds the validity ranges.
	 *
	 * @param range the range
	 */
	public void addValidityRanges(IValidityRange range);
	
	/**
	 * Adds the time ranges.
	 *
	 * @param range the range
	 */
	public void addTimeRanges(ITimeRange range);		

}