JavaObjectModel. What is it?
Simply stated : What is a Java Object Model. I want to create one for a XML file. I am sure it is different than the Java Application. SO what is it. Obviously, i tried google but to my surprise didnot get any specific or clear answer.
An object model is a set of classes (with their properties and methods) used to represent a particular collection of information. A Java object model is simply an object model in which the language used to describe those classes is Java. If you want to create a Java object model for an XML file, then you need to analyze what information is held in your XML file and design Java classes to represent the same information. There are tools that can automate this process, though the representation they come up with will not always be optimal.
I guess an Object Model is some java POJO whose properties reflect the structure of the xml file you are parsing.
A "simple" way to achieve this transformation is to use JAXB.