Package com.powsybl.iidm.xml.extensions
Class SlackTerminalXmlSerializer
java.lang.Object
com.powsybl.iidm.xml.extensions.AbstractVersionableNetworkExtensionXmlSerializer<VoltageLevel,SlackTerminal>
com.powsybl.iidm.xml.extensions.SlackTerminalXmlSerializer
- All Implemented Interfaces:
ExtensionProvider<VoltageLevel,
,SlackTerminal> ExtensionXmlSerializer<VoltageLevel,
,SlackTerminal> Versionable
@AutoService(ExtensionXmlSerializer.class)
public class SlackTerminalXmlSerializer
extends AbstractVersionableNetworkExtensionXmlSerializer<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 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, XmlReaderContext context) void
write
(SlackTerminal slackTerminal, XmlWriterContext context) Methods inherited from class com.powsybl.iidm.xml.extensions.AbstractVersionableNetworkExtensionXmlSerializer
checkExtensionVersionSupported, checkReadingCompatibility, checkWritingCompatibility, getCategoryName, getExtensionClass, getExtensionName, getNamespacePrefix, getNamespaceUri, getNamespaceUri, getVersion, getVersion, getVersions, hasSubElements, 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.ExtensionXmlSerializer
getName
-
Constructor Details
-
SlackTerminalXmlSerializer
public SlackTerminalXmlSerializer()
-
-
Method Details
-
getXsdAsStream
Description copied from interface:ExtensionXmlSerializer
Return the XSD schema describing the extension to serialize in the latest version of its serialization. -
getXsdAsStreamList
Description copied from interface:ExtensionXmlSerializer
Return the list of all XSD schemas describing the extension to serialize.
There is a distinct XSD schema for each version of its serialization. -
write
- Throws:
XMLStreamException
-
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
-