public void serializeBody(
     be.ac.ulg.montefiore.run.totem.util.jaxb.runtime.XMLSerializer context)
     throws org.xml.sax.SAXException {
   if (!has_Value) {
     context.reportError(
         com.sun.xml.bind.serializer.Util.createMissingObjectError(this, "Value"));
   }
   try {
     context.text(javax.xml.bind.DatatypeConverter.printInt(((int) _Value)), "Value");
   } catch (java.lang.Exception e) {
     be.ac.ulg.montefiore.run.totem.util.jaxb.runtime.Util.handlePrintConversionException(
         this, e, context);
   }
 }
 public void serializeAttributes(
     be.ac.ulg.montefiore.run.totem.util.jaxb.runtime.XMLSerializer context)
     throws org.xml.sax.SAXException {
   if (!has_Value) {
     context.reportError(
         com.sun.xml.bind.serializer.Util.createMissingObjectError(this, "Value"));
   }
   context.startAttribute("", "name");
   try {
     context.text(((java.lang.String) _Name), "Name");
   } catch (java.lang.Exception e) {
     be.ac.ulg.montefiore.run.totem.util.jaxb.runtime.Util.handlePrintConversionException(
         this, e, context);
   }
   context.endAttribute();
 }
 public void serializeURIs(
     be.ac.ulg.montefiore.run.totem.util.jaxb.runtime.XMLSerializer context)
     throws org.xml.sax.SAXException {
   if (!has_Value) {
     context.reportError(
         com.sun.xml.bind.serializer.Util.createMissingObjectError(this, "Value"));
   }
 }
 public void serializeAttributes(
     be.ac.ulg.montefiore.run.totem.util.jaxb.runtime.XMLSerializer context)
     throws org.xml.sax.SAXException {
   int idx1 = 0;
   final int len1 = ((_Cos == null) ? 0 : _Cos.size());
   if (_LlcId != null) {
     context.startAttribute("", "llcId");
     try {
       context.text(((java.lang.String) _LlcId), "LlcId");
     } catch (java.lang.Exception e) {
       be.ac.ulg.montefiore.run.totem.util.jaxb.runtime.Util.handlePrintConversionException(
           this, e, context);
     }
     context.endAttribute();
   }
   super.serializeAttributes(context);
   while (idx1 != len1) {
     idx1 += 1;
   }
 }
 public void serializeBody(be.ac.ulg.montefiore.run.totem.util.jaxb.runtime.XMLSerializer context)
     throws org.xml.sax.SAXException {
   int idx1 = 0;
   final int len1 = ((_Cos == null) ? 0 : _Cos.size());
   super.serializeBody(context);
   while (idx1 != len1) {
     context.startElement("http://jaxb.model.scenario.totem.run.montefiore.ulg.ac.be", "cos");
     int idx_0 = idx1;
     context.childAsURIs(((com.sun.xml.bind.JAXBObject) _Cos.get(idx_0++)), "Cos");
     context.endNamespaceDecls();
     int idx_1 = idx1;
     context.childAsAttributes(((com.sun.xml.bind.JAXBObject) _Cos.get(idx_1++)), "Cos");
     context.endAttributes();
     context.childAsBody(((com.sun.xml.bind.JAXBObject) _Cos.get(idx1++)), "Cos");
     context.endElement();
   }
 }