/** {@inheritDoc} */ protected void marshallAttributes(XMLObject samlElement, Element domElement) throws MarshallingException { StatusCode statusCode = (StatusCode) samlElement; QName statusValue = statusCode.getValue(); if (statusValue != null) { domElement.setAttributeNS(null, StatusCode.VALUE_ATTRIB_NAME, XMLHelper.qnameToContentString(statusValue)); } } }
/** * Validates that the status code has a value. * * @param statusCode status code to validate * * @throws ValidationException thrown if the status code does not have a value */ protected void validateValue(StatusCode statusCode) throws ValidationException { QName value = statusCode.getValue(); if (value == null) { throw new ValidationException("No Value attribute present"); } }
QName statusValue = statusCode.getValue();