org.kuali.student.lum.statement.config.context
Class LrcContextImpl

java.lang.Object
  extended by org.kuali.student.core.statement.naturallanguage.AbstractContext<ReqComponentInfo>
      extended by org.kuali.student.lum.statement.config.context.BasicContextImpl
          extended by org.kuali.student.lum.statement.config.context.LrcContextImpl
All Implemented Interfaces:
Context<ReqComponentInfo>

public class LrcContextImpl
extends BasicContextImpl

This class creates the template context for grade condition type.


Field Summary
static String GRADE_TOKEN
          Total credits template token
static String GRADE_TYPE_TOKEN
           
private  LrcService lrcService
           
 
Fields inherited from class org.kuali.student.lum.statement.config.context.BasicContextImpl
INTEGER_VALUE_TOKEN, NL_HELPER_TOKEN, OPERATOR_TOKEN
 
Fields inherited from class org.kuali.student.core.statement.naturallanguage.AbstractContext
FIELDS_TOKEN
 
Constructor Summary
LrcContextImpl()
           
 
Method Summary
 Map<String,Object> createContextMap(ReqComponentInfo reqComponent)
          Creates the context map (template data) for the requirement component.
private  ResultComponentInfo getResultComponentByResultComponentId(String resultComponentId)
           
private  ResultComponentInfo getResultComponentByResultValueId(String resultValueId)
           
private  String getResultValue(ResultComponentInfo resultComponent, String resultValue)
           
 void setLrcService(LrcService lrcService)
           
 
Methods inherited from class org.kuali.student.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

lrcService

private LrcService lrcService

GRADE_TOKEN

public static final String GRADE_TOKEN
Total credits template token

See Also:
Constant Field Values

GRADE_TYPE_TOKEN

public static final String GRADE_TYPE_TOKEN
See Also:
Constant Field Values
Constructor Detail

LrcContextImpl

public LrcContextImpl()
Method Detail

setLrcService

public void setLrcService(LrcService lrcService)

getResultComponentByResultComponentId

private ResultComponentInfo getResultComponentByResultComponentId(String resultComponentId)
                                                           throws OperationFailedException
Throws:
OperationFailedException

getResultValue

private String getResultValue(ResultComponentInfo resultComponent,
                              String resultValue)
                       throws OperationFailedException
Throws:
OperationFailedException

getResultComponentByResultValueId

private ResultComponentInfo getResultComponentByResultValueId(String resultValueId)
                                                       throws OperationFailedException
Throws:
OperationFailedException

createContextMap

public Map<String,Object> createContextMap(ReqComponentInfo reqComponent)
                                    throws OperationFailedException
Creates the context map (template data) for the requirement component.

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


Copyright © 2010 The Kuali Foundation. All rights reserved.