org.kuali.student.common.validator
Class SampCustomValidator
java.lang.Object
org.kuali.student.common.validator.SampCustomValidator
- All Implemented Interfaces:
- Validator
public class SampCustomValidator
- extends Object
- implements Validator
This is a sample Validator used for customized validation. Inject this validator into ValidatorFactory.
- Author:
- Neerav Agrawal
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
objStructure
private ObjectStructureDefinition objStructure
SampCustomValidator
public SampCustomValidator()
validateObject
public List<ValidationResultInfo> validateObject(Object o,
ObjectStructureDefinition objStructure)
- Specified by:
validateObject
in interface Validator
getObjStructure
public ObjectStructureDefinition getObjStructure()
setObjStructure
public void setObjStructure(ObjectStructureDefinition objStructure)
validateObject
public List<ValidationResultInfo> validateObject(FieldDefinition field,
Object o,
ObjectStructureDefinition objStructure,
Stack<String> elementStack)
- Specified by:
validateObject
in interface Validator
getElementXpath
private String getElementXpath(Stack<String> elementStack)
toMap
private Map<String,Object> toMap(Constraint c)
Copyright © 2004-2011 The Kuali Foundation. All Rights Reserved.