Package com.powsybl.powerfactory.model
Interface PowerFactoryDataLoader<T extends PowerFactoryData>
-
- All Known Implementing Classes:
DbProjectLoader
,DbStudyCaseLoader
,DgsStudyCaseLoader
,JsonProjectLoader
,JsonStudyCaseLoader
public interface PowerFactoryDataLoader<T extends PowerFactoryData>
- Author:
- Geoffroy Jamgotchian
-
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description T
doLoad(String fileName, InputStream is)
static <T extends PowerFactoryData>
List<PowerFactoryDataLoader<T>>find(Class<T> dataClass)
Class<T>
getDataClass()
String
getExtension()
static <T extends PowerFactoryData>
Optional<T>load(String fileName, Supplier<InputStream> inputStreamSupplier, Class<T> dataClass)
static <T extends PowerFactoryData>
Optional<T>load(String fileName, Supplier<InputStream> inputStreamSupplier, Class<T> dataClass, List<PowerFactoryDataLoader<T>> dataLoaders)
static <T extends PowerFactoryData>
Optional<T>load(Path file, Class<T> dataClass)
boolean
test(InputStream is)
-
-
-
Method Detail
-
find
static <T extends PowerFactoryData> List<PowerFactoryDataLoader<T>> find(Class<T> dataClass)
-
load
static <T extends PowerFactoryData> Optional<T> load(Path file, Class<T> dataClass)
-
load
static <T extends PowerFactoryData> Optional<T> load(String fileName, Supplier<InputStream> inputStreamSupplier, Class<T> dataClass)
-
load
static <T extends PowerFactoryData> Optional<T> load(String fileName, Supplier<InputStream> inputStreamSupplier, Class<T> dataClass, List<PowerFactoryDataLoader<T>> dataLoaders)
-
getExtension
String getExtension()
-
test
boolean test(InputStream is)
-
doLoad
T doLoad(String fileName, InputStream is)
-
-