protected class DefaultActionValidatorManager.InternalValidatorContextWrapper extends Object
ValidatorContextwrapper that returns the full field name
getFullFieldName(String)by consulting it's parent if its an
VisitorFieldValidator.AppendingValidatorContext. Eg. if we have nested Visitor AddressVisitor nested inside PersonVisitor, when using the normal #getFullFieldName, we will get "address.somefield", we lost the parent, with this wrapper, we will get "person.address.somefield". This is so that the key is used to register errors, so that we don't screw up short-curcuit feature when using nested visitor. See XW-571 (nested visitor validators break short-circuit functionality) at http://jira.opensymphony.com/browse/XW-571
|Modifier and Type||Method and Description|
Get the full field name by consulting the parent, so that when we are using nested visitors ( visitor nested inside visitor etc.) we still get the full field name including its parents.
field- The field name
Copyright © 2000-2014 Apache Software Foundation. All Rights Reserved.