org.kuali.rice.krms.api.engine
Interface TermResolutionEngine

All Known Implementing Classes:
TermResolutionEngineImpl

public interface TermResolutionEngine

Interface for the engine that is used to resolve Terms.

Author:
Kuali Rice Team (rice.collab@kuali.org)

Method Summary
 void addTermResolver(TermResolver<?> termResolver)
          Adds a TermResolver to the TermResolutionEngine.
 void addTermValue(Term term, Object value)
          Adds a fact value to the TermResolutionEngine's internal state
<T> T
resolveTerm(Term term)
          Resolves a given term into a fact
 

Method Detail

resolveTerm

<T> T resolveTerm(Term term)
              throws TermResolutionException
Resolves a given term into a fact

Parameters:
term - the Term to resolve
Returns:
the fact value for the given Term
Throws:
{@link - TermResolutionException} if the given Term can't be resolved
TermResolutionException

addTermValue

void addTermValue(Term term,
                  Object value)
Adds a fact value to the TermResolutionEngine's internal state

Parameters:
term - the named Term
value - the fact value

addTermResolver

void addTermResolver(TermResolver<?> termResolver)
Adds a TermResolver to the TermResolutionEngine. Once added, it may be used (unsurprisingly) by the engine to resolve Terms.

Parameters:
termResolver - the TermResolver to add.


Copyright © 2005-2013 The Kuali Foundation. All Rights Reserved.