Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
PolicyReader |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright (c) 2009, Swiss Federal Department of Defence Civil Protection and Sport | |
3 | * (http://www.vbs.admin.ch) | |
4 | * Copyright (c) 2009, Ergon Informatik AG (http://www.ergon.ch) | |
5 | * All rights reserved. | |
6 | * | |
7 | * Licensed under the Open Permis License which accompanies this distribution, | |
8 | * and is available at http://www.openpermis.org/BSDlicenceKent.txt | |
9 | */ | |
10 | package org.openpermis.policy.io; | |
11 | ||
12 | import org.openpermis.policy.Policy; | |
13 | ||
14 | /** | |
15 | * Reader interface for policies. | |
16 | * @since 0.1.0 | |
17 | */ | |
18 | public interface PolicyReader { | |
19 | ||
20 | //---- Methods | |
21 | ||
22 | /** | |
23 | * Reads a policy. | |
24 | * @return the policy read. | |
25 | * @throws PolicyException if there is an error reading the policy. | |
26 | * @since 0.1.0 | |
27 | */ | |
28 | public Policy readPolicy () throws PolicyException; | |
29 | ||
30 | } |