What is the best way to create a class structure from a bill of materials? : <p>For a semester project (in Java) I have to do some material flow optimization. The starting point for the whole task will be a bill of materials. The user should be able to provide it via a file (xml or yaml). My question is now, how can I build class objects (with dependencies) from this bill of materials automatically?</p>

<p>So far I found a serialization/deserialization framework called simple (<a href="http://simple.sourceforge.net/" rel="nofollow noreferrer">http://simple.sourceforge.net/</a>) but I'm not sure if this is the right way to go.</p>

<p>I'm glad for any advice.</p>
