public class FormattedTemporalConverter<T extends java.time.temporal.TemporalAccessor> extends java.lang.Object implements Converter<java.lang.String,T,Component>, java.io.Serializable
IGNORED_VALUE
Constructor and Description |
---|
FormattedTemporalConverter(java.time.temporal.TemporalQuery<T> parseTo)
Construct with a parseTo method.
|
Modifier and Type | Method and Description |
---|---|
T |
coerceToBean(java.lang.String compAttr,
Component component,
BindContext ctx)
Convert String to Temporal.
|
java.lang.String |
coerceToUi(T beanProp,
Component component,
BindContext ctx)
Convert Temporal to String.
|
public FormattedTemporalConverter(java.time.temporal.TemporalQuery<T> parseTo)
parseTo
- Temporal method parsed topublic java.lang.String coerceToUi(T beanProp, Component component, BindContext ctx)
coerceToUi
in interface Converter<java.lang.String,T extends java.time.temporal.TemporalAccessor,Component>
beanProp
- temporal to be convertedcomponent
- associated componentctx
- bind context for associate Binding
and extra parameter (e.g. format)public T coerceToBean(java.lang.String compAttr, Component component, BindContext ctx)
coerceToBean
in interface Converter<java.lang.String,T extends java.time.temporal.TemporalAccessor,Component>
compAttr
- temporal in string formcomponent
- associated componentctx
- bind context for associate Binding
and extra parameter (e.g. format)Copyright © 2005-2021 Potix Corporation. All Rights Reserved.