/** {@inheritDoc} */ protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException { AgreementMethod am = (AgreementMethod) xmlObject; if (am.getAlgorithm() != null) { domElement.setAttributeNS(null, AgreementMethod.ALGORITHM_ATTRIBUTE_NAME, am.getAlgorithm()); } }
/** {@inheritDoc} */ protected void marshallAttributes(XMLObject xmlObject, Element domElement) throws MarshallingException { AgreementMethod am = (AgreementMethod) xmlObject; if (am.getAlgorithm() != null) { domElement.setAttributeNS(null, AgreementMethod.ALGORITHM_ATTRIBUTE_NAME, am.getAlgorithm()); } }
/** * Validate the algorithm URI. * * @param xmlObject the object to validate * @throws ValidationException thrown if the object is invalid */ protected void validateAlgorithm(AgreementMethod xmlObject) throws ValidationException { if (DatatypeHelper.isEmpty(xmlObject.getAlgorithm())) { throw new ValidationException("AgreementMethod algorithm URI was empty"); } }
/** * Validate the algorithm URI. * * @param xmlObject the object to validate * @throws ValidationException thrown if the object is invalid */ protected void validateAlgorithm(AgreementMethod xmlObject) throws ValidationException { if (DatatypeHelper.isEmpty(xmlObject.getAlgorithm())) { throw new ValidationException("AgreementMethod algorithm URI was empty"); } }