org.books.view
Class CreditCardConverter

java.lang.Object
  extended by org.books.common.BaseBean
      extended by org.books.view.CreditCardConverter
All Implemented Interfaces:
java.io.Serializable, javax.faces.convert.Converter

public class CreditCardConverter
extends BaseBean
implements javax.faces.convert.Converter

CAS Enterprise Application Development mit Java EE (EADJ) - 2007
Modul: Web-Tier (JSF)
Uebung: 11 (Ordering)
Beschreibung:
Diese Klasse konvertiert den Kreditkartentyp in den entsprechenden Namen fuer die Ausgabe.

Copyright (c) 2007 bouquet dot ch, 3032 Hinterkappelen. All rights reseved.

Version:
1.0 - 07.05.2007
Author:
Marc Bouquet ( marc at bouquet dot ch, Switzerland )
See Also:
@link{org.books.common.BaseBean}, @link{javax.faces.convert.Converter}, Serialized Form

Constructor Summary
CreditCardConverter()
           
 
Method Summary
 java.lang.Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String value)
          Convert string value into a object
 java.lang.String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object obj)
          Convert object into a string
 
Methods inherited from class org.books.common.BaseBean
getFacesContext, getManagedBean, getRequest, getResponse, getSession, getText
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreditCardConverter

public CreditCardConverter()
Method Detail

getAsObject

public java.lang.Object getAsObject(javax.faces.context.FacesContext context,
                                    javax.faces.component.UIComponent component,
                                    java.lang.String value)
                             throws javax.faces.convert.ConverterException
Convert string value into a object

Specified by:
getAsObject in interface javax.faces.convert.Converter
Parameters:
context - FacesContext FacesContext the faces context
component - UIComponent UIComponent the component
value - String the value to be converted
Throws:
javax.faces.convert.ConverterException

getAsString

public java.lang.String getAsString(javax.faces.context.FacesContext context,
                                    javax.faces.component.UIComponent component,
                                    java.lang.Object obj)
                             throws javax.faces.convert.ConverterException
Convert object into a string

Specified by:
getAsString in interface javax.faces.convert.Converter
Parameters:
context - FacesContext FacesContext the faces context
component - UIComponent UIComponent the component
obj - Object the value to be converted
Throws:
javax.faces.convert.ConverterException


Copyright © 2007 - bouquet dot ch, 3032 Hinterkappelen. All Rights Reserved.