org.kuali.student.core.statement.naturallanguage
Class NaturalLanguageUtil

java.lang.Object
  extended by org.kuali.student.core.statement.naturallanguage.NaturalLanguageUtil

public class NaturalLanguageUtil
extends Object

Utility class to support testing.


Field Summary
private static List<MockCluInfo> cluList
           
private static List<MockCluSetInfo> cluSetList
           
 
Constructor Summary
NaturalLanguageUtil()
           
 
Method Summary
static void createData()
           
static ReqComponentType createDefaultReqComponentType(String nlUsageTypeKey, String reqComponentType)
           
static Statement createLuStatementInfo(String id, StatementOperatorTypeKey operator)
           
static StatementType createLuStatementTypeInfo(String id)
           
static ReqComponent createReqComponent(String reqComponentType, List<ReqComponentField> fieldList)
           
static ReqComponent createReqComponent(String nlUsageTypeKey, String reqComponentType)
           
static List<ReqComponentField> createReqComponentFieldsForClu(String expectedValue, String operator, String cluIds)
           
static List<ReqComponentField> createReqComponentFieldsForCluSet(String expectedValue, String operator, String target)
           
static ReqComponentType createReqComponentType(String reqComponentType)
           
static Statement createStatement(StatementOperatorTypeKey operator)
           
static ContextRegistry<Context<ReqComponentInfo>> getReqComponentContextRegistry()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

cluList

private static final List<MockCluInfo> cluList

cluSetList

private static final List<MockCluSetInfo> cluSetList
Constructor Detail

NaturalLanguageUtil

public NaturalLanguageUtil()
Method Detail

createData

public static void createData()

createReqComponentType

public static ReqComponentType createReqComponentType(String reqComponentType)

createDefaultReqComponentType

public static ReqComponentType createDefaultReqComponentType(String nlUsageTypeKey,
                                                             String reqComponentType)

createReqComponent

public static ReqComponent createReqComponent(String nlUsageTypeKey,
                                              String reqComponentType)
                                       throws Exception
Throws:
Exception

createReqComponent

public static ReqComponent createReqComponent(String reqComponentType,
                                              List<ReqComponentField> fieldList)

createReqComponentFieldsForCluSet

public static List<ReqComponentField> createReqComponentFieldsForCluSet(String expectedValue,
                                                                        String operator,
                                                                        String target)

createReqComponentFieldsForClu

public static List<ReqComponentField> createReqComponentFieldsForClu(String expectedValue,
                                                                     String operator,
                                                                     String cluIds)

createStatement

public static Statement createStatement(StatementOperatorTypeKey operator)
                                 throws Exception
Throws:
Exception

createLuStatementInfo

public static Statement createLuStatementInfo(String id,
                                              StatementOperatorTypeKey operator)
                                       throws Exception
Throws:
Exception

createLuStatementTypeInfo

public static StatementType createLuStatementTypeInfo(String id)
                                               throws Exception
Throws:
Exception

getReqComponentContextRegistry

public static ContextRegistry<Context<ReqComponentInfo>> getReqComponentContextRegistry()


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