|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.shale.util.ConverterHelper
public class ConverterHelper
Helper class to provide access to by-type JavaServer Faces
Converter capabilities. This implementation is stateless
and maintains no cached information, so instances may be freely created
and destroyed with no side effects.
| Constructor Summary | |
|---|---|
ConverterHelper()
|
|
| Method Summary | |
|---|---|
Object |
asObject(javax.faces.context.FacesContext context,
Class type,
String value)
Use the registered by-type Converter to convert the
specified String value to a corresponding Object value. |
String |
asString(javax.faces.context.FacesContext context,
Class type,
Object value)
Use the registered by-type Converter to convert the
specified Object value to a corresponding String value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ConverterHelper()
| Method Detail |
|---|
public Object asObject(javax.faces.context.FacesContext context,
Class type,
String value)
Use the registered by-type Converter to convert the
specified String value to a corresponding Object value.
context - FacesContext for the current requesttype - Type to which this value should be converted
(used to select the appropriate by-type converter)value - Value to be converted
javax.faces.convert.ConverterException - if a conversion error occurs
public String asString(javax.faces.context.FacesContext context,
Class type,
Object value)
Use the registered by-type Converter to convert the
specified Object value to a corresponding String value.
context - FacesContext for the current requesttype - Type from which this value should be converted
(used to select the appropriate by-type converter)value - Value to be converted
javax.faces.convert.ConverterException - if a conversion error occurs
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||