org.kuali.rice.krms.framework.engine
Class TermResolutionEngineImpl

java.lang.Object
  extended by org.kuali.rice.krms.framework.engine.TermResolutionEngineImpl
All Implemented Interfaces:
TermResolutionEngine

public class TermResolutionEngineImpl
extends Object
implements TermResolutionEngine

An implementation of TermResolutionEngine

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

Nested Class Summary
protected static class TermResolutionEngineImpl.TermResolverKey
           
 
Constructor Summary
TermResolutionEngineImpl()
           
 
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
protected  List<TermResolutionEngineImpl.TermResolverKey> buildTermResolutionPlan(String termName)
           
<T> T
resolveTerm(Term term)
          Resolves a given term into a fact
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TermResolutionEngineImpl

public TermResolutionEngineImpl()
Method Detail

addTermValue

public void addTermValue(Term term,
                         Object value)
Description copied from interface: TermResolutionEngine
Adds a fact value to the TermResolutionEngine's internal state

Specified by:
addTermValue in interface TermResolutionEngine
Parameters:
term - the named Term
value - the fact value

addTermResolver

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

Specified by:
addTermResolver in interface TermResolutionEngine
Parameters:
termResolver - the TermResolver to add.

resolveTerm

public <T> T resolveTerm(Term term)
              throws TermResolutionException
Description copied from interface: TermResolutionEngine
Resolves a given term into a fact

Specified by:
resolveTerm in interface TermResolutionEngine
Parameters:
term - the Term to resolve
Returns:
the fact value for the given Term
Throws:
TermResolutionException

buildTermResolutionPlan

protected List<TermResolutionEngineImpl.TermResolverKey> buildTermResolutionPlan(String termName)
Parameters:
termName -
Returns:
List<TermResolutionEngineImpl.TermResolverKey>


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.