/** * {@inheritDoc} */ protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException { super.marshallElementContent(samlObject, domElement); AffiliateMember member = (AffiliateMember) samlObject; if (member.getID() != null) { domElement.appendChild(domElement.getOwnerDocument().createTextNode(member.getID())); } } }
/** {@inheritDoc} */ protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException { Delegate delegate = (Delegate) xmlObject; if (delegate.getDelegationInstant() != null) { String delInstant = Configuration.getSAMLDateFormatter().print(delegate.getDelegationInstant()); domElement.setAttributeNS(null, Delegate.DELEGATION_INSTANT_ATTRIB_NAME, delInstant); } if (!DatatypeHelper.isEmpty(delegate.getConfirmationMethod())) { domElement.setAttributeNS(null, Delegate.CONFIRMATION_METHOD_ATTRIB_NAME, delegate.getConfirmationMethod()); } super.marshallAttributes(xmlObject, domElement); }
/** {@inheritDoc} */ protected void marshallElementContent(XMLObject samlObject, Element domElement) throws MarshallingException { super.marshallElementContent(samlObject, domElement); AdditionalMetadataLocation aml = (AdditionalMetadataLocation) samlObject; if (aml.getLocationURI() != null) { domElement.appendChild(domElement.getOwnerDocument().createTextNode(aml.getLocationURI())); } } }