public void serializeURIs(extensionTools.opl2.generated.impl.runtime.XMLSerializer context) throws org.xml.sax.SAXException { int idx2 = 0; final int len2 = ((this._ConditionClause == null) ? 0 : this._ConditionClause.size()); int idx3 = 0; final int len3 = ((this._Role == null) ? 0 : this._Role.size()); int idx5 = 0; final int len5 = ((this._PathLabel == null) ? 0 : this._PathLabel.size()); while (idx3 != len3) { if (this._Role.get(idx3) instanceof javax.xml.bind.Element) { context.childAsURIs(((com.sun.xml.bind.JAXBObject) this._Role.get(idx3++)), "Role"); } else { idx3 += 1; } } while (idx2 != len2) { if (this._ConditionClause.get(idx2) instanceof javax.xml.bind.Element) { context.childAsURIs( ((com.sun.xml.bind.JAXBObject) this._ConditionClause.get(idx2++)), "ConditionClause"); } else { idx2 += 1; } } while (idx5 != len5) { try { idx5 += 1; } catch (java.lang.Exception e) { extensionTools.opl2.generated.impl.runtime.Util.handlePrintConversionException( this, e, context); } } }
public void serializeBody(extensionTools.opl2.generated.impl.runtime.XMLSerializer context) throws org.xml.sax.SAXException { int idx2 = 0; final int len2 = ((this._ConditionClause == null) ? 0 : this._ConditionClause.size()); int idx3 = 0; final int len3 = ((this._Role == null) ? 0 : this._Role.size()); int idx5 = 0; final int len5 = ((this._PathLabel == null) ? 0 : this._PathLabel.size()); context.startElement("", "ProcessName"); context.endNamespaceDecls(); context.endAttributes(); try { context.text(((java.lang.String) this._ProcessName), "ProcessName"); } catch (java.lang.Exception e) { extensionTools.opl2.generated.impl.runtime.Util.handlePrintConversionException( this, e, context); } context.endElement(); while (idx3 != len3) { if (this._Role.get(idx3) instanceof javax.xml.bind.Element) { context.childAsBody(((com.sun.xml.bind.JAXBObject) this._Role.get(idx3++)), "Role"); } else { context.startElement("", "Role"); int idx_2 = idx3; context.childAsURIs(((com.sun.xml.bind.JAXBObject) this._Role.get(idx_2++)), "Role"); context.endNamespaceDecls(); int idx_3 = idx3; context.childAsAttributes(((com.sun.xml.bind.JAXBObject) this._Role.get(idx_3++)), "Role"); context.endAttributes(); context.childAsBody(((com.sun.xml.bind.JAXBObject) this._Role.get(idx3++)), "Role"); context.endElement(); } } if (this._LogicalRelation != null) { context.startElement("", "LogicalRelation"); context.endNamespaceDecls(); context.endAttributes(); try { context.text(((java.lang.String) this._LogicalRelation), "LogicalRelation"); } catch (java.lang.Exception e) { extensionTools.opl2.generated.impl.runtime.Util.handlePrintConversionException( this, e, context); } context.endElement(); } while (idx2 != len2) { if (this._ConditionClause.get(idx2) instanceof javax.xml.bind.Element) { context.childAsBody( ((com.sun.xml.bind.JAXBObject) this._ConditionClause.get(idx2++)), "ConditionClause"); } else { context.startElement("", "ConditionClause"); int idx_6 = idx2; context.childAsURIs( ((com.sun.xml.bind.JAXBObject) this._ConditionClause.get(idx_6++)), "ConditionClause"); context.endNamespaceDecls(); int idx_7 = idx2; context.childAsAttributes( ((com.sun.xml.bind.JAXBObject) this._ConditionClause.get(idx_7++)), "ConditionClause"); context.endAttributes(); context.childAsBody( ((com.sun.xml.bind.JAXBObject) this._ConditionClause.get(idx2++)), "ConditionClause"); context.endElement(); } } while (idx5 != len5) { context.startElement("", "PathLabel"); int idx_8 = idx5; try { idx_8 += 1; } catch (java.lang.Exception e) { extensionTools.opl2.generated.impl.runtime.Util.handlePrintConversionException( this, e, context); } context.endNamespaceDecls(); int idx_9 = idx5; try { idx_9 += 1; } catch (java.lang.Exception e) { extensionTools.opl2.generated.impl.runtime.Util.handlePrintConversionException( this, e, context); } context.endAttributes(); try { context.text(((java.lang.String) this._PathLabel.get(idx5++)), "PathLabel"); } catch (java.lang.Exception e) { extensionTools.opl2.generated.impl.runtime.Util.handlePrintConversionException( this, e, context); } context.endElement(); } }