I'm looking for a library to parse an object with arbitrary depth. For example, I got an ExampleDTO
object
class ExampleDTO {
private FirstEntity first;
// getters/setters omitted
}
class FirstEntity {
private SecondEntity sndEntity;
// getters/setters omitted
}
class SecondEntity {
private List<ThirdEntity> thirdEntityList;
// getters/setters omitted
}
class ThirdEntity {
private String string;
// getters/setters omitted
}
The structure of the object we can describe with a field path: ExampleDTO { first.sndEntity.thirdEntityList.string }
, where each element in the path represents a field name. Is there some Java library to explore the object structure regarding to path?
Aucun commentaire:
Enregistrer un commentaire