|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.chromattic.spi.type.SimpleTypeProvider<I,E>
I - the generic internal typeE - the generic external typepublic abstract class SimpleTypeProvider<I,E>
The base class for the simple type Service Provider Interface. A provider performs a bidiectional conversion between an internal type and an external type, in addition a provider must be able to convert a string value to an external representation and vice-versa.
| Nested Class Summary | |
|---|---|
static class |
SimpleTypeProvider.BINARY<E>
|
static class |
SimpleTypeProvider.BOOLEAN<E>
|
static class |
SimpleTypeProvider.DATE<E>
|
static class |
SimpleTypeProvider.DOUBLE<E>
|
static class |
SimpleTypeProvider.LONG<E>
|
static class |
SimpleTypeProvider.NAME<E>
|
static class |
SimpleTypeProvider.PATH<E>
|
static class |
SimpleTypeProvider.STRING<E>
|
| Method Summary | |
|---|---|
abstract E |
fromString(java.lang.String s)
Provide an external representation of a string value. |
abstract E |
getExternal(I i)
Provide an external representation of an internal value. |
abstract java.lang.Class<E> |
getExternalType()
Returns the external class type. |
abstract I |
getInternal(E e)
Provide an internal representation of an external value. |
abstract java.lang.Class<I> |
getInternalType()
Returns the internal class type. |
abstract java.lang.String |
toString(E e)
Provide a string representation of an external value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public abstract java.lang.Class<I> getInternalType()
public abstract java.lang.Class<E> getExternalType()
public abstract I getInternal(E e)
throws TypeConversionException
e - the external value
TypeConversionException - anything that would prevent the conversion
public abstract E getExternal(I i)
throws TypeConversionException
i - the internal value
TypeConversionException - anything that would prevent the conversion
public abstract E fromString(java.lang.String s)
throws TypeConversionException
s - the string value
TypeConversionException - anything that would prevent the conversion
public abstract java.lang.String toString(E e)
throws TypeConversionException
e - the external value
TypeConversionException - anything that would prevent the conversion
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||