public class ContextMockImpl extends BasicContextImpl
Modifier and Type | Field and Description |
---|---|
static String |
CLU_SET_TOKEN
cluSet token (key) references a Clu set object
used in templates. |
static String |
CLU_TOKEN
clu token (key) references a Clu object used in templates. |
static String |
COURSE_CLU_SET_TOKEN |
static String |
COURSE_CLU_TOKEN |
static String |
PROGRAM_CLU_SET_TOKEN |
static String |
PROGRAM_CLU_TOKEN |
static String |
TEST_CLU_SET_TOKEN |
static String |
TEST_CLU_TOKEN |
FREE_TEXT_TOKEN, NL_HELPER_TOKEN
FIELDS_TOKEN
Constructor and Description |
---|
ContextMockImpl() |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
createContextMap(Map<String,Object> parameters)
Creates the context map (template data) for the requirement component.
|
CluInfo |
getCluInfo(String cluId)
Gets a CLU.
|
NLCluSet |
getCluSet(Map<String,Object> parameters,
String key)
Gets a custom CLU set from a requirement component.
|
NLCluSet |
getCluSet(String cluSetId)
Gets the CLU set.
|
CluSetInfo |
getCluSetInfo(String cluSetId)
Gets a CLU set.
|
public static final String CLU_TOKEN
clu
token (key) references a Clu object used in templates.
e.g. 'Student must have completed all of
$clu.getOfficialIdentifier().getShortName()'public static final String COURSE_CLU_TOKEN
public static final String PROGRAM_CLU_TOKEN
public static final String TEST_CLU_TOKEN
public static final String CLU_SET_TOKEN
cluSet
token (key) references a Clu set object
used in templates.
e.g. 'Student must have completed all of $cluSet.getCluSetAsCode()'public static final String COURSE_CLU_SET_TOKEN
public static final String PROGRAM_CLU_SET_TOKEN
public static final String TEST_CLU_SET_TOKEN
public ContextMockImpl()
public CluInfo getCluInfo(String cluId)
cluId
- CLU idOperationFailedException
- If retrieving CLU failspublic CluSetInfo getCluSetInfo(String cluSetId)
cluSetId
- CLU set idOperationFailedException
- If retrieving CLU set failspublic NLCluSet getCluSet(String cluSetId)
cluSetId
- CLU set idOperationFailedException
- If building a custom CLU set failspublic NLCluSet getCluSet(Map<String,Object> parameters, String key)
parameters
- OperationFailedException
- If building a custom CLU set failspublic Map<String,Object> createContextMap(Map<String,Object> parameters)
createContextMap
in interface TranslationContext
createContextMap
in class BasicContextImpl
term
- Requirement componentOperationFailedException
- Creating context map failsCopyright © 2004-2013 The Kuali Foundation. All Rights Reserved.