@AutoService(value=Importer.class) public class XMLImporter extends Object implements Importer
Modifier and Type | Field and Description |
---|---|
static String |
EXTENSIONS_LIST |
static 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
|
String |
getComment()
Get some information about this importer.
|
String |
getFormat()
Get a unique identifier of the format.
|
List<Parameter> |
getParameters()
Get a description of import parameters
|
Network |
importData(ReadOnlyDataSource dataSource,
NetworkFactory networkFactory,
Properties parameters)
Create a model.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
importData
public static final String THROW_EXCEPTION_IF_EXTENSION_NOT_FOUND
public static final String EXTENSIONS_LIST
public XMLImporter()
public XMLImporter(PlatformConfig platformConfig)
public String getFormat()
Importer
public List<Parameter> getParameters()
Importer
getParameters
in interface Importer
public 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, Properties parameters)
Importer
importData
in interface Importer
dataSource
- data sourcenetworkFactory
- network factoryparameters
- some properties to configure the importCopyright © 2020. All rights reserved.