public class XmlValidationMatcher extends Object implements ValidationMatcher, org.springframework.context.ApplicationContextAware, org.springframework.beans.factory.InitializingBean
| Constructor and Description |
|---|
XmlValidationMatcher() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterPropertiesSet()
Initialize xml message validator if not injected by Spring bean context.
|
void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
Inject Spring bean application context
|
void |
validate(String fieldName,
String value,
String control,
TestContext context)
Method called on validation.
|
public void validate(String fieldName, String value, String control, TestContext context) throws ValidationException
validate in interface ValidationMatcherfieldName - the fieldName for logging purpose.value - the value to be validated.control - the control value.ValidationException - when validation failspublic void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
throws org.springframework.beans.BeansException
setApplicationContext in interface org.springframework.context.ApplicationContextAwareapplicationContext - org.springframework.beans.BeansExceptionCopyright © 2008–2015 ConSol* Consulting&Solutions GmbH. All rights reserved.