org.kuali.rice.krms.impl.repository
Class TranslationUtility
java.lang.Object
org.kuali.rice.krms.impl.repository.TranslationUtility
- All Implemented Interfaces:
- TranslateBusinessMethods
public class TranslationUtility
- extends Object
- implements TranslateBusinessMethods
- Author:
- nwright
Method Summary |
protected Map<String,Object> |
buildCompoundPropositionContextMap(String naturalLanguageUsageId,
PropositionDefinition proposition,
String languageCode)
|
protected Map<String,Object> |
buildSimplePropositionContextMap(PropositionDefinition proposition)
|
protected NaturalLanguageTemplate |
getNaturalLanguageTemplateForProposition(String naturalLanguageUsageId,
PropositionDefinition proposition,
String languageCode)
|
RuleManagementService |
getRuleManagementService()
|
NaturalLanguageTemplaterContract |
getTemplater()
|
void |
setRuleManagementService(RuleManagementService ruleManagementService)
|
void |
setTemplater(NaturalLanguageTemplaterContract templater)
|
protected String |
translateNaturalLanguageForAgenda(String naturalLanguageUsageId,
AgendaDefinition agenda,
String languageCode)
|
protected String |
translateNaturalLanguageForAgendaItem(String naturalLanguageUsageId,
AgendaItemDefinition item,
String languageCode)
|
String |
translateNaturalLanguageForObject(String naturalLanguageUsageId,
String typeId,
String krmsObjectId,
String languageCode)
|
String |
translateNaturalLanguageForProposition(String naturalLanguageUsageId,
PropositionDefinition proposition,
String languageCode)
|
protected String |
translateNaturalLanguageForRule(String naturalLanguageUsageId,
RuleDefinition rule,
String languageCode)
|
NaturalLanguageTree |
translateNaturalLanguageTreeForProposition(String naturalLanguageUsageId,
PropositionDefinition proposition,
String languageCode)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TranslationUtility
public TranslationUtility(RuleManagementService ruleManagementService,
TermRepositoryService termRepositoryService,
NaturalLanguageTemplaterContract templater)
getRuleManagementService
public RuleManagementService getRuleManagementService()
setRuleManagementService
public void setRuleManagementService(RuleManagementService ruleManagementService)
getTemplater
public NaturalLanguageTemplaterContract getTemplater()
setTemplater
public void setTemplater(NaturalLanguageTemplaterContract templater)
translateNaturalLanguageForObject
public String translateNaturalLanguageForObject(String naturalLanguageUsageId,
String typeId,
String krmsObjectId,
String languageCode)
throws RiceIllegalArgumentException
- Specified by:
translateNaturalLanguageForObject
in interface TranslateBusinessMethods
- Throws:
RiceIllegalArgumentException
translateNaturalLanguageForAgenda
protected String translateNaturalLanguageForAgenda(String naturalLanguageUsageId,
AgendaDefinition agenda,
String languageCode)
throws RiceIllegalArgumentException
- Throws:
RiceIllegalArgumentException
translateNaturalLanguageForAgendaItem
protected String translateNaturalLanguageForAgendaItem(String naturalLanguageUsageId,
AgendaItemDefinition item,
String languageCode)
translateNaturalLanguageForRule
protected String translateNaturalLanguageForRule(String naturalLanguageUsageId,
RuleDefinition rule,
String languageCode)
throws RiceIllegalArgumentException
- Throws:
RiceIllegalArgumentException
translateNaturalLanguageForProposition
public String translateNaturalLanguageForProposition(String naturalLanguageUsageId,
PropositionDefinition proposition,
String languageCode)
throws RiceIllegalArgumentException
- Specified by:
translateNaturalLanguageForProposition
in interface TranslateBusinessMethods
- Throws:
RiceIllegalArgumentException
translateNaturalLanguageTreeForProposition
public NaturalLanguageTree translateNaturalLanguageTreeForProposition(String naturalLanguageUsageId,
PropositionDefinition proposition,
String languageCode)
throws RiceIllegalArgumentException
- Specified by:
translateNaturalLanguageTreeForProposition
in interface TranslateBusinessMethods
- Throws:
RiceIllegalArgumentException
getNaturalLanguageTemplateForProposition
protected NaturalLanguageTemplate getNaturalLanguageTemplateForProposition(String naturalLanguageUsageId,
PropositionDefinition proposition,
String languageCode)
buildSimplePropositionContextMap
protected Map<String,Object> buildSimplePropositionContextMap(PropositionDefinition proposition)
buildCompoundPropositionContextMap
protected Map<String,Object> buildCompoundPropositionContextMap(String naturalLanguageUsageId,
PropositionDefinition proposition,
String languageCode)
Copyright © 2005–2014 The Kuali Foundation. All rights reserved.