Coverage Report - org.kuali.rice.krms.api.engine.TermResolutionEngine
 
Classes in this File Line Coverage Branch Coverage Complexity
TermResolutionEngine
N/A
N/A
1
 
 1  
 package org.kuali.rice.krms.api.engine;
 2  
 
 3  
 /**
 4  
  * Interface for the engine that is used to resolve {@link Term}s.
 5  
  * 
 6  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 7  
  *
 8  
  */
 9  
 public interface TermResolutionEngine {
 10  
 
 11  
         /**
 12  
          * Resolves a given term into a fact
 13  
          * @param term the {@link Term} to resolve
 14  
          * @return the fact value for the given {@link Term}
 15  
          * @throws TermResolutionException if the given {@link Term} can't be resolved
 16  
          */
 17  
         <T> T resolveTerm(Term term) throws TermResolutionException;
 18  
         
 19  
         /**
 20  
          * Adds a fact value to the {@link TermResolutionEngine}'s internal state
 21  
          * @param term the named Term
 22  
          * @param value the fact value
 23  
          */
 24  
         void addTermValue(Term term, Object value);
 25  
         
 26  
         /**
 27  
          * Adds a {@link TermResolver} to the {@link TermResolutionEngine}.  Once added, it may
 28  
          * be used (unsurprisingly) by the engine to resolve {@link Term}s.
 29  
          * @param termResolver the {@link TermResolver} to add.
 30  
          */
 31  
         void addTermResolver(TermResolver<?> termResolver);
 32  
         
 33  
 }