Package com.powsybl.iidm.xml.extensions
Class MeasurementsXmlSerializer<C extends Connectable<C>>
- java.lang.Object
-
- com.powsybl.commons.extensions.AbstractExtensionXmlSerializer<C,Measurements<C>>
-
- com.powsybl.iidm.xml.extensions.MeasurementsXmlSerializer<C>
-
- All Implemented Interfaces:
ExtensionProvider<C,Measurements<C>>
,ExtensionXmlSerializer<C,Measurements<C>>
,Versionable
@AutoService(ExtensionXmlSerializer.class) public class MeasurementsXmlSerializer<C extends Connectable<C>> extends AbstractExtensionXmlSerializer<C,Measurements<C>>
- Author:
- Miora Ralambotiana
-
-
Constructor Summary
Constructors Constructor Description MeasurementsXmlSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSerializable(Measurements<C> extension)
Check if an extension can be serialized or not.Measurements<C>
read(C extendable, XmlReaderContext context)
void
write(Measurements<C> extension, XmlWriterContext context)
-
Methods inherited from class com.powsybl.commons.extensions.AbstractExtensionXmlSerializer
getCategoryName, getExtensionClass, getExtensionName, getNamespacePrefix, getNamespaceUri, getXsdAsStream, hasSubElements
-
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
-
-
-
-
Method Detail
-
write
public void write(Measurements<C> extension, XmlWriterContext context) throws XMLStreamException
- Throws:
XMLStreamException
-
read
public Measurements<C> read(C extendable, XmlReaderContext context) throws XMLStreamException
- Throws:
XMLStreamException
-
isSerializable
public boolean isSerializable(Measurements<C> extension)
Description copied from interface:ExtensionXmlSerializer
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
-
-