@Override
	public boolean validate(final ValidationContext ctx, final Object value) {
		boolean validates = false;
		if (this.numberType.contains(NumberType.ntInteger)) {
			try {
				Integer.parseInt((String) value);
				validates = true;
			} catch (final Exception e) {
			}
		}
		if (this.numberType.contains(NumberType.ntDouble)) {
			try {
				Double.parseDouble((String) value);
				validates = true;
			} catch (final Exception e) {
			}
		}
		if (this.numberType.contains(NumberType.ntFloat)) {
			try {
				Float.parseFloat((String) value);
				validates = true;
			} catch (final Exception e) {
			}
		}
		if (!validates) {
			this.error = String.format(this.errorMessage, value == null ? null
					: value.toString());
		}
		return validates;
	}