public class DataModelValidator extends Object
Constructor and Description |
---|
DataModelValidator() |
Modifier and Type | Method and Description |
---|---|
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.
|
public DataModelValidator()
public DateParser getDateParser()
public void setDateParser(DateParser dateParser)
dateParser
- the dateParser to setpublic List<ValidationResultInfo> validate(DataModel model)
model
- public List<ValidationResultInfo> validateNextState(DataModel model)
model
- public List<ValidationResultInfo> validateForMetadata(Metadata metadata, DataModel model)
metadata
- model
- public List<ValidationResultInfo> validate(FieldDescriptor fd, DataModel model)
fd
- model
- protected String getValidationMessage(String msgKey)
public void doValidateString(String s, QueryPath element, Metadata meta, List<ValidationResultInfo> results)
Copyright © 2004-2013 The Kuali Foundation. All Rights Reserved.