caelum/vraptor4 — pull request #263 by dipold (2013-11-21 10:48:39+00:00)
Title: Fix excludeAll() and add includeIfExist() and excludeIfExist() methods to Serializee

If serializer an ArrayList object, for example, the excludeAll() method tries remove fields of ArrayList class instead of Order class.

This PR fix excludeAll() method to check if the object to be serialized is a Collection type

-----------
In a polymorphic serialization, it is sometimes appropriate to include or exclude fields that may not exist in the specialized class.

The default behavior of the methods include() and exclude() VRaptor throws IllegalArgumentException if fields doesn't exists in object.

This PR added includeIfExist() and excludeIfExist() methods to ignore exception if fields doesn´t exists in object.