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

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.AtpContextImpl
All Implemented Interfaces:
Context<ReqComponentInfo>

public class AtpContextImpl
extends BasicContextImpl

This class creates the template context for an academic time period.


Field Summary
private  AtpService atpService
           
static String DURATION_TOKEN
           
static String DURATION_TYPE_TOKEN
           
 
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
AtpContextImpl()
           
 
Method Summary
 Map<String,Object> createContextMap(ReqComponentInfo reqComponent)
          Creates the context map (template data) for the requirement component.
private  AtpDurationTypeInfo getAtpDurationType(String atpDurationTypeKey)
           
 void setAtpService(AtpService atpService)
           
 
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

atpService

private AtpService atpService

DURATION_TYPE_TOKEN

public static final String DURATION_TYPE_TOKEN
See Also:
Constant Field Values

DURATION_TOKEN

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

AtpContextImpl

public AtpContextImpl()
Method Detail

setAtpService

public void setAtpService(AtpService atpService)

getAtpDurationType

private AtpDurationTypeInfo getAtpDurationType(String atpDurationTypeKey)
                                        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 © 2004-2012 The Kuali Foundation. All Rights Reserved.