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(
     freemind.controller.actions.generated.instance.impl.runtime.XMLSerializer context)
     throws org.xml.sax.SAXException {
   if (has_Width) {
     context.startAttribute("", "width");
     try {
       context.text(javax.xml.bind.DatatypeConverter.printInt(((int) _Width)));
     } catch (java.lang.Exception e) {
       freemind.controller.actions.generated.instance.impl.runtime.Util
           .handlePrintConversionException(this, e, context);
     }
     context.endAttribute();
   }
   super.serializeAttributes(context);
 }
Пример #3
0
 public void serializeAttributes(org.uniprot.uniprot.impl.runtime.XMLSerializer context)
     throws org.xml.sax.SAXException {
   int idx3 = 0;
   final int len3 = ((_Evidence == null) ? 0 : _Evidence.size());
   if (true) {
     context.startAttribute("", "evidence");
     while (idx3 != len3) {
       try {
         context.text(
             javax.xml.bind.DatatypeConverter.printInt(
                 ((int) ((java.lang.Integer) _Evidence.get(idx3++)).intValue())),
             "Evidence");
       } catch (java.lang.Exception e) {
         org.uniprot.uniprot.impl.runtime.Util.handlePrintConversionException(this, e, context);
       }
     }
     context.endAttribute();
   }
   if (_Position != null) {
     context.startAttribute("", "position");
     try {
       context.text(
           javax.xml.bind.DatatypeConverter.printInteger(((java.math.BigInteger) _Position)),
           "Position");
     } catch (java.lang.Exception e) {
       org.uniprot.uniprot.impl.runtime.Util.handlePrintConversionException(this, e, context);
     }
     context.endAttribute();
   }
   if (_Status != null) {
     context.startAttribute("", "status");
     try {
       context.text(((java.lang.String) _Status), "Status");
     } catch (java.lang.Exception e) {
       org.uniprot.uniprot.impl.runtime.Util.handlePrintConversionException(this, e, context);
     }
     context.endAttribute();
   }
 }