code: @Override
  	protected void validateComponent(final List<Diagnostic> diags) {
  		super.validateComponent(diags);
  
  		if (!isEmpty()) {
  			String value = getValueAsString();
  
  			// Minimum Length
  			int min = getMinLength();
  
  			if (min > 0 && value.length() < min) {
  				diags.add(
  						createErrorDiagnostic(InternalMessages.DEFAULT_VALIDATION_ERROR_MIN_LENGTH,
  								this,
  								String.valueOf(min)));
  			}
  
  			// Maximum Length
  			int max = getMaxLength();
  
  			if (max > 0 && value.length() > max) {
  				diags.add(
  						createErrorDiagnostic(InternalMessages.DEFAULT_VALIDATION_ERROR_MAX_LENGTH,
  								this,
  								String.valueOf(max)));
  			}
  		}
  	}
docs: Override validateComponent to perform further validation.
  
  @param diags the list into which any validation diagnostics are added.