public final class XMLImporter
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
TMP_PART_OF_CONCEPT |
| Constructor and Description |
|---|
XMLImporter(Project p)
Initializes this with the given project, path and name.
|
| Modifier and Type | Method and Description |
|---|---|
static void |
copyInputStream(java.io.InputStream in,
java.io.OutputStream out)
Copies the given input stream to the output stream.
|
void |
doImport()
Imports the model from the specified XML files to the given
project.
|
int |
getCurrentNumberOfCases()
Returns the number of cases that have been imported
so far.
|
Project |
getProject()
Returns the current project.
|
int |
getTotalNumberOfCases()
Returns the number of cases that have been imported.
|
void |
importCases()
Starts a new thread importing the cases.
|
void |
importModel()
Extracts the XML-files from the original
project's zip-file.
|
boolean |
isImporting()
Returns true, when the import thread is still alive,
false otherwise.
|
public static final java.lang.String TMP_PART_OF_CONCEPT
public XMLImporter(Project p) throws java.lang.Exception
p - the project whose model should be importedjava.lang.Exception - if something goes wrong during parsing of documentpublic void doImport()
public void importModel()
public int getTotalNumberOfCases()
public void importCases()
public boolean isImporting()
public int getCurrentNumberOfCases()
public static void copyInputStream(java.io.InputStream in,
java.io.OutputStream out)
throws java.io.IOException
in - input stream of file to be copiedout - the output stream of the file to be writtenjava.io.IOException - if something goes wrong when reading/writingpublic Project getProject()