net.sourceforge.toscanaj.parser
Class CSXParser

java.lang.Object
  extended bynet.sourceforge.toscanaj.parser.CSXParser

public class CSXParser
extends java.lang.Object

This class reads a CSX file and does nothing with it except complaining.


Method Summary
static ConceptualSchema parse(org.tockit.events.EventBroker eventBroker, java.io.File csxFile)
          Loads a CSX file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

parse

public static ConceptualSchema parse(org.tockit.events.EventBroker eventBroker,
                                     java.io.File csxFile)
                              throws java.io.IOException,
                                     DataFormatException,
                                     java.lang.Exception
Loads a CSX file. Most of the parsing is split into subroutines to increase readability. Currently there is not much error handling in here. E.g. the code might boil out with a NullPointerException if an object definition has no ID. And IDs are not yet checked for uniqueness. The code might also have problems when namespaces are used.

Throws:
java.io.IOException
DataFormatException
java.lang.Exception


The ToscanaJ project