Package com.powsybl.iidm.xml.extensions
Class GeneratorEntsoeCategoryXmlSerializer
- java.lang.Object
-
- com.powsybl.iidm.xml.extensions.GeneratorEntsoeCategoryXmlSerializer
-
- All Implemented Interfaces:
ExtensionProvider<Generator,GeneratorEntsoeCategory>
,ExtensionXmlSerializer<Generator,GeneratorEntsoeCategory>
,Versionable
@AutoService(ExtensionXmlSerializer.class) public class GeneratorEntsoeCategoryXmlSerializer extends Object implements ExtensionXmlSerializer<Generator,GeneratorEntsoeCategory>
- Author:
- Geoffroy Jamgotchian
-
-
Constructor Summary
Constructors Constructor Description GeneratorEntsoeCategoryXmlSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getCategoryName()
Return the category of the extensions provided by this provider.Class<? super GeneratorEntsoeCategory>
getExtensionClass()
Return the type of extensions provided by this provider.String
getExtensionName()
Return the name of the extensions provided by this provider.String
getNamespacePrefix()
String
getNamespaceUri()
Return the namespace URI of the extension in the latest version of its serialization.InputStream
getXsdAsStream()
Return the XSD schema describing the extension to serialize in the latest version of its serialization.boolean
hasSubElements()
GeneratorEntsoeCategory
read(Generator generator, XmlReaderContext context)
void
write(GeneratorEntsoeCategory entsoeCategory, XmlWriterContext context)
-
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
checkExtensionVersionSupported, getName, getNamespaceUri, getVersion, getVersions, getXsdAsStreamList, isSerializable
-
-
-
-
Method Detail
-
getExtensionName
public String getExtensionName()
Description copied from interface:ExtensionProvider
Return the name of the extensions provided by this provider.- Specified by:
getExtensionName
in interfaceExtensionProvider<Generator,GeneratorEntsoeCategory>
- Returns:
- the name of the extensions provided by this provider.
-
getCategoryName
public String getCategoryName()
Description copied from interface:ExtensionProvider
Return the category of the extensions provided by this provider.- Specified by:
getCategoryName
in interfaceExtensionProvider<Generator,GeneratorEntsoeCategory>
- Returns:
- the category of the extensions provided by this provider.
-
getExtensionClass
public Class<? super GeneratorEntsoeCategory> getExtensionClass()
Description copied from interface:ExtensionProvider
Return the type of extensions provided by this provider.- Specified by:
getExtensionClass
in interfaceExtensionProvider<Generator,GeneratorEntsoeCategory>
- Returns:
- the type of extensions provided by this provider.
-
hasSubElements
public boolean hasSubElements()
- Specified by:
hasSubElements
in interfaceExtensionXmlSerializer<Generator,GeneratorEntsoeCategory>
-
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,GeneratorEntsoeCategory>
-
getNamespaceUri
public String getNamespaceUri()
Description copied from interface:ExtensionXmlSerializer
Return the namespace URI of the extension in the latest version of its serialization.- Specified by:
getNamespaceUri
in interfaceExtensionXmlSerializer<Generator,GeneratorEntsoeCategory>
-
getNamespacePrefix
public String getNamespacePrefix()
- Specified by:
getNamespacePrefix
in interfaceExtensionXmlSerializer<Generator,GeneratorEntsoeCategory>
-
write
public void write(GeneratorEntsoeCategory entsoeCategory, XmlWriterContext context) throws XMLStreamException
- Specified by:
write
in interfaceExtensionXmlSerializer<Generator,GeneratorEntsoeCategory>
- Throws:
XMLStreamException
-
read
public GeneratorEntsoeCategory read(Generator generator, XmlReaderContext context) throws XMLStreamException
- Specified by:
read
in interfaceExtensionXmlSerializer<Generator,GeneratorEntsoeCategory>
- Throws:
XMLStreamException
-
-