|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.ibm.xsp.converter.ConverterImpl
public class ConverterImpl
This corresponds to the xp:converter
tag, and acts as a factory
and wrapper for converters that are registered in the faces-config.xml files.
The converter is created by calling
Application.createConverter(java.lang.String)
.
Constructor Summary | |
---|---|
ConverterImpl()
|
Method Summary | |
---|---|
java.lang.Object |
getAsObject(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String value)
Converts the value from a String to an Object using the converter registered with the ID getConverterId() . |
java.lang.String |
getAsString(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object value)
Converts the value from an Object to a String using the converter registered with the ID getConverterId() . |
java.lang.String |
getConverterId()
The converter ID set on this xp:converter object in the XPage source. |
boolean |
isTransient()
|
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setConverterId(java.lang.String converterId)
Identifies the Converter instance to be created and registered. |
void |
setTransient(boolean state)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ConverterImpl()
Method Detail |
---|
public java.lang.Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String value)
getConverterId()
.
getAsObject
in interface javax.faces.convert.Converter
public java.lang.String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value)
getConverterId()
.
getAsString
in interface javax.faces.convert.Converter
public java.lang.String getConverterId()
setConverterId(String)
.
public void setConverterId(java.lang.String converterId)
public boolean isTransient()
isTransient
in interface javax.faces.component.StateHolder
public void setTransient(boolean state)
setTransient
in interface javax.faces.component.StateHolder
public void restoreState(javax.faces.context.FacesContext context, java.lang.Object state)
restoreState
in interface javax.faces.component.StateHolder
public java.lang.Object saveState(javax.faces.context.FacesContext context)
saveState
in interface javax.faces.component.StateHolder
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |