Coverage Report - org.openpermis.policy.io.PolicyWriter
 
Classes in this File Line Coverage Branch Coverage Complexity
PolicyWriter
N/A
N/A
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.bean.PolicyBean;
 13  
 
 14  
 /**
 15  
  * Writer interface for policies.
 16  
  * @since 0.1.0
 17  
  */
 18  
 public interface PolicyWriter {
 19  
 
 20  
         //---- Methods
 21  
 
 22  
         /**
 23  
          * Writes the specified policy.
 24  
          * @param policy the policy to write.
 25  
          * @throws PolicyException if there is an error writing the policy.
 26  
          * @since 0.1.0
 27  
          */
 28  
         public void writePolicy (PolicyBean policy) throws PolicyException;
 29  
 
 30  
 }