Package | Description |
---|---|
com.powsybl.iidm.xml | |
com.powsybl.iidm.xml.extensions | |
com.powsybl.iidm.xml.util |
Modifier and Type | Field and Description |
---|---|
static IidmXmlVersion |
IidmXmlConstants.CURRENT_IIDM_XML_VERSION |
Modifier and Type | Method and Description |
---|---|
static IidmXmlVersion |
IidmXmlVersion.fromNamespaceURI(String namespaceURI) |
IidmXmlVersion |
AbstractNetworkXmlContext.getVersion() |
static IidmXmlVersion |
IidmXmlVersion.of(String version,
String separator) |
static IidmXmlVersion |
IidmXmlVersion.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static IidmXmlVersion[] |
IidmXmlVersion.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static void |
AbstractConnectableXml.writeCurrentLimits(Integer index,
CurrentLimits limits,
XMLStreamWriter writer,
IidmXmlVersion version) |
static void |
AbstractConnectableXml.writeCurrentLimits(Integer index,
CurrentLimits limits,
XMLStreamWriter writer,
String nsUri,
IidmXmlVersion version) |
Constructor and Description |
---|
NetworkXmlReaderContext(Anonymizer anonymizer,
XMLStreamReader reader,
ImportOptions options,
IidmXmlVersion version) |
Modifier and Type | Method and Description |
---|---|
void |
AbstractVersionableNetworkExtensionXmlSerializer.checkWritingCompatibility(String extensionVersion,
IidmXmlVersion version) |
String |
AbstractVersionableNetworkExtensionXmlSerializer.getVersion(IidmXmlVersion networkVersion) |
Constructor and Description |
---|
AbstractVersionableNetworkExtensionXmlSerializer(String extensionName,
Class<? super E> extensionClass,
boolean subElements,
String namespacePrefix,
Map<IidmXmlVersion,com.google.common.collect.ImmutableSortedSet<String>> extensionVersions,
Map<String,String> namespaceUris) |
Modifier and Type | Method and Description |
---|---|
static <C extends AbstractNetworkXmlContext> |
IidmXmlUtil.assertMaximumVersion(String rootElementName,
String elementName,
IidmXmlUtil.ErrorMessage type,
IidmXmlVersion maxVersion,
C context)
Assert that the context's IIDM-XML version equals or is less recent than a given IIDM-XML version.
|
static <C extends AbstractNetworkXmlContext> |
IidmXmlUtil.assertMinimumVersion(String rootElementName,
String elementName,
IidmXmlUtil.ErrorMessage type,
IidmXmlVersion minVersion,
C context)
Assert that the context's IIDM-XML version equals or is more recent than a given IIDM-XML version.
|
static <C extends AbstractNetworkXmlContext> |
IidmXmlUtil.assertMinimumVersionAndRunIfNotDefault(boolean valueIsNotDefault,
String rootElementName,
String elementName,
IidmXmlUtil.ErrorMessage type,
IidmXmlVersion minVersion,
C context,
Runnable runnable)
Assert that the context's IIDM-XML version equals or is more recent than a given IIDM-XML version if the value of an attribute or the state of an equipment
is not default (interpretable for previous versions).
|
static <C extends AbstractNetworkXmlContext> |
IidmXmlUtil.assertMinimumVersionIfNotDefault(boolean valueIsNotDefault,
String rootElementName,
String elementName,
IidmXmlUtil.ErrorMessage type,
IidmXmlVersion minVersion,
C context)
Assert that the context's IIDM-XML version equals or is more recent than a given IIDM-XML version if the value of an attribute or the state of an equipment
is not default (interpretable for previous versions).
|
static <C extends AbstractNetworkXmlContext> |
IidmXmlUtil.assertStrictMaximumVersion(String rootElementName,
String elementName,
IidmXmlUtil.ErrorMessage type,
IidmXmlVersion maxVersion,
C context)
Assert that the context's IIDM-XML version is strictly older than a given IIDM-XML version.
|
static <C extends AbstractNetworkXmlContext> |
IidmXmlUtil.runFromMinimumVersion(IidmXmlVersion minVersion,
C context,
Runnable runnable)
Run a given runnable if the context's IIDM-XML version equals or is more recent than a given minimum IIDM-XML version.
|
static <C extends AbstractNetworkXmlContext> |
IidmXmlUtil.runUntilMaximumVersion(IidmXmlVersion maxVersion,
C context,
Runnable runnable)
Run a given runnable if the context's IIDM-XML version equals or is older than a given maximum IIDM-XML version.
|
static void |
IidmXmlUtil.writeBooleanAttributeFromMinimumVersion(String rootElementName,
String attributeName,
boolean value,
boolean defaultValue,
IidmXmlUtil.ErrorMessage type,
IidmXmlVersion minVersion,
NetworkXmlWriterContext context)
Write a mandatory boolean attribute from a given minimum IIDM-XML version.
|
static void |
IidmXmlUtil.writeDoubleAttributeFromMinimumVersion(String rootElementName,
String attributeName,
double value,
double defaultValue,
IidmXmlUtil.ErrorMessage type,
IidmXmlVersion minVersion,
NetworkXmlWriterContext context)
Write a double attribute from a given minimum IIDM-XML version if its value is defined.
|
static void |
IidmXmlUtil.writeDoubleAttributeFromMinimumVersion(String rootElementName,
String attributeName,
double value,
IidmXmlUtil.ErrorMessage type,
IidmXmlVersion minVersion,
NetworkXmlWriterContext context)
Write a double attribute from a given minimum IIDM-XML version if its value is defined.
|
static void |
IidmXmlUtil.writeIntAttributeUntilMaximumVersion(String attributeName,
int value,
IidmXmlVersion maxVersion,
NetworkXmlWriterContext context)
Write a mandatory int attribute until a given maximum IIDM-XML version.
|
Copyright © 2020. All rights reserved.