Package org.newdawn.slick.util.xml

Examples of org.newdawn.slick.util.xml.ObjectTreeParser.addElementMapping()


   * @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
Copyright © 2018 www.massapi.com. 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.