Class ExportOptions

    • Constructor Detail

      • 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)
    • Method Detail

      • isWithBranchSV

        public boolean isWithBranchSV()
      • setWithBranchSV

        public ExportOptions setWithBranchSV​(boolean withBranchSV)
      • isIndent

        public boolean isIndent()
      • isOnlyMainCc

        public boolean isOnlyMainCc()
      • setOnlyMainCc

        public ExportOptions setOnlyMainCc​(boolean onlyMainCc)
      • isAnonymized

        public boolean isAnonymized()
      • setAnonymized

        public ExportOptions setAnonymized​(boolean anonymized)
      • isThrowExceptionIfExtensionNotFound

        public boolean isThrowExceptionIfExtensionNotFound()
      • setThrowExceptionIfExtensionNotFound

        public ExportOptions setThrowExceptionIfExtensionNotFound​(boolean throwException)
      • getVersion

        public String getVersion()
      • addExtensionVersion

        public 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. 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

        public 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. If it has never been added, return an empty optional.
      • isSorted

        public boolean isSorted()