Package | Description |
---|---|
com.powsybl.iidm.xml | |
com.powsybl.iidm.xml.util |
Modifier and Type | Class and Description |
---|---|
class |
NetworkXmlReaderContext |
class |
NetworkXmlWriterContext |
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.
|
Copyright © 2020. All rights reserved.