org.kuali.student.common.ui.client.validator
Class DataModelValidator

java.lang.Object
  extended by org.kuali.student.common.ui.client.validator.DataModelValidator

public class DataModelValidator
extends Object


Constructor Summary
DataModelValidator()
           
 
Method Summary
 void doValidateString(String s, QueryPath element, Metadata meta, List<ValidationResultInfo> results)
           
 DateParser getDateParser()
           
protected  String getValidationMessage(String msgKey)
           
 void setDateParser(DateParser dateParser)
           
 List<ValidationResultInfo> validate(DataModel model)
          Use to validate the entire DataModel structure against constraints defined in the metadata.
 List<ValidationResultInfo> validate(FieldDescriptor fd, DataModel model)
          Use to validated a single field within the data model against constraints defined in the metadata
 List<ValidationResultInfo> validateForMetadata(Metadata metadata, DataModel model)
          Use to validate the entire DataModel structure against constraints defined in the metadata for the given metadata
 List<ValidationResultInfo> validateNextState(DataModel model)
          Use to validate the entire DataModel structure against constraints defined in the metadata for the current state and the "next" state.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataModelValidator

public DataModelValidator()
Method Detail

getDateParser

public DateParser getDateParser()
Returns:
the dateParser

setDateParser

public void setDateParser(DateParser dateParser)
Parameters:
dateParser - the dateParser to set

validate

public List<ValidationResultInfo> validate(DataModel model)
Use to validate the entire DataModel structure against constraints defined in the metadata.

Parameters:
model -
Returns:

validateNextState

public List<ValidationResultInfo> validateNextState(DataModel model)
Use to validate the entire DataModel structure against constraints defined in the metadata for the current state and the "next" state.

Parameters:
model -
Returns:

validateForMetadata

public List<ValidationResultInfo> validateForMetadata(Metadata metadata,
                                                      DataModel model)
Use to validate the entire DataModel structure against constraints defined in the metadata for the given metadata

Parameters:
metadata -
model -
Returns:

validate

public List<ValidationResultInfo> validate(FieldDescriptor fd,
                                           DataModel model)
Use to validated a single field within the data model against constraints defined in the metadata

Parameters:
fd -
model -
Returns:

getValidationMessage

protected String getValidationMessage(String msgKey)

doValidateString

public void doValidateString(String s,
                             QueryPath element,
                             Metadata meta,
                             List<ValidationResultInfo> results)


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