Uses of Class
org.apache.tapestry5.commons.services.CoercionTuple
-
Packages that use CoercionTuple Package Description org.apache.tapestry5.commons.internal org.apache.tapestry5.commons.internal.services org.apache.tapestry5.commons.services org.apache.tapestry5.http.modules org.apache.tapestry5.ioc.modules org.apache.tapestry5.json.modules Optional module that allows JSON objects to be used with theTypeCoercer
service, when the tapestry-ioc module is present.org.apache.tapestry5.modules org.apache.tapestry5.mongodb.modules -
-
Uses of CoercionTuple in org.apache.tapestry5.commons.internal
Method parameters in org.apache.tapestry5.commons.internal with type arguments of type CoercionTuple Modifier and Type Method Description static void
BasicTypeCoercions. provideBasicTypeCoercions(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration)
Provides the basic type coercions to aMappedConfiguration
instance.static void
BasicTypeCoercions. provideJSR310TypeCoercions(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration)
Provides the basic type coercions for JSR310 (java.time.*) to aConfiguration
instance. -
Uses of CoercionTuple in org.apache.tapestry5.commons.internal.services
Constructor parameters in org.apache.tapestry5.commons.internal.services with type arguments of type CoercionTuple Constructor Description TypeCoercerImpl(java.util.Map<CoercionTuple.Key,CoercionTuple> tuples)
-
Uses of CoercionTuple in org.apache.tapestry5.commons.services
Methods in org.apache.tapestry5.commons.services that return CoercionTuple Modifier and Type Method Description static <S,T>
CoercionTuple<S,T>CoercionTuple. create(java.lang.Class<S> sourceType, java.lang.Class<T> targetType, Coercion<S,T> coercion)
Convenience constructor to help with generics.Method parameters in org.apache.tapestry5.commons.services with type arguments of type CoercionTuple Modifier and Type Method Description static <S,T>
voidCoercionTuple. add(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration, java.lang.Class<S> sourceType, java.lang.Class<T> targetType, Coercion<S,T> coercion)
Convenience method to create a coercion tuple using create(Class, Class, Coercion) and add it to a MappedConfiguration in a single step.static <S,T>
voidCoercionTuple. override(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration, java.lang.Class<S> sourceType, java.lang.Class<T> targetType, Coercion<S,T> coercion)
Convenience method to create a coercion tuple using create(Class, Class, Coercion) and override a matching one in a MappedConfiguration in a single step. -
Uses of CoercionTuple in org.apache.tapestry5.http.modules
Method parameters in org.apache.tapestry5.http.modules with type arguments of type CoercionTuple Modifier and Type Method Description static void
TapestryHttpModule. contributeTypeCoercer(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration)
-
Uses of CoercionTuple in org.apache.tapestry5.ioc.modules
Method parameters in org.apache.tapestry5.ioc.modules with type arguments of type CoercionTuple Modifier and Type Method Description static void
TapestryIOCModule. provideBasicTypeCoercions(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration)
Contributes a set of standard type coercions to theTypeCoercer
service: Object to String Object to Boolean String to Double String to BigDecimal BigDecimal to Double Double to BigDecimal String to BigInteger BigInteger to Long String to Long Long to Byte Long to Short Long to Integer Double to Long Double to Float Float to Double Long to Double String to Boolean ("false" is always false, other non-blank strings are true) Number to Boolean (true if number value is non zero) Null to Boolean (always false) Collection to Boolean (false if empty) Object[] to List primitive[] to List Object to List (by wrapping as a singleton list) String to File String toTimeInterval
TimeInterval
to Long Object to Object[] (wrapping the object as an array) Collection to Object[] (via the toArray() method)Flow
to ListFlow
to Boolean (false if empty)static void
TapestryIOCModule. provideJSR10TypeCoercions(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration)
Contributes coercions to and from Java Time API (JSR 310) classes. -
Uses of CoercionTuple in org.apache.tapestry5.json.modules
Method parameters in org.apache.tapestry5.json.modules with type arguments of type CoercionTuple Modifier and Type Method Description static void
JSONModule. provideCoercions(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration)
-
Uses of CoercionTuple in org.apache.tapestry5.modules
Method parameters in org.apache.tapestry5.modules with type arguments of type CoercionTuple Modifier and Type Method Description static void
TapestryModule. contributeTypeCoercer(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration, ObjectLocator objectLocator, ThreadLocale threadLocale, AssetSource assetSource, DynamicTemplateParser dynamicTemplateParser)
Adds coercions: String toSelectModel
Map toSelectModel
Collection toGridDataSource
null toGridDataSource
List toSelectModel
ComponentResourcesAware
(typically, a component) toComponentResources
ComponentResources
toPropertyOverrides
String toRenderable
Renderable
toBlock
String toDateFormat
String toResource
(viaAssetSource.resourceForPath(String)
)Renderable
toRenderCommand
String toPattern
String toDateFormat
Resource
toDynamicTemplate
Asset
toResource
ValueEncoder
toValueEncoderFactory
-
Uses of CoercionTuple in org.apache.tapestry5.mongodb.modules
Method parameters in org.apache.tapestry5.mongodb.modules with type arguments of type CoercionTuple Modifier and Type Method Description static void
MongodbModule. contributeTypeCoercer(MappedConfiguration<CoercionTuple.Key,CoercionTuple> configuration)
-