I have written a validation class for eight types of messages(POJO classes) which first identifies the message class and than validate its properties.
now a pojo message class has about 46 properties, and validating these properties with if-else and then logging every validation error basicallly made the code too long and hard to read and maintain.
i want to improve my code and looking for a way to avoid many if-else statement or good way to validate pojo objects.
can any one suggest a way to move forward ?
SCJP5 95%, SCWCD 85%<br />Knowledge is the Life of Mind