public abstract class AbstractTranslationContext extends Object implements TranslationContext
Modifier and Type | Field and Description |
---|---|
protected static String |
FIELDS_TOKEN
These common shared tokens are needed since velocity doesn't
allow periods in tokens.
|
Constructor and Description |
---|
AbstractTranslationContext() |
protected static final String FIELDS_TOKEN
These common shared tokens are needed since velocity doesn't allow periods in tokens.
E.g. kuali.reqComponent.field.type.totalCredits must either be convert to totalCredits or reqCompFieldType_totalCredits so a template would look like:
'Student must take $totalCredits of MATH 100'
or'Student must take $reqCompFieldType_totalCredits of MATH 100'
public AbstractTranslationContext()
public Map<String,Object> createContextMap(Map<String,Object> parameters)
createContextMap
in interface TranslationContext
parameters
- org.kuali.student.r2.common.exceptions.DoesNotExistException
- If CLU, CluSet or relation does not existCopyright © 2005–2015 The Kuali Foundation. All rights reserved.