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 setKrmsTypeRepositoryService(KrmsTypeRepositoryService krmsTypeRepositoryService)
           
 void setTranslationContextRegistry(TranslationContextRegistry<TranslationContext> translationContextRegistry)
          Sets the template context registry.
 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

setTranslationContextRegistry

public void setTranslationContextRegistry(TranslationContextRegistry<TranslationContext> translationContextRegistry)
Sets the template context registry.

Parameters:
translationContextRegistry - 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 © 2005-2013 The Kuali Foundation. All Rights Reserved.