public class KSTranslationUtility extends Object implements TranslateBusinessMethods
Constructor and Description |
---|
KSTranslationUtility(RuleManagementService ruleManagementService,
TermRepositoryService termRepositoryService,
NaturalLanguageTemplaterContract templater) |
public KSTranslationUtility(RuleManagementService ruleManagementService, TermRepositoryService termRepositoryService, NaturalLanguageTemplaterContract templater)
public RuleManagementService getRuleManagementService()
public void setRuleManagementService(RuleManagementService ruleManagementService)
public NaturalLanguageTemplaterContract getTemplater()
public void setTemplater(NaturalLanguageTemplaterContract templater)
public String translateNaturalLanguageForObject(String naturalLanguageUsageId, String typeId, String krmsObjectId, String languageCode) throws RiceIllegalArgumentException
translateNaturalLanguageForObject
in interface TranslateBusinessMethods
RiceIllegalArgumentException
protected String translateNaturalLanguageForAgenda(AgendaDefinition agenda, Map<String,NaturalLanguageTemplate> templateMap) throws RiceIllegalArgumentException
RiceIllegalArgumentException
protected String translateNaturalLanguageForAgendaItem(AgendaItemDefinition item, Map<String,NaturalLanguageTemplate> templateMap)
protected String translateNaturalLanguageForRule(RuleDefinition rule, Map<String,NaturalLanguageTemplate> templateMap) throws RiceIllegalArgumentException
RiceIllegalArgumentException
public String translateNaturalLanguageForProposition(String naturalLanguageUsageId, PropositionDefinition proposition, String languageCode) throws RiceIllegalArgumentException
translateNaturalLanguageForProposition
in interface TranslateBusinessMethods
RiceIllegalArgumentException
public NaturalLanguageTree translateNaturalLanguageTreeForProposition(String naturalLanguageUsageId, PropositionDefinition proposition, String languageCode) throws RiceIllegalArgumentException
translateNaturalLanguageTreeForProposition
in interface TranslateBusinessMethods
RiceIllegalArgumentException
public NaturalLanguageTree translateNaturalLanguageTreeForProposition(PropositionDefinition proposition, Map<String,NaturalLanguageTemplate> templateMap) throws RiceIllegalArgumentException
RiceIllegalArgumentException
protected Map<String,Object> buildSimplePropositionContextMap(PropositionDefinition proposition)
protected Map<String,Object> buildCompoundPropositionContextMap(PropositionDefinition proposition, Map<String,NaturalLanguageTemplate> templateMap)
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.