org.kuali.student.r2.lum.statement.config.context
Class BasicContextImpl

java.lang.Object
  extended by org.kuali.student.r1.core.statement.naturallanguage.AbstractContext<ReqComponentInfo>
      extended by org.kuali.student.r2.lum.statement.config.context.BasicContextImpl
All Implemented Interfaces:
Context<ReqComponentInfo>
Direct Known Subclasses:
AtpContextImpl, CluContextImpl, GpaContextImpl, LrcContextImpl, OrganizationContextImpl, PersonContextImpl

public class BasicContextImpl
extends AbstractContext<ReqComponentInfo>


Field Summary
static String INTEGER_VALUE_TOKEN
          An integer value token.
static String NL_HELPER_TOKEN
          NLHelper token (key) references a static natural language helper class for use in templates.
static String OPERATOR_TOKEN
          Relational operator token.
 
Fields inherited from class org.kuali.student.r1.core.statement.naturallanguage.AbstractContext
FIELDS_TOKEN
 
Constructor Summary
BasicContextImpl()
          Constructor.
 
Method Summary
 Map<String,Object> createContextMap(ReqComponentInfo reqComponent, ContextInfo contextInfo)
          Creates the context map (template data) for the requirement component.
 
Methods inherited from class org.kuali.student.r1.core.statement.naturallanguage.AbstractContext
getReqComponentFieldMap, getReqComponentFieldValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NL_HELPER_TOKEN

public static final String NL_HELPER_TOKEN
NLHelper token (key) references a static natural language helper class for use in templates. e.g. '$NLHelper.getProperGrammer($intValue, "course", "courses")'

See Also:
Constant Field Values

OPERATOR_TOKEN

public static final String OPERATOR_TOKEN
Relational operator token.

See Also:
Constant Field Values

INTEGER_VALUE_TOKEN

public static final String INTEGER_VALUE_TOKEN
An integer value token.

See Also:
Constant Field Values
Constructor Detail

BasicContextImpl

public BasicContextImpl()
Constructor.

Method Detail

createContextMap

public Map<String,Object> createContextMap(ReqComponentInfo reqComponent,
                                           ContextInfo contextInfo)
                                    throws OperationFailedException
Creates the context map (template data) for the requirement component. Also, adds the field token map to the context map.

Specified by:
createContextMap in interface Context<ReqComponentInfo>
Overrides:
createContextMap in class AbstractContext<ReqComponentInfo>
Parameters:
reqComponent - Requirement component
contextInfo -
Throws:
OperationFailedException - Creating context map fails


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.