org.chromattic.spi.type
Class SimpleTypeProvider<I,E>

java.lang.Object
  extended by org.chromattic.spi.type.SimpleTypeProvider<I,E>
Direct Known Subclasses:
SimpleTypeProvider.BINARY, SimpleTypeProvider.BOOLEAN, SimpleTypeProvider.DATE, SimpleTypeProvider.DOUBLE, SimpleTypeProvider.LONG, SimpleTypeProvider.NAME, SimpleTypeProvider.PATH, SimpleTypeProvider.STRING

public abstract class SimpleTypeProvider<I,E>
extends java.lang.Object

The base class for the simple type Service Provider Interface.

Version:
$Revision$
Author:
Julien Viet

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)
           
abstract  E getExternal(I i)
           
abstract  java.lang.Class<E> getExternalType()
           
abstract  I getInternal(E e)
           
abstract  java.lang.Class<I> getInternalType()
           
abstract  java.lang.String toString(E e)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getInternalType

public abstract java.lang.Class<I> getInternalType()

getExternalType

public abstract java.lang.Class<E> getExternalType()

getInternal

public abstract I getInternal(E e)
                       throws TypeConversionException
Throws:
TypeConversionException

getExternal

public abstract E getExternal(I i)
                       throws TypeConversionException
Throws:
TypeConversionException

fromString

public abstract E fromString(java.lang.String s)
                      throws TypeConversionException
Throws:
TypeConversionException

toString

public abstract java.lang.String toString(E e)
                                   throws TypeConversionException
Throws:
TypeConversionException


Copyright © 2011 eXo Platform SAS. All Rights Reserved.