Hi All,
Hope everyone is good.
I have a scenario where I have a web service response in XML mapped to a POJO object and returned.
This POJO object is having nested nodes.
I need to read a particular node value (which is in a inner level) and print it as a common value for all services.
Looks like the below.
I need to use null check at all places to access the values and the code looks ugly.
Also ,the POJO object does not have a method like fieldA.hasValue() which checks for the null condition.
I need to write a common utility for printing this data which is common for all web services.
I'm using
Java 1.7.
Could someone explain is there any other Utility or library that I could use or how to achieve this ?
Thanks
Karthik S