Package com.powsybl.iidm.xml
Class XMLImporter
- java.lang.Object
-
- com.powsybl.iidm.xml.XMLImporter
-
- All Implemented Interfaces:
Importer
@AutoService(Importer.class) public class XMLImporter extends Object implements Importer
- Author:
- Geoffroy Jamgotchian
-
-
Field Summary
Fields Modifier and Type Field Description static String
EXTENSIONS_LIST
static String
THROW_EXCEPTION_IF_EXTENSION_NOT_FOUND
-
Constructor Summary
Constructors Constructor Description XMLImporter()
XMLImporter(PlatformConfig platformConfig)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method 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 importableString
getComment()
Get some information about this importer.String
getFormat()
Get a unique identifier of the format.List<Parameter>
getParameters()
Get a description of import parametersNetwork
importData(ReadOnlyDataSource dataSource, NetworkFactory networkFactory, Properties parameters)
Create a model.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.powsybl.iidm.import_.Importer
importData, importData
-
-
-
-
Field Detail
-
THROW_EXCEPTION_IF_EXTENSION_NOT_FOUND
public static final String THROW_EXCEPTION_IF_EXTENSION_NOT_FOUND
- See Also:
- Constant Field Values
-
EXTENSIONS_LIST
public static final String EXTENSIONS_LIST
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
XMLImporter
public XMLImporter()
-
XMLImporter
public XMLImporter(PlatformConfig platformConfig)
-
-
Method Detail
-
getFormat
public String getFormat()
Description copied from interface:Importer
Get a unique identifier of the format.
-
getParameters
public List<Parameter> getParameters()
Description copied from interface:Importer
Get a description of import parameters- Specified by:
getParameters
in interfaceImporter
- Returns:
-
getComment
public String getComment()
Description copied from interface:Importer
Get some information about this importer.- Specified by:
getComment
in interfaceImporter
-
exists
public boolean exists(ReadOnlyDataSource dataSource)
Description copied from interface:Importer
Check if the data source is importable
-
copy
public void copy(ReadOnlyDataSource fromDataSource, DataSource toDataSource)
Description copied from interface:Importer
Copy data from one data source to another.
-
importData
public Network importData(ReadOnlyDataSource dataSource, NetworkFactory networkFactory, Properties parameters)
Description copied from interface:Importer
Create a model.- Specified by:
importData
in interfaceImporter
- Parameters:
dataSource
- data sourcenetworkFactory
- network factoryparameters
- some properties to configure the import- Returns:
- the model
-
-