Class SlackTerminalSerDe
java.lang.Object
com.powsybl.iidm.serde.extensions.AbstractVersionableNetworkExtensionSerDe<VoltageLevel,SlackTerminal>
com.powsybl.iidm.serde.extensions.SlackTerminalSerDe
- All Implemented Interfaces:
ExtensionProvider<VoltageLevel,
,SlackTerminal> ExtensionSerDe<VoltageLevel,
,SlackTerminal> Versionable
@AutoService(ExtensionSerDe.class)
public class SlackTerminalSerDe
extends AbstractVersionableNetworkExtensionSerDe<VoltageLevel,SlackTerminal>
- Author:
- Florian Dupuy <florian.dupuy at rte-france.com>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionReturn the XSD schema describing the extension to serialize in the latest version of its XML serialization.Return the list of all XSD schemas describing the extension to serialize.boolean
isSerializable
(SlackTerminal slackTerminal) ASlackTerminal
extension is serializable if the terminal for the current variant is not nullread
(VoltageLevel voltageLevel, DeserializerContext context) void
write
(SlackTerminal slackTerminal, SerializerContext context) Methods inherited from class com.powsybl.iidm.serde.extensions.AbstractVersionableNetworkExtensionSerDe
checkExtensionVersionSupported, checkReadingCompatibility, checkWritingCompatibility, getCategoryName, getExtensionClass, getExtensionName, getNamespacePrefix, getNamespaceUri, getNamespaceUri, getVersion, getVersion, getVersion, getVersions, versionExists
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.powsybl.commons.extensions.ExtensionSerDe
getArrayNameToSingleNameMap, getName
-
Constructor Details
-
SlackTerminalSerDe
public SlackTerminalSerDe()
-
-
Method Details
-
getXsdAsStream
Description copied from interface:ExtensionSerDe
Return the XSD schema describing the extension to serialize in the latest version of its XML serialization. -
getXsdAsStreamList
Description copied from interface:ExtensionSerDe
Return the list of all XSD schemas describing the extension to serialize.
There is a distinct XSD schema for each version of its XML serialization. -
write
-
read
-
isSerializable
ASlackTerminal
extension is serializable if the terminal for the current variant is not null- Parameters:
slackTerminal
- The extension to check- Returns:
- true if the terminal for the current variant is not null, false otherwise
-