org.jboss.seam.faces.conversion
Class Converter<T>

java.lang.Object
  extended by org.jboss.seam.faces.conversion.Converter<T>
All Implemented Interfaces:
Converter

public abstract class Converter<T>
extends Object
implements Converter

A generic abstract class implementing Converter, for convenient removal of type casting.

Author:
Brian Leathem

Constructor Summary
Converter()
           
 
Method Summary
 Object getAsObject(FacesContext context, UIComponent comp, String value)
           
 String getAsString(FacesContext context, UIComponent comp, Object value)
           
 FacesContext getContext()
           
abstract  T toObject(UIComponent comp, String value)
           
abstract  String toString(UIComponent comp, T value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Converter

public Converter()
Method Detail

toObject

public abstract T toObject(UIComponent comp,
                           String value)

toString

public abstract String toString(UIComponent comp,
                                T value)

getAsObject

public Object getAsObject(FacesContext context,
                          UIComponent comp,
                          String value)
Specified by:
getAsObject in interface Converter

getAsString

public String getAsString(FacesContext context,
                          UIComponent comp,
                          Object value)
Specified by:
getAsString in interface Converter

getContext

public FacesContext getContext()


Copyright © 2011 Seam Framework. All Rights Reserved.