org.apache.myfaces.renderkit.html.ext
Class MockIntegerConverter

java.lang.Object
  extended by org.apache.myfaces.renderkit.html.ext.MockIntegerConverter
All Implemented Interfaces:
javax.faces.convert.Converter

public class MockIntegerConverter
extends Object
implements javax.faces.convert.Converter

A converter for Integer that changes the integer a bit.

Version:
$Revision: 963899 $ $Date: 2010-07-13 17:57:38 -0500 (Tue, 13 Jul 2010) $
Author:
Jakob Korherr (latest modification by $Author: lu4242 $)

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

Constructor Detail

MockIntegerConverter

public MockIntegerConverter()
Method Detail

getAsObject

public Object getAsObject(javax.faces.context.FacesContext context,
                          javax.faces.component.UIComponent component,
                          String value)
                   throws javax.faces.convert.ConverterException
Specified by:
getAsObject in interface javax.faces.convert.Converter
Throws:
javax.faces.convert.ConverterException

getAsString

public String getAsString(javax.faces.context.FacesContext context,
                          javax.faces.component.UIComponent component,
                          Object value)
                   throws javax.faces.convert.ConverterException
Specified by:
getAsString in interface javax.faces.convert.Converter
Throws:
javax.faces.convert.ConverterException


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.