org.apache.tapestry5.ioc.internal.services
Class CompoundCoercion<S,I,T>

java.lang.Object
  extended by org.apache.tapestry5.ioc.internal.services.CompoundCoercion<S,I,T>
Type Parameters:
S - The source (input) type
I - The intermediate type
T - The target (output) type
All Implemented Interfaces:
Coercion<S,T>

public class CompoundCoercion<S,I,T>
extends Object
implements Coercion<S,T>

Combines two coercions to create a coercsion through an intermediate type.


Constructor Summary
CompoundCoercion(Coercion<S,I> op1, Coercion<I,T> op2)
           
 
Method Summary
 T coerce(S input)
          Converts an input value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CompoundCoercion

public CompoundCoercion(Coercion<S,I> op1,
                        Coercion<I,T> op2)
Method Detail

coerce

public T coerce(S input)
Description copied from interface: Coercion
Converts an input value.

Specified by:
coerce in interface Coercion<S,T>
Parameters:
input - the input value

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2003-2012 The Apache Software Foundation.