org.peaseplate.internal.conversion
Class ConversionCollection<SOURCE>

java.lang.Object
  extended by org.peaseplate.internal.conversion.ConversionCollection<SOURCE>

public class ConversionCollection<SOURCE>
extends java.lang.Object


Constructor Summary
ConversionCollection(java.lang.Class<SOURCE> sourceType)
           
 
Method Summary
 void add(java.lang.Class<?> targetType, Conversion<SOURCE,?> conversion)
           
protected
<TARGET> Conversion<SOURCE,TARGET>
get(java.lang.Class<TARGET> targetType)
           
 java.lang.Class<SOURCE> getSourceType()
           
<TARGET> Conversion<SOURCE,TARGET>
resolve(java.lang.Class<TARGET> targetType)
           
protected
<TARGET> Conversion<SOURCE,TARGET>
resolveFromInterfaces(java.lang.Class<TARGET> targetType)
           
protected
<TARGET> Conversion<SOURCE,TARGET>
resolveFromPrimitiveType(java.lang.Class<TARGET> targetType)
           
protected
<TARGET> Conversion<SOURCE,TARGET>
resolveFromSuperType(java.lang.Class<TARGET> targetType)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConversionCollection

public ConversionCollection(java.lang.Class<SOURCE> sourceType)
Method Detail

getSourceType

public java.lang.Class<SOURCE> getSourceType()

add

public void add(java.lang.Class<?> targetType,
                Conversion<SOURCE,?> conversion)

get

protected <TARGET> Conversion<SOURCE,TARGET> get(java.lang.Class<TARGET> targetType)

resolve

public <TARGET> Conversion<SOURCE,TARGET> resolve(java.lang.Class<TARGET> targetType)

resolveFromPrimitiveType

protected <TARGET> Conversion<SOURCE,TARGET> resolveFromPrimitiveType(java.lang.Class<TARGET> targetType)

resolveFromSuperType

protected <TARGET> Conversion<SOURCE,TARGET> resolveFromSuperType(java.lang.Class<TARGET> targetType)

resolveFromInterfaces

protected <TARGET> Conversion<SOURCE,TARGET> resolveFromInterfaces(java.lang.Class<TARGET> targetType)


Copyright © 2008. All Rights Reserved.