Package org.newdawn.slick.util.xml

Examples of org.newdawn.slick.util.xml.ObjectTreeParser


   *
   * @param argv The arguments passed into the test
   * @throws SlickXMLException Indicates a failure to parse XML or generate objects
   */
  public static void main(String[] argv) throws SlickXMLException {
    ObjectTreeParser parser = new ObjectTreeParser("org.newdawn.slick.tests.xml");
    parser.addElementMapping("Bag", ItemContainer.class);
   
    GameData parsedData = (GameData) parser.parse("testdata/objxmltest.xml");
    parsedData.dump("");
  }
View Full Code Here

TOP

Related Classes of org.newdawn.slick.util.xml.ObjectTreeParser

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.