/** * 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 validateStringContent(T xmlObject) throws ValidationException { if (! isAllowEmptyContent()) { if (DatatypeHelper.isEmpty(xmlObject.getValue())) { throw new ValidationException("String 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 validateStringContent(T xmlObject) throws ValidationException { if (! isAllowEmptyContent()) { if (DatatypeHelper.isEmpty(xmlObject.getValue())) { throw new ValidationException("String content may not be empty"); } } }