Coverage Report - org.openpermis.editor.policy.view.PolicyLoader
 
Classes in this File Line Coverage Branch Coverage Complexity
PolicyLoader
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.editor.policy.view;
 11  
 
 12  
 import java.io.File;
 13  
 
 14  
 /**
 15  
  * Loader for policies.
 16  
  * @since 0.1.0
 17  
  */
 18  
 public interface PolicyLoader {
 19  
 
 20  
         //---- Methods
 21  
 
 22  
         /**
 23  
          * Opens a file chooser to load a policy.
 24  
          * @since 0.1.0
 25  
          */
 26  
         public void loadPolicy ();
 27  
 
 28  
         /**
 29  
          * Loads the specified policy from a file.
 30  
          * @param file the file to load the policy from.
 31  
          * @since 0.1.0
 32  
          */
 33  
         public void loadPolicy (File file);
 34  
 
 35  
 }