org.jagatoo.loaders.models.collada.stax
Class XMLLibraryMaterials

java.lang.Object
  extended by org.jagatoo.loaders.models.collada.stax.XMLLibraryMaterials

public class XMLLibraryMaterials
extends java.lang.Object

A Library of Materials. Child of COLLADA.


Field Summary
 java.util.HashMap<java.lang.String,XMLMaterial> materials
          A map of all materials, which is filled by the readMaterials() method just after the materials ArrayList has been written.
 
Constructor Summary
XMLLibraryMaterials()
           
 
Method Summary
 void parse(javax.xml.stream.XMLStreamReader parser)
           
 void readMaterials()
          Called just after materials has been read, fill the materialMap.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

materials

public java.util.HashMap<java.lang.String,XMLMaterial> materials
A map of all materials, which is filled by the readMaterials() method just after the materials ArrayList has been written. key = ID value = Material

Constructor Detail

XMLLibraryMaterials

public XMLLibraryMaterials()
Method Detail

readMaterials

public void readMaterials()
Called just after materials has been read, fill the materialMap.


parse

public void parse(javax.xml.stream.XMLStreamReader parser)
           throws javax.xml.stream.XMLStreamException
Throws:
javax.xml.stream.XMLStreamException