org.kuali.rice.krms.impl.repository.language
Class PropositionNaturalLanguageTemplater

java.lang.Object
  extended by org.kuali.rice.krms.impl.repository.language.PropositionNaturalLanguageTemplater
All Implemented Interfaces:
NaturalLanguageTemplaterContract

public class PropositionNaturalLanguageTemplater
extends Object
implements NaturalLanguageTemplaterContract

This class translates requirement components into a specific natural language. This class is not thread safe.


Field Summary
static String CONSTANT_VALUE_TOKEN
          An integer value token.
static String OPERATOR_TOKEN
          Relational operator token.
 
Constructor Summary
PropositionNaturalLanguageTemplater()
          Constructs a new proposition natural language templater.
 
Method Summary
 void setContextRegistry(ContextRegistry<Context> contextRegistry)
          Sets the template context registry.
 void setKrmsTypeRepositoryService(KrmsTypeRepositoryService krmsTypeRepositoryService)
           
 String translate(NaturalLanguageTemplate naturalLanguageTemplate, Map<String,Object> parametersMap)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

OPERATOR_TOKEN

public static final String OPERATOR_TOKEN
Relational operator token.

See Also:
Constant Field Values

CONSTANT_VALUE_TOKEN

public static final String CONSTANT_VALUE_TOKEN
An integer value token.

See Also:
Constant Field Values
Constructor Detail

PropositionNaturalLanguageTemplater

public PropositionNaturalLanguageTemplater()
Constructs a new proposition natural language templater.

Method Detail

setContextRegistry

public void setContextRegistry(ContextRegistry<Context> contextRegistry)
Sets the template context registry.

Parameters:
contextRegistry - Template context registry

translate

public String translate(NaturalLanguageTemplate naturalLanguageTemplate,
                        Map<String,Object> parametersMap)
Specified by:
translate in interface NaturalLanguageTemplaterContract

setKrmsTypeRepositoryService

public void setKrmsTypeRepositoryService(KrmsTypeRepositoryService krmsTypeRepositoryService)


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