|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
T - the type of value objectpublic static interface TypeSystem.TypeFactory<T>

Factory interface for creating values from strings.
| Method Summary | |
|---|---|
String |
asReadableString(Object value)
Get a readable and potentially shorter string representation of the supplied value. |
String |
asString(Object value)
Get the string representation of the supplied value. |
T |
create(Object value)
Create the typed representation of the value given the supplied object representation. |
T |
create(String value)
Create the typed representation of the value given the supplied string representation. |
Comparator<T> |
getComparator()
Get a comparator that can be used to store the values of this type. |
Class<T> |
getType()
Get the class representing the value type. |
String |
getTypeName()
Get the name of the type created by this factory. |
long |
length(Object value)
Get the length of the supplied value. |
| Method Detail |
|---|
Class<T> getType()
Comparator<T> getComparator()
String getTypeName()
T create(String value)
throws ValueFormatException
value - the string representation of the value
type
ValueFormatException - if the string cannot be converted to a typed value
T create(Object value)
throws ValueFormatException
value - the object representation of the value
type
ValueFormatException - if the object cannot be converted to a typed valueString asString(Object value)
value - the value
long length(Object value)
value - the value
String asReadableString(Object value)
value - the value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||