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.

Any model is essentially the way you represent data. So your Java Object Model is your data represented as Java Objects. An XML Model would be your data represented as XML. JSON is your data represented as JavaScript "Objects", etc.

Need Your Help

read a file from both float and double?

c floating-point readfile

How can I fscanf for both float and double, as I declared a global precision once in single precision (float) and once in double precision (double)... so when I run it, I have to change it everytim...

Average / most popular screen size and bootstrap3

html css3 twitter-bootstrap responsive-design twitter-bootstrap-3

If the average / most popular screen size width is now more than 1366px, why is bootstrap widest container (from their CDN) at max-width:1170px?