Package com.powsybl.cgmes.extensions
Class BaseVoltageMappingSerDe
java.lang.Object
com.powsybl.commons.extensions.AbstractExtensionSerDe<Network,BaseVoltageMapping>
com.powsybl.cgmes.extensions.BaseVoltageMappingSerDe
- All Implemented Interfaces:
ExtensionProvider<Network,
,BaseVoltageMapping> ExtensionSerDe<Network,
,BaseVoltageMapping> Versionable
@AutoService(ExtensionSerDe.class)
public class BaseVoltageMappingSerDe
extends AbstractExtensionSerDe<Network,BaseVoltageMapping>
- Author:
- Miora Vedelago <miora.ralambotiana at rte-france.com>
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionProvides the map whose keys are the array field names and whose values are the single element field names.boolean
isSerializable
(BaseVoltageMapping extension) ABaseVoltageMapping
extension is serializable if it contains at least one base voltageread
(Network extendable, DeserializerContext context) void
write
(BaseVoltageMapping extension, SerializerContext context) Methods inherited from class com.powsybl.commons.extensions.AbstractExtensionSerDe
getCategoryName, getExtensionClass, getExtensionName, getNamespacePrefix, getNamespaceUri, getVersion, getXsdAsStream
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.ExtensionSerDe
checkExtensionVersionSupported, getName, getNamespaceUri, getVersion, getVersions, getXsdAsStreamList
-
Field Details
-
BASE_VOLTAGE_ARRAY_ELEMENT
- See Also:
-
BASE_VOLTAGE_ROOT_ELEMENT
- See Also:
-
-
Constructor Details
-
BaseVoltageMappingSerDe
public BaseVoltageMappingSerDe()
-
-
Method Details
-
getArrayNameToSingleNameMap
Description copied from interface:ExtensionSerDe
Provides the map whose keys are the array field names and whose values are the single element field names. This is used to deduce the name of an element inside and array. -
write
-
read
-
isSerializable
ABaseVoltageMapping
extension is serializable if it contains at least one base voltage- Parameters:
extension
- The extension to check- Returns:
- true if it contains at least one link, false if not
-