Package com.powsybl.iidm.xml
Class NodeBreakerViewSwitchXml
- java.lang.Object
-
- com.powsybl.iidm.xml.NodeBreakerViewSwitchXml
-
public class NodeBreakerViewSwitchXml extends Object
- Author:
- Geoffroy Jamgotchian
-
-
Constructor Summary
Constructors Constructor Description NodeBreakerViewSwitchXml()
-
Method Summary
-
-
-
Method Detail
-
isValid
protected boolean isValid(Switch s, VoltageLevel vl)
-
writeRootElementAttributes
protected void writeRootElementAttributes(Switch s, VoltageLevel vl, NetworkXmlWriterContext context) throws XMLStreamException
- Throws:
XMLStreamException
-
createAdder
protected VoltageLevel.NodeBreakerView.SwitchAdder createAdder(VoltageLevel vl)
-
readRootElementAttributes
protected Switch readRootElementAttributes(VoltageLevel.NodeBreakerView.SwitchAdder adder, VoltageLevel voltageLevel, NetworkXmlReaderContext context)
-
getRootElementName
protected String getRootElementName()
-
hasSubElements
protected boolean hasSubElements(Switch s)
-
readSubElements
protected void readSubElements(Switch s, NetworkXmlReaderContext context) throws XMLStreamException
- Throws:
XMLStreamException
-
read
public final void read(P parent, NetworkXmlReaderContext context) throws XMLStreamException
- Throws:
XMLStreamException
-
hasSubElements
protected boolean hasSubElements(T identifiable, NetworkXmlWriterContext context)
-
writeSubElements
protected void writeSubElements(T identifiable, P parent, NetworkXmlWriterContext context) throws XMLStreamException
- Throws:
XMLStreamException
-
write
public final void write(T identifiable, P parent, NetworkXmlWriterContext context) throws XMLStreamException
- Throws:
XMLStreamException
-
readIdentifierAttributes
protected String readIdentifierAttributes(A adder, NetworkXmlReaderContext context)
-
readUntilEndRootElement
protected void readUntilEndRootElement(XMLStreamReader reader, XmlUtil.XmlEventHandler eventHandler) throws XMLStreamException
- Throws:
XMLStreamException
-
-