com.mizar.faces.converter
Class YesNoConverter

java.lang.Object
  extended by com.mizar.faces.converter.YesNoConverter
All Implemented Interfaces:
javax.faces.convert.Converter

public class YesNoConverter
extends java.lang.Object
implements javax.faces.convert.Converter

Converts from "Y"/"N" in a DB to a boolean value and back


Constructor Summary
YesNoConverter()
           
 
Method Summary
 java.lang.Object getAsObject(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uIComponent, java.lang.String string)
           
 java.lang.String getAsString(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent uIComponent, java.lang.Object object)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

YesNoConverter

public YesNoConverter()
Method Detail

getAsObject

public java.lang.Object getAsObject(javax.faces.context.FacesContext facesContext,
                                    javax.faces.component.UIComponent uIComponent,
                                    java.lang.String string)
Specified by:
getAsObject in interface javax.faces.convert.Converter

getAsString

public java.lang.String getAsString(javax.faces.context.FacesContext facesContext,
                                    javax.faces.component.UIComponent uIComponent,
                                    java.lang.Object object)
Specified by:
getAsString in interface javax.faces.convert.Converter