Class 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 Details

    • SlackTerminalSerDe

      public SlackTerminalSerDe()
  • Method Details

    • getXsdAsStream

      public InputStream getXsdAsStream()
      Description copied from interface: ExtensionSerDe
      Return the XSD schema describing the extension to serialize in the latest version of its XML serialization.
    • getXsdAsStreamList

      public List<InputStream> 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

      public void write(SlackTerminal slackTerminal, SerializerContext context)
    • read

      public SlackTerminal read(VoltageLevel voltageLevel, DeserializerContext context)
    • isSerializable

      public boolean isSerializable(SlackTerminal slackTerminal)
      A SlackTerminal 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