@AutoService(value=Importer.class) public class XMLImporter extends java.lang.Object implements Importer
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXTENSIONS_LIST |
static java.lang.String |
IMPORT_MODE |
static java.lang.String |
THROW_EXCEPTION_IF_EXTENSION_NOT_FOUND |
Constructor and Description |
---|
XMLImporter() |
XMLImporter(PlatformConfig platformConfig) |
Modifier and Type | Method and Description |
---|---|
void |
copy(ReadOnlyDataSource fromDataSource,
DataSource toDataSource)
Copy data from one data source to another.
|
boolean |
exists(ReadOnlyDataSource dataSource)
Check if the data source is importable
|
java.lang.String |
getComment()
Get some information about this importer.
|
java.lang.String |
getFormat()
Get a unique identifier of the format.
|
java.util.List<Parameter> |
getParameters()
Get a description of import parameters
|
Network |
importData(ReadOnlyDataSource dataSource,
NetworkFactory networkFactory,
java.util.Properties parameters)
Create a model.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
importData
public static final java.lang.String THROW_EXCEPTION_IF_EXTENSION_NOT_FOUND
public static final java.lang.String IMPORT_MODE
public static final java.lang.String EXTENSIONS_LIST
public XMLImporter()
public XMLImporter(PlatformConfig platformConfig)
public java.lang.String getFormat()
Importer
public java.util.List<Parameter> getParameters()
Importer
getParameters
in interface Importer
public java.lang.String getComment()
Importer
getComment
in interface Importer
public boolean exists(ReadOnlyDataSource dataSource)
Importer
public void copy(ReadOnlyDataSource fromDataSource, DataSource toDataSource)
Importer
public Network importData(ReadOnlyDataSource dataSource, NetworkFactory networkFactory, java.util.Properties parameters)
Importer
importData
in interface Importer
dataSource
- data sourcenetworkFactory
- network factoryparameters
- some properties to configure the importCopyright © 2019. All rights reserved.