Type: New Feature
Affects Version/s: None
Fix Version/s: None
Would be nice for XStream to support simple validation of fields after de-serialization. E.g.
private Type field;
private List list;
Usually after deserialization, people have to write validation code that walks through objects to make sure everything is set right. Something like above will help do this without any additional code.
Additionally, a custom interface can also be implemented (supported by xstream) to do custom validation post de-serialization, e.g.
public void validate() throws something;