Coverage Report - org.openpermis.policy.io.ProblemReporter
 
Classes in this File Line Coverage Branch Coverage Complexity
ProblemReporter
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  
 
 13  
 /**
 14  
  * Interface to receive non-fatal problem reports from policy reader or writer.
 15  
  * @since 0.3.0
 16  
  */
 17  
 public interface ProblemReporter {
 18  
 
 19  
         //---- Methods
 20  
         
 21  
         /**
 22  
          * Reports a non-fatal problem during import/export.
 23  
          * <p>Fatal problems during import/export are reported by throwing a {@link PolicyException},
 24  
          * this method is used to notify the user of problems encountered that could be dealt with.</p>
 25  
          * @since 0.3.0
 26  
          */
 27  
         public void reportProblem (ProblemType type, Object... parameters);
 28  
 
 29  
 }