org.kuali.rice.krms.impl.repository.language
Interface NaturalLanguageTranslator


public interface NaturalLanguageTranslator

This class translates requirement components and statements into natural language.


Method Summary
 String translateProposition(PropositionDefinitionContract proposition, String nlUsageTypeKey)
          Translates a requirement component for a specific natural language usuage type (context) into natural language.
 String translateProposition(PropositionDefinitionContract proposition, String nlUsageTypeKey, String language)
          Translates a requirement component for a specific natural language usuage type (context) and language locale (e.g.
 

Method Detail

translateProposition

String translateProposition(PropositionDefinitionContract proposition,
                            String nlUsageTypeKey)
                            throws RiceIllegalStateException
Translates a requirement component for a specific natural language usuage type (context) into natural language.

Parameters:
proposition - Proposition to be translated
nlUsageTypeKey - Natural language usage type key (context)
Returns:
Natural language requirement translation
Throws:
org.kuali.student.r2.common.exceptions.DoesNotExistException - Requirement component id does not exists
org.kuali.student.r2.common.exceptions.OperationFailedException
RiceIllegalStateException

translateProposition

String translateProposition(PropositionDefinitionContract proposition,
                            String nlUsageTypeKey,
                            String language)
                            throws RiceIllegalStateException
Translates a requirement component for a specific natural language usuage type (context) and language locale (e.g. 'en' for English, 'de' for German) into natural language.

Parameters:
proposition - Proposition to be translated
nlUsageTypeKey - Natural language usage type key (context)
language - Translation language
Returns:
Throws:
org.kuali.student.r2.common.exceptions.DoesNotExistException
org.kuali.student.r2.common.exceptions.OperationFailedException
RiceIllegalStateException


Copyright © 2005–2014 The Kuali Foundation. All rights reserved.