org.kuali.student.contract.model.validation
Class ServiceMethodValidator

java.lang.Object
  extended by org.kuali.student.contract.model.validation.ServiceMethodValidator
All Implemented Interfaces:
ModelValidator

public class ServiceMethodValidator
extends Object
implements ModelValidator

This validates a single serviceMethodinoary entry

Author:
nwright

Field Summary
private  Collection errors
           
private  ServiceMethod method
           
private  ServiceContractModel model
           
 
Constructor Summary
ServiceMethodValidator(ServiceMethod method, ServiceContractModel model)
           
 
Method Summary
private  void addError(String msg)
           
private  void basicValidation()
           
private  Service findService(String service)
           
 Collection<String> validate()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

method

private ServiceMethod method

model

private ServiceContractModel model

errors

private Collection errors
Constructor Detail

ServiceMethodValidator

public ServiceMethodValidator(ServiceMethod method,
                              ServiceContractModel model)
Method Detail

validate

public Collection<String> validate()
Specified by:
validate in interface ModelValidator

basicValidation

private void basicValidation()

findService

private Service findService(String service)

addError

private void addError(String msg)


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