public class FacesConverter<T> extends Object implements org.ocpsoft.rewrite.param.Converter<T>
Rewrite framework Converter instances.| Modifier and Type | Method and Description |
|---|---|
T |
convert(org.ocpsoft.rewrite.event.Rewrite event,
org.ocpsoft.rewrite.context.EvaluationContext context,
Object value) |
static <T> FacesConverter<T> |
forId(String converterId)
Create a
Converter with the given ID. |
static <T> FacesConverter<T> |
forType(Class<?> targetType)
Create a
Converter adapter for the given target type. |
String |
toString() |
public static <T> FacesConverter<T> forType(Class<?> targetType)
Converter adapter for the given target type. The converter will use
Application.createConverter(Class) to obtain the underlying JSF converter.public static <T> FacesConverter<T> forId(String converterId)
Converter with the given ID. The converter will use Application#createConverter(String))
to obtain the underlying JSF converter.public T convert(org.ocpsoft.rewrite.event.Rewrite event, org.ocpsoft.rewrite.context.EvaluationContext context, Object value)
convert in interface org.ocpsoft.rewrite.param.Converter<T>Copyright © 2019 OCPsoft. All rights reserved.