Beispiel #1
0
 public void serializeAttributes(
     com.sun.identity.federation.jaxb.entityconfig.impl.runtime.XMLSerializer context)
     throws org.xml.sax.SAXException {
   if (_Id != null) {
     context.startAttribute("", "id");
     try {
       context.text(context.onID(this, ((java.lang.String) _Id)), "Id");
     } catch (java.lang.Exception e) {
       com.sun.identity.federation.jaxb.entityconfig.impl.runtime.Util
           .handlePrintConversionException(this, e, context);
     }
     context.endAttribute();
   }
   context.startAttribute("", "maxProcessingTime");
   try {
     context.text(
         javax.xml.bind.DatatypeConverter.printInteger(
             ((java.math.BigInteger) _MaxProcessingTime)),
         "MaxProcessingTime");
   } catch (java.lang.Exception e) {
     com.sun.identity.federation.jaxb.entityconfig.impl.runtime.Util
         .handlePrintConversionException(this, e, context);
   }
   context.endAttribute();
   if (_Actor != null) {
     context.startAttribute("http://schemas.xmlsoap.org/soap/envelope/", "actor");
     try {
       context.text(((java.lang.String) _Actor), "Actor");
     } catch (java.lang.Exception e) {
       com.sun.identity.federation.jaxb.entityconfig.impl.runtime.Util
           .handlePrintConversionException(this, e, context);
     }
     context.endAttribute();
   }
   if (has_MustUnderstand) {
     context.startAttribute("http://schemas.xmlsoap.org/soap/envelope/", "mustUnderstand");
     try {
       context.text(
           javax.xml.bind.DatatypeConverter.printBoolean(((boolean) _MustUnderstand)),
           "MustUnderstand");
     } catch (java.lang.Exception e) {
       com.sun.identity.federation.jaxb.entityconfig.impl.runtime.Util
           .handlePrintConversionException(this, e, context);
     }
     context.endAttribute();
   }
 }
 public void serializeBody(
     com.sun.identity.federation.jaxb.entityconfig.impl.runtime.XMLSerializer context)
     throws org.xml.sax.SAXException {
   super.serializeBody(context);
   context.startElement("urn:liberty:sec:2003-08", "NumberOfUses");
   context.endNamespaceDecls();
   context.endAttributes();
   try {
     context.text(
         javax.xml.bind.DatatypeConverter.printInteger(((java.math.BigInteger) _NumberOfUses)),
         "NumberOfUses");
   } catch (java.lang.Exception e) {
     com.sun.identity.federation.jaxb.entityconfig.impl.runtime.Util
         .handlePrintConversionException(this, e, context);
   }
   context.endElement();
 }
 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();
   }
 }