/** {@inheritDoc} */ public void validate(T xmlObject) throws ValidationException { validateBase64BinaryContent(xmlObject); }
/** * Validates the content of the XSBase64Binary object. * * @param xmlObject the object to evaluate * @throws ValidationException thrown if the content of the Base64Binary object is invalid */ protected void validateBase64BinaryContent(T xmlObject) throws ValidationException { if (! isAllowEmptyContent()) { if (DatatypeHelper.isEmpty(xmlObject.getValue())) { throw new ValidationException("Base64Binary content may not be empty"); } } }
/** * Validates the content of the XSBase64Binary object. * * @param xmlObject the object to evaluate * @throws ValidationException thrown if the content of the Base64Binary object is invalid */ protected void validateBase64BinaryContent(T xmlObject) throws ValidationException { if (! isAllowEmptyContent()) { if (DatatypeHelper.isEmpty(xmlObject.getValue())) { throw new ValidationException("Base64Binary content may not be empty"); } } }
/** {@inheritDoc} */ public void validate(T xmlObject) throws ValidationException { validateBase64BinaryContent(xmlObject); }