@AutoService(value=Importer.class) public class XMLImporter extends java.lang.Object implements Importer
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,
java.util.Properties parameters)
Create a model.
|
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, java.util.Properties parameters)
Importer
importData
in interface Importer
dataSource
- data sourceparameters
- some properties to configure the import