Coverage Report - org.openpermis.policy.predicate.Value
 
Classes in this File Line Coverage Branch Coverage Complexity
Value
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.predicate;
 11  
 
 12  
 import java.util.Map;
 13  
 
 14  
 import org.openpermis.policy.TimeStamp;
 15  
 
 16  
 
 17  
 /**
 18  
  * A value can be evaluated.
 19  
  * @param <T> value type.
 20  
  * @since 0.1.0
 21  
  */
 22  
 public interface Value<T> {
 23  
         
 24  
         //---- Methods
 25  
         
 26  
         /**
 27  
          * @since 0.1.0
 28  
          */
 29  
         Class<?> getType ();
 30  
         
 31  
         /**
 32  
          * Returns the enclosed value.
 33  
          * @since 0.1.0
 34  
          */
 35  
         T valueOf (TimeStamp timeStamp, Map<String, ?> arguments);
 36  
         
 37  
         /**
 38  
          * @since 0.3.0
 39  
          */
 40  
         boolean isMatchable (Map<String, Class<?>> arguments);
 41  
 
 42  
 }