org.kuali.student.lum.ui
Class MetadataServiceDictionaryValidator

java.lang.Object
  extended by org.kuali.student.lum.ui.MetadataServiceDictionaryValidator

public class MetadataServiceDictionaryValidator
extends Object


Field Summary
private  Map<String,SearchTypeInfo> searchInfoTypeMap
           
 
Constructor Summary
MetadataServiceDictionaryValidator()
           
 
Method Summary
private  String buildErrorPrefix1(String name, String type)
           
private  String buildErrorPrefix2(String name, String type, String lookupType)
           
private  String buildErrorPrefix3(LookupMetadata lookup, String name, String type, String lookupType)
           
private  boolean dataTypeMatches(String qp, Data.DataType dt)
           
private  QueryParamInfo findQueryParam(SearchTypeInfo st, String paramKey)
           
private  ResultColumnInfo findResultColumn(SearchTypeInfo st, String paramKey)
           
private  Map<String,SearchTypeInfo> getSearchInfoTypeMap()
           
private  SearchTypeInfo getSearchTypeInfo(String searchType)
           
private  List<String> validateLookup(LookupMetadata lookup, String name, String type, String lookupType)
           
 List<String> validateMetadata(Metadata md, String name, String type)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

searchInfoTypeMap

private Map<String,SearchTypeInfo> searchInfoTypeMap
Constructor Detail

MetadataServiceDictionaryValidator

public MetadataServiceDictionaryValidator()
Method Detail

getSearchTypeInfo

private SearchTypeInfo getSearchTypeInfo(String searchType)

getSearchInfoTypeMap

private Map<String,SearchTypeInfo> getSearchInfoTypeMap()

validateMetadata

public List<String> validateMetadata(Metadata md,
                                     String name,
                                     String type)

validateLookup

private List<String> validateLookup(LookupMetadata lookup,
                                    String name,
                                    String type,
                                    String lookupType)

dataTypeMatches

private boolean dataTypeMatches(String qp,
                                Data.DataType dt)

findResultColumn

private ResultColumnInfo findResultColumn(SearchTypeInfo st,
                                          String paramKey)

findQueryParam

private QueryParamInfo findQueryParam(SearchTypeInfo st,
                                      String paramKey)

buildErrorPrefix3

private String buildErrorPrefix3(LookupMetadata lookup,
                                 String name,
                                 String type,
                                 String lookupType)

buildErrorPrefix2

private String buildErrorPrefix2(String name,
                                 String type,
                                 String lookupType)

buildErrorPrefix1

private String buildErrorPrefix1(String name,
                                 String type)


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