com.ibm.xsp.converter
Class ConverterMethodBinding

java.lang.Object
  extended by com.ibm.xsp.converter.ConverterMethodBinding
All Implemented Interfaces:
javax.faces.component.StateHolder, javax.faces.convert.Converter

public class ConverterMethodBinding
extends java.lang.Object
implements javax.faces.convert.Converter, javax.faces.component.StateHolder

The xp:customConverter tag converts data to a custom format using MethodBinding.


Constructor Summary
ConverterMethodBinding()
           
 
Method Summary
 java.lang.Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String value)
          Return value as an Object.
 java.lang.String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value)
          Return value as a String.
 javax.faces.el.MethodBinding getGetAsObject()
          Return getAsObject specified by setGetAsObject(MethodBinding).
 javax.faces.el.MethodBinding getGetAsString()
          Return getAsString specified by setGetAsString(MethodBinding).
 boolean isTransient()
           
 void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
           
 java.lang.Object saveState(javax.faces.context.FacesContext context)
           
 void setGetAsObject(javax.faces.el.MethodBinding getAsObject)
          Specify the MethodBinding for conversion from String to Data type.
 void setGetAsString(javax.faces.el.MethodBinding getAsString)
          Specify the MethodBinding for conversion from Data type to String.
 void setTransient(boolean isTransient)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConverterMethodBinding

public ConverterMethodBinding()
Method Detail

getAsObject

public java.lang.Object getAsObject(javax.faces.context.FacesContext context,
                                    javax.faces.component.UIComponent component,
                                    java.lang.String value)
Return value as an Object.

Specified by:
getAsObject in interface javax.faces.convert.Converter

getAsString

public java.lang.String getAsString(javax.faces.context.FacesContext context,
                                    javax.faces.component.UIComponent component,
                                    java.lang.Object value)
Return value as a String.

Specified by:
getAsString in interface javax.faces.convert.Converter

getGetAsObject

public javax.faces.el.MethodBinding getGetAsObject()
Return getAsObject specified by setGetAsObject(MethodBinding).


setGetAsObject

public void setGetAsObject(javax.faces.el.MethodBinding getAsObject)
Specify the MethodBinding for conversion from String to Data type.


getGetAsString

public javax.faces.el.MethodBinding getGetAsString()
Return getAsString specified by setGetAsString(MethodBinding).


setGetAsString

public void setGetAsString(javax.faces.el.MethodBinding getAsString)
Specify the MethodBinding for conversion from Data type to String.


isTransient

public boolean isTransient()
Specified by:
isTransient in interface javax.faces.component.StateHolder

setTransient

public void setTransient(boolean isTransient)
Specified by:
setTransient in interface javax.faces.component.StateHolder

restoreState

public void restoreState(javax.faces.context.FacesContext context,
                         java.lang.Object state)
Specified by:
restoreState in interface javax.faces.component.StateHolder

saveState

public java.lang.Object saveState(javax.faces.context.FacesContext context)
Specified by:
saveState in interface javax.faces.component.StateHolder