Package com.powsybl.iidm.serde
Class ExportOptions
- Author:
- Geoffroy Jamgotchian <geoffroy.jamgotchian at rte-france.com>, Miora Ralambotiana <miora.ralambotiana at rte-france.com>
-
Nested Class Summary
-
Field Summary
Fields inherited from class com.powsybl.iidm.serde.AbstractOptions
extensions, format
-
Constructor Summary
ConstructorDescriptionExportOptions
(boolean withBranchSV, boolean indent, boolean onlyMainCc, TopologyLevel topologyLevel, boolean throwExceptionIfExtensionNotFound) ExportOptions
(boolean withBranchSV, boolean indent, boolean onlyMainCc, TopologyLevel topologyLevel, boolean throwExceptionIfExtensionNotFound, boolean sorted) ExportOptions
(boolean withBranchSV, boolean indent, boolean onlyMainCc, TopologyLevel topologyLevel, boolean throwExceptionIfExtensionNotFound, boolean sorted, String version) ExportOptions
(boolean withBranchSV, boolean indent, boolean onlyMainCc, TopologyLevel topologyLevel, boolean throwExceptionIfExtensionNotFound, boolean sorted, String version, ExportOptions.IidmVersionIncompatibilityBehavior iidmVersionIncompatibilityBehavior) ExportOptions
(boolean withBranchSV, boolean indent, boolean onlyMainCc, TopologyLevel topologyLevel, boolean throwExceptionIfExtensionNotFound, String version) -
Method Summary
Modifier and TypeMethodDescriptionaddExtension
(String extension) addExtensionVersion
(String extensionName, String extensionVersion) Add a given version in which the extension with the given name will be exported if this version is supported by the extension's XML serializer and if it is compatible with the IIDM version in which the network will be exported.getExtensionVersion
(String extensionName) Return an optional containing the version oin which the extension with the given name will be exported if it has previously been added.boolean
boolean
isIndent()
boolean
boolean
isSorted()
boolean
boolean
boolean
setAnonymized
(boolean anonymized) setCharset
(Charset charset) setExtensions
(Set<String> extensions) setIidmVersionIncompatibilityBehavior
(ExportOptions.IidmVersionIncompatibilityBehavior iidmVersionIncompatibilityBehavior) setIndent
(boolean indent) setOnlyMainCc
(boolean onlyMainCc) setSorted
(boolean sorted) setThrowExceptionIfExtensionNotFound
(boolean throwException) setTopologyLevel
(TopologyLevel topologyLevel) setVersion
(String version) setWithAutomationSystems
(boolean withAutomationSystems) setWithBranchSV
(boolean withBranchSV) Methods inherited from class com.powsybl.iidm.serde.AbstractOptions
getExtensions, getFormat, hasAtLeastOneExtension, setFormat, withAllExtensions, withExtension, withNoExtension
-
Constructor Details
-
ExportOptions
public ExportOptions() -
ExportOptions
public ExportOptions(boolean withBranchSV, boolean indent, boolean onlyMainCc, TopologyLevel topologyLevel, boolean throwExceptionIfExtensionNotFound) -
ExportOptions
public ExportOptions(boolean withBranchSV, boolean indent, boolean onlyMainCc, TopologyLevel topologyLevel, boolean throwExceptionIfExtensionNotFound, boolean sorted) -
ExportOptions
public ExportOptions(boolean withBranchSV, boolean indent, boolean onlyMainCc, TopologyLevel topologyLevel, boolean throwExceptionIfExtensionNotFound, String version) -
ExportOptions
public ExportOptions(boolean withBranchSV, boolean indent, boolean onlyMainCc, TopologyLevel topologyLevel, boolean throwExceptionIfExtensionNotFound, boolean sorted, String version) -
ExportOptions
public ExportOptions(boolean withBranchSV, boolean indent, boolean onlyMainCc, TopologyLevel topologyLevel, boolean throwExceptionIfExtensionNotFound, boolean sorted, String version, ExportOptions.IidmVersionIncompatibilityBehavior iidmVersionIncompatibilityBehavior)
-
-
Method Details
-
addExtension
- Specified by:
addExtension
in classAbstractOptions<ExportOptions>
-
isWithBranchSV
public boolean isWithBranchSV() -
setWithBranchSV
-
isIndent
public boolean isIndent() -
setIndent
-
isOnlyMainCc
public boolean isOnlyMainCc() -
setOnlyMainCc
-
isAnonymized
public boolean isAnonymized() -
setAnonymized
-
getTopologyLevel
-
setTopologyLevel
-
setExtensions
- Specified by:
setExtensions
in classAbstractOptions<ExportOptions>
-
isThrowExceptionIfExtensionNotFound
public boolean isThrowExceptionIfExtensionNotFound()- Specified by:
isThrowExceptionIfExtensionNotFound
in classAbstractOptions<ExportOptions>
-
setThrowExceptionIfExtensionNotFound
-
getVersion
-
setVersion
-
getIidmVersionIncompatibilityBehavior
-
setIidmVersionIncompatibilityBehavior
public ExportOptions setIidmVersionIncompatibilityBehavior(ExportOptions.IidmVersionIncompatibilityBehavior iidmVersionIncompatibilityBehavior) -
getCharset
-
setCharset
-
addExtensionVersion
Add a given version in which the extension with the given name will be exported if this version is supported by the extension's XML serializer and if it is compatible with the IIDM version in which the network will be exported. If the version is not added for an extension configured to be serialized, the extension will be serialized in the most recent version compatible with the IIDM version in which the network will be exported. If a version is added for an extension configured not to be serialized, the version will be ignored. If a version has already been added for the extension, throw an exception. -
getExtensionVersion
Return an optional containing the version oin which the extension with the given name will be exported if it has previously been added. If it has never been added, return an empty optional. -
isSorted
public boolean isSorted() -
setSorted
-
isWithAutomationSystems
public boolean isWithAutomationSystems() -
setWithAutomationSystems
-