Package com.powsybl.iidm.xml.extensions
Class GeneratorStartupXmlSerializer
- java.lang.Object
-
- com.powsybl.iidm.xml.extensions.AbstractVersionableNetworkExtensionXmlSerializer<Generator,GeneratorStartup>
-
- com.powsybl.iidm.xml.extensions.GeneratorStartupXmlSerializer
-
- All Implemented Interfaces:
ExtensionProvider<Generator,GeneratorStartup>
,ExtensionXmlSerializer<Generator,GeneratorStartup>
,Versionable
@AutoService(ExtensionXmlSerializer.class) public class GeneratorStartupXmlSerializer extends AbstractVersionableNetworkExtensionXmlSerializer<Generator,GeneratorStartup> implements ExtensionXmlSerializer<Generator,GeneratorStartup>
- Author:
- Geoffroy Jamgotchian
-
-
Constructor Summary
Constructors Constructor Description GeneratorStartupXmlSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InputStream
getXsdAsStream()
Return the XSD schema describing the extension to serialize in the latest version of its serialization.List<InputStream>
getXsdAsStreamList()
Return the list of all XSD schemas describing the extension to serialize.GeneratorStartup
read(Generator generator, XmlReaderContext context)
void
write(GeneratorStartup startup, 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.ExtensionProvider
getCategoryName, getExtensionClass, getExtensionName
-
Methods inherited from interface com.powsybl.commons.extensions.ExtensionXmlSerializer
checkExtensionVersionSupported, getName, getNamespacePrefix, getNamespaceUri, getNamespaceUri, getVersion, getVersions, hasSubElements, isSerializable
-
-
-
-
Method Detail
-
getXsdAsStream
public InputStream getXsdAsStream()
Description copied from interface:ExtensionXmlSerializer
Return the XSD schema describing the extension to serialize in the latest version of its serialization.- Specified by:
getXsdAsStream
in interfaceExtensionXmlSerializer<Generator,GeneratorStartup>
-
getXsdAsStreamList
public List<InputStream> 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.- Specified by:
getXsdAsStreamList
in interfaceExtensionXmlSerializer<Generator,GeneratorStartup>
-
write
public void write(GeneratorStartup startup, XmlWriterContext context) throws XMLStreamException
- Specified by:
write
in interfaceExtensionXmlSerializer<Generator,GeneratorStartup>
- Throws:
XMLStreamException
-
read
public GeneratorStartup read(Generator generator, XmlReaderContext context) throws XMLStreamException
- Specified by:
read
in interfaceExtensionXmlSerializer<Generator,GeneratorStartup>
- Throws:
XMLStreamException
-
-