/** {@inheritDoc} */ protected void marshallAttributes(XMLObject samlElement, Element domElement) throws MarshallingException { AdditionalMetadataLocation aml = (AdditionalMetadataLocation) samlElement; if (aml.getNamespaceURI() != null) { domElement.setAttributeNS(null, AdditionalMetadataLocation.NAMESPACE_ATTRIB_NAME, aml.getNamespaceURI()); } }
/** {@inheritDoc} */ protected void processElementContent(XMLObject samlObject, String elementContent) { AdditionalMetadataLocation aml = (AdditionalMetadataLocation) samlObject; aml.setLocationURI(elementContent); } }
/** {@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())); } } }
/** {@inheritDoc} */ protected void processAttribute(XMLObject samlObject, Attr attribute) throws UnmarshallingException { if (attribute.getLocalName().equals(AdditionalMetadataLocation.NAMESPACE_ATTRIB_NAME)) { AdditionalMetadataLocation aml = (AdditionalMetadataLocation) samlObject; aml.setNamespaceURI(attribute.getValue()); } else { super.processAttribute(samlObject, attribute); } }