public void serializeBody(
     com.sun.identity.saml2.jaxb.assertion.impl.runtime.XMLSerializer context)
     throws org.xml.sax.SAXException {
   int idx1 = 0;
   final int len1 = ((_Audience == null) ? 0 : _Audience.size());
   super.serializeBody(context);
   while (idx1 != len1) {
     context.startElement("urn:oasis:names:tc:SAML:2.0:assertion", "Audience");
     int idx_0 = idx1;
     try {
       idx_0 += 1;
     } catch (java.lang.Exception e) {
       com.sun.identity.saml2.jaxb.assertion.impl.runtime.Util.handlePrintConversionException(
           this, e, context);
     }
     context.endNamespaceDecls();
     int idx_1 = idx1;
     try {
       idx_1 += 1;
     } catch (java.lang.Exception e) {
       com.sun.identity.saml2.jaxb.assertion.impl.runtime.Util.handlePrintConversionException(
           this, e, context);
     }
     context.endAttributes();
     try {
       context.text(((java.lang.String) _Audience.get(idx1++)), "Audience");
     } catch (java.lang.Exception e) {
       com.sun.identity.saml2.jaxb.assertion.impl.runtime.Util.handlePrintConversionException(
           this, e, context);
     }
     context.endElement();
   }
 }
예제 #2
0
 public void serializeBody(
     com.sun.identity.saml2.jaxb.assertion.impl.runtime.XMLSerializer context)
     throws org.xml.sax.SAXException {
   int idx1 = 0;
   final int len1 =
       ((_AssertionIDRefOrAssertionURIRefOrAssertion == null)
           ? 0
           : _AssertionIDRefOrAssertionURIRefOrAssertion.size());
   while (idx1 != len1) {
     {
       java.lang.Object o = _AssertionIDRefOrAssertionURIRefOrAssertion.get(idx1);
       if (o instanceof com.sun.xml.bind.JAXBObject) {
         context.childAsBody(
             ((com.sun.xml.bind.JAXBObject)
                 _AssertionIDRefOrAssertionURIRefOrAssertion.get(idx1++)),
             "AssertionIDRefOrAssertionURIRefOrAssertion");
       } else {
         if (o instanceof java.lang.Object) {
           context.childAsBody(
               ((com.sun.xml.bind.JAXBObject)
                   _AssertionIDRefOrAssertionURIRefOrAssertion.get(idx1++)),
               "AssertionIDRefOrAssertionURIRefOrAssertion");
         } else {
           com.sun.identity.saml2.jaxb.assertion.impl.runtime.Util.handleTypeMismatchError(
               context, this, "AssertionIDRefOrAssertionURIRefOrAssertion", o);
         }
       }
     }
   }
 }
 public void serializeBody(
     com.sun.identity.saml2.jaxb.assertion.impl.runtime.XMLSerializer context)
     throws org.xml.sax.SAXException {
   context.startElement("http://www.w3.org/2000/09/xmldsig#", "DSAKeyValue");
   super.serializeURIs(context);
   context.endNamespaceDecls();
   super.serializeAttributes(context);
   context.endAttributes();
   super.serializeBody(context);
   context.endElement();
 }
예제 #4
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:metadata", "ContactPerson");
   super.serializeURIs(context);
   context.endNamespaceDecls();
   super.serializeAttributes(context);
   context.endAttributes();
   super.serializeBody(context);
   context.endElement();
 }
예제 #5
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();
 }
 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", "AuthnContextDeclRef");
   context.endNamespaceDecls();
   context.endAttributes();
   try {
     context.text(((java.lang.String) _Value), "Value");
   } catch (java.lang.Exception e) {
     com.sun.identity.saml2.jaxb.assertion.impl.runtime.Util.handlePrintConversionException(
         this, e, context);
   }
   context.endElement();
 }
예제 #7
0
 public void serializeAttributes(
     com.sun.identity.saml2.jaxb.assertion.impl.runtime.XMLSerializer context)
     throws org.xml.sax.SAXException {
   int idx1 = 0;
   final int len1 = ((_Any == null) ? 0 : _Any.size());
   context.startAttribute("", "URI");
   try {
     context.text(((java.lang.String) _URI), "URI");
   } catch (java.lang.Exception e) {
     com.sun.identity.saml2.jaxb.assertion.impl.runtime.Util.handlePrintConversionException(
         this, e, context);
   }
   context.endAttribute();
   while (idx1 != len1) {
     idx1 += 1;
   }
 }
예제 #8
0
 public void serializeBody(
     com.sun.identity.saml2.jaxb.assertion.impl.runtime.XMLSerializer context)
     throws org.xml.sax.SAXException {
   int idx1 = 0;
   final int len1 = ((_Any == null) ? 0 : _Any.size());
   while (idx1 != len1) {
     context.childAsBody(((com.sun.xml.bind.JAXBObject) _Any.get(idx1++)), "Any");
   }
 }