コード例 #1
0
 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);
   }
 }
コード例 #2
0
 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();
 }
コード例 #3
0
 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;
   }
 }