public class ExportOptions extends AbstractOptions<ExportOptions>
extensions
Constructor and Description |
---|
ExportOptions() |
ExportOptions(boolean withBranchSV,
boolean indent,
boolean onlyMainCc,
TopologyLevel topologyLevel,
boolean throwExceptionIfExtensionNotFound) |
ExportOptions(boolean withBranchSV,
boolean indent,
boolean onlyMainCc,
TopologyLevel topologyLevel,
boolean throwExceptionIfExtensionNotFound,
String version) |
Modifier and Type | Method and Description |
---|---|
ExportOptions |
addExtension(String extension) |
ExportOptions |
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.
|
Optional<String> |
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.
|
TopologyLevel |
getTopologyLevel() |
String |
getVersion() |
boolean |
isAnonymized() |
boolean |
isIndent() |
boolean |
isOnlyMainCc() |
boolean |
isThrowExceptionIfExtensionNotFound() |
boolean |
isWithBranchSV() |
ExportOptions |
setAnonymized(boolean anonymized) |
ExportOptions |
setExtensions(Set<String> extensions) |
ExportOptions |
setIndent(boolean indent) |
ExportOptions |
setOnlyMainCc(boolean onlyMainCc) |
ExportOptions |
setThrowExceptionIfExtensionNotFound(boolean throwException) |
ExportOptions |
setTopologyLevel(TopologyLevel topologyLevel) |
ExportOptions |
setVersion(String version) |
ExportOptions |
setWithBranchSV(boolean withBranchSV) |
getExtensions, getMode, hasAtLeastOneExtension, setMode, withAllExtensions, withExtension, withNoExtension
public ExportOptions()
public ExportOptions(boolean withBranchSV, boolean indent, boolean onlyMainCc, TopologyLevel topologyLevel, boolean throwExceptionIfExtensionNotFound)
public ExportOptions(boolean withBranchSV, boolean indent, boolean onlyMainCc, TopologyLevel topologyLevel, boolean throwExceptionIfExtensionNotFound, String version)
public ExportOptions addExtension(String extension)
addExtension
in class AbstractOptions<ExportOptions>
public boolean isWithBranchSV()
public ExportOptions setWithBranchSV(boolean withBranchSV)
public boolean isIndent()
public ExportOptions setIndent(boolean indent)
public boolean isOnlyMainCc()
public ExportOptions setOnlyMainCc(boolean onlyMainCc)
public boolean isAnonymized()
public ExportOptions setAnonymized(boolean anonymized)
public TopologyLevel getTopologyLevel()
public ExportOptions setTopologyLevel(TopologyLevel topologyLevel)
public ExportOptions setExtensions(Set<String> extensions)
setExtensions
in class AbstractOptions<ExportOptions>
public boolean isThrowExceptionIfExtensionNotFound()
public ExportOptions setThrowExceptionIfExtensionNotFound(boolean throwException)
public String getVersion()
public ExportOptions setVersion(String version)
public ExportOptions addExtensionVersion(String extensionName, String extensionVersion)
Copyright © 2020. All rights reserved.