01: package org.jreform;
02:
03: /**
04: * Represents the type of an input field's data.
05: *
06: * @author armandino (at) gmail.com
07: */
08: public interface InputDataType<T> {
09: /**
10: * Parses the specified string into an object of this data type's class.
11: */
12: public T parseValue(String value);
13:
14: /**
15: * Returns class of input's data.
16: */
17: public Class<T> getInputDataClass();
18:
19: }
|