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.

Answers


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

Testing query string unicode handling in Perl

perl testing unicode query-string

I'm trying to write up an example of testing query string parsing when I got stumped on a Unicode issue. In short, the letter "Omega" (Ω) doesn't seem to be decoded correctly.

How to set position of objects in JFrame?

java swing jframe layout-manager

I have Labels and JButtons i want to define the position in JFrame.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.