KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > core > internal > databinding > validation > NumberToUnboundedNumberValidator


1 /*******************************************************************************
2  * Copyright (c) 2007 IBM Corporation and others.
3  * All rights reserved. This program and the accompanying materials
4  * are made available under the terms of the Eclipse Public License v1.0
5  * which accompanies this distribution, and is available at
6  * http://www.eclipse.org/legal/epl-v10.html
7  *
8  * Contributors:
9  * IBM Corporation - initial API and implementation
10  ******************************************************************************/

11
12 package org.eclipse.core.internal.databinding.validation;
13
14 import org.eclipse.core.internal.databinding.conversion.NumberToNumberConverter;
15
16 /**
17  * Validates if a Number can fit in an unbounded number (e.g. BigInteger, BigDecimal, etc.).
18  * <p>
19  * Class is thread safe.
20  * </p>
21  *
22  * @since 1.0
23  */

24 public class NumberToUnboundedNumberValidator extends NumberToNumberValidator {
25     /**
26      * @param converter
27      */

28     public NumberToUnboundedNumberValidator(NumberToNumberConverter converter) {
29         super(converter, null, null);
30     }
31
32     /*
33      * (non-Javadoc)
34      *
35      * @see org.eclipse.core.internal.databinding.validation.NumberToNumberValidator#inRange(java.lang.Number)
36      */

37     protected boolean inRange(Number JavaDoc number) {
38         return true;
39     }
40 }
41
Popular Tags