|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.gscg.experiment.ProductParser
The ProductParser parses xml-based experiments into their java objects.
Copyright (c) 2003-2005 Delft University of Technology, Jaffalaan 5, 2628 BX Delft, the Netherlands. All rights reserved. See for project information www.simulation.tudelft.nl . The source code and binary code of this software is proprietary information of Delft University of Technology.
| Constructor Summary | |
protected |
ProductParser()
constructs a new ProductParser This is a Utility Class. |
| Method Summary | |
static Products |
parseProducts(java.lang.String schema,
java.net.URL input)
parses a product xml-file. |
static nl.tudelft.simulation.supplychain.product.Unit |
parseUnit(java.lang.String name)
Parses a string representing a unit into a unit |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
protected ProductParser()
| Method Detail |
public static Products parseProducts(java.lang.String schema,
java.net.URL input)
throws java.io.IOException
schema - the schema for validation of the xml-fileinput - the inputstream
java.io.IOException - whenever parsing fails
public static nl.tudelft.simulation.supplychain.product.Unit parseUnit(java.lang.String name)
throws java.lang.Exception
name - the name of the unit
java.lang.Exception - thrown in case of an unknown name
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||