Package com.powsybl.cgmes.extensions
Class CgmesControlAreasXmlSerializer
- java.lang.Object
-
- com.powsybl.commons.extensions.AbstractExtensionXmlSerializer<Network,CgmesControlAreas>
-
- com.powsybl.cgmes.extensions.CgmesControlAreasXmlSerializer
-
- All Implemented Interfaces:
ExtensionProvider<Network,CgmesControlAreas>
,ExtensionXmlSerializer<Network,CgmesControlAreas>
,Versionable
@AutoService(ExtensionXmlSerializer.class) public class CgmesControlAreasXmlSerializer extends AbstractExtensionXmlSerializer<Network,CgmesControlAreas>
- Author:
- Marcos de Miguel
-
-
Constructor Summary
Constructors Constructor Description CgmesControlAreasXmlSerializer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
isSerializable(CgmesControlAreas extension)
Check if an extension can be serialized or not.CgmesControlAreas
read(Network extendable, XmlReaderContext context)
void
write(CgmesControlAreas 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
-
isSerializable
public boolean isSerializable(CgmesControlAreas 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
-
write
public void write(CgmesControlAreas extension, XmlWriterContext context) throws XMLStreamException
- Throws:
XMLStreamException
-
read
public CgmesControlAreas read(Network extendable, XmlReaderContext context) throws XMLStreamException
- Throws:
XMLStreamException
-
-