コード例 #1
0
 public void serializeBody(
     mx.com.prudential.lps.core.parsers.command.jaxb.impl.runtime.XMLSerializer context)
     throws org.xml.sax.SAXException {
   context.startElement("", "field_mapping");
   if (_Nil) {
     context
         .getNamespaceContext()
         .declareNamespace("http://www.w3.org/2001/XMLSchema-instance", null, true);
   } else {
     super.serializeURIs(context);
   }
   context.endNamespaceDecls();
   if (_Nil) {
     context.startAttribute("http://www.w3.org/2001/XMLSchema-instance", "nil");
     try {
       context.text(javax.xml.bind.DatatypeConverter.printBoolean(((boolean) _Nil)), "Nil");
     } catch (java.lang.Exception e) {
       mx.com.prudential.lps.core.parsers.command.jaxb.impl.runtime.Util
           .handlePrintConversionException(this, e, context);
     }
     context.endAttribute();
   } else {
     super.serializeAttributes(context);
   }
   context.endAttributes();
   if (!_Nil) {
     super.serializeBody(context);
   }
   context.endElement();
 }
コード例 #2
0
 public void serializeBody(
     com.sun.identity.saml2.jaxb.assertion.impl.runtime.XMLSerializer context)
     throws org.xml.sax.SAXException {
   context.startElement("urn:oasis:names:tc:SAML:2.0:assertion", "AttributeValue");
   if (_Nil) {
     context
         .getNamespaceContext()
         .declareNamespace("http://www.w3.org/2001/XMLSchema-instance", null, true);
   } else {
     super.serializeURIs(context);
   }
   context.endNamespaceDecls();
   if (_Nil) {
     context.startAttribute("http://www.w3.org/2001/XMLSchema-instance", "nil");
     try {
       context.text(javax.xml.bind.DatatypeConverter.printBoolean(((boolean) _Nil)), "Nil");
     } catch (java.lang.Exception e) {
       com.sun.identity.saml2.jaxb.assertion.impl.runtime.Util.handlePrintConversionException(
           this, e, context);
     }
     context.endAttribute();
   } else {
     super.serializeAttributes(context);
   }
   context.endAttributes();
   if (!_Nil) {
     super.serializeBody(context);
   }
   context.endElement();
 }
コード例 #3
0
ファイル: TimeoutTypeImpl.java プロジェクト: kir-dev/openam
 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();
   }
 }