I have an object which i need to validate. This object has properties which cannot be null, strings which cannot exceed a given size and date strings which i need to check for format correctness.
How would you perform this validation. I don't want to go over the whole object, I'm looking for something more dynamic
EDIT:
This object will be used in webservices input so any setter validation will be useless also i dont know how the system will behave with the added dependency of any annotation based system
Im looking for a custom solution (yes i know reinventing the wheel)