| java.lang.Object org.apache.tapestry.ioc.services.CoercionTuple
CoercionTuple | final public class CoercionTuple (Code) | | An immutable object that represents a mapping from one type to another. This is also the
contribution type when buildign the TypeCoercer service. Wraps a
Coercion object that
performs the work with additional properties that describe the input and output types of the
coercion, needed when searching for an appropriate coercion (or combination of coercions).
< Parameters: S - >source (input) type< Parameters: T - >target (output) type |
CoercionTuple | public CoercionTuple(Class<S> sourceType, Class<T> targetType, Coercion<S, T> coercion)(Code) | | Standard constructor, which defaults wrap to true.
|
CoercionTuple | public CoercionTuple(Class<S> sourceType, Class<T> targetType, Coercion<S, T> coercion, boolean wrap)(Code) | | Internal-use constructor.
Parameters: sourceType - the source (or input) type of the coercion Parameters: targetType - the target (or output) type of the coercion Parameters: coercion - the object that performs the coercion Parameters: wrap - if true, the coercion is wrapped to provide a useful toString() |
|
|