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 String |
calcCompoundNaturalLanguageTypeId(String compoundOpCode)
|
RuleManagementService |
getRuleManagementService()
|
NaturalLanguageTemplaterContract |
getTemplater()
|
void |
setRuleManagementService(RuleManagementService ruleManagementService)
|
void |
setTemplater(NaturalLanguageTemplaterContract templater)
|
protected String |
translateCompoundProposition(PropositionDefinition proposition,
String naturalLanguageUsageId,
String languageCode)
|
String |
translateNaturalLanguageForObject(String naturalLanguageUsageId,
String typeId,
String krmsObjectId,
String languageCode)
|
String |
translateNaturalLanguageForProposition(String naturalLanguageUsageId,
PropositionDefinition proposition,
String languageCode)
|
NaturalLanguageTree |
translateNaturalLanguageTreeForProposition(String naturalLanguageUsageId,
PropositionDefinition proposition,
String languageCode)
|
protected String |
translateSimpleProposition(NaturalLanguageTemplate naturalLanguageTemplate,
PropositionDefinition proposition)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
COMPOUND_COMPONENTS
public static final String COMPOUND_COMPONENTS
- See Also:
- Constant Field Values
TranslationUtility
public TranslationUtility(RuleManagementService ruleManagementService,
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
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
buildSimplePropositionContextMap
protected Map<String,Object> buildSimplePropositionContextMap(PropositionDefinition proposition)
buildCompoundPropositionContextMap
protected Map<String,Object> buildCompoundPropositionContextMap(String naturalLanguageUsageId,
PropositionDefinition proposition,
String languageCode)
translateCompoundProposition
protected String translateCompoundProposition(PropositionDefinition proposition,
String naturalLanguageUsageId,
String languageCode)
throws RiceIllegalArgumentException
- Throws:
RiceIllegalArgumentException
calcCompoundNaturalLanguageTypeId
protected String calcCompoundNaturalLanguageTypeId(String compoundOpCode)
throws RiceIllegalArgumentException
- Throws:
RiceIllegalArgumentException
translateSimpleProposition
protected String translateSimpleProposition(NaturalLanguageTemplate naturalLanguageTemplate,
PropositionDefinition proposition)
throws RiceIllegalArgumentException
- Throws:
RiceIllegalArgumentException
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.