Class ReferenceTerminalsSerDe

java.lang.Object
com.powsybl.commons.extensions.AbstractExtensionSerDe<Network,ReferenceTerminals>
com.powsybl.iidm.serde.extensions.ReferenceTerminalsSerDe
All Implemented Interfaces:
ExtensionProvider<Network,ReferenceTerminals>, ExtensionSerDe<Network,ReferenceTerminals>, Versionable

@AutoService(ExtensionSerDe.class) public class ReferenceTerminalsSerDe extends AbstractExtensionSerDe<Network,ReferenceTerminals>
Author:
Damien Jeandemange <damien.jeandemange at artelys.com>
  • Field Details

    • REFERENCE_TERMINAL_ROOT_ELEMENT_NAME

      public static final String REFERENCE_TERMINAL_ROOT_ELEMENT_NAME
      See Also:
  • Constructor Details

    • ReferenceTerminalsSerDe

      public ReferenceTerminalsSerDe()
  • Method Details

    • getArrayNameToSingleNameMap

      public Map<String,String> getArrayNameToSingleNameMap()
      Description copied from interface: ExtensionSerDe
      Provides the map whose keys are the array field names and whose values are the single element field names. This is used to deduce the name of an element inside and array.
    • write

      public void write(ReferenceTerminals extension, SerializerContext context)
    • read

      public ReferenceTerminals read(Network extendable, DeserializerContext context)
    • isSerializable

      public boolean isSerializable(ReferenceTerminals extension)
      Description copied from interface: ExtensionSerDe
      Check if an extension can be serialized or not.
      Parameters:
      extension - the extension to check
      Returns:
      true if the extension can be serialized, false otherwise