pl.bristleback.server.bristle.binding
Class BindingErrorsResolver

java.lang.Object
  extended by pl.bristleback.server.bristle.binding.BindingErrorsResolver

public class BindingErrorsResolver
extends java.lang.Object

Utility class that has methods for resolving binding errors.

Created on: 2011-03-13 09:31:47

Author:
Wojciech Niemiec

Constructor Summary
BindingErrorsResolver()
           
 
Method Summary
 void checkAndAddNotNullViolationErrors(BindingResult<?> bindingResult, NestedFieldInformation fieldInformation)
          Checks whether given field or its children are required and adds a not null violation error for each required field found.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BindingErrorsResolver

public BindingErrorsResolver()
Method Detail

checkAndAddNotNullViolationErrors

public void checkAndAddNotNullViolationErrors(BindingResult<?> bindingResult,
                                              NestedFieldInformation fieldInformation)
Checks whether given field or its children are required and adds a not null violation error for each required field found.

Parameters:
bindingResult - binding result wrapper.
fieldInformation - information about checked field.


Copyright © 2011. All Rights Reserved.