|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.apache.tapestry.valid.NumberValidator.NumberAdaptor
public abstract static class NumberValidator.NumberAdaptor
This class is not meant for use outside of NumberValidator; it is public only to fascilitate some unit testing.
| Constructor Summary | |
|---|---|
NumberValidator.NumberAdaptor()
|
|
| Method Summary | |
|---|---|
protected abstract Number |
coerce(Number number)
Invoked when comparing two Numbers of different types. |
int |
compare(Number left,
Number right)
|
abstract int |
getNumberType()
Indicates the type of the number represented -- integer or real. |
abstract Number |
parse(String value)
Parses a non-empty String into the correct subclass of
Number. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NumberValidator.NumberAdaptor()
| Method Detail |
|---|
public abstract Number parse(String value)
String into the correct subclass of
Number.
NumberFormatException - if the String can not be parsed.public abstract int getNumberType()
public int compare(Number left,
Number right)
protected abstract Number coerce(Number number)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||