|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.shale.examples.mailreaderjpa.ProtocolConverter
public class ProtocolConverter
JSF Converter
for mapping between a Protocol
and its string representation.
Constructor Summary | |
---|---|
ProtocolConverter()
|
Method Summary | |
---|---|
Object |
getAsObject(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
String value)
Return the Protocol instance corresponding to the
specified string representation. |
String |
getAsString(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value)
Return the string representation of the specified Protocol value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ProtocolConverter()
Method Detail |
---|
public String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, Object value) throws javax.faces.convert.ConverterException
Return the string representation of the specified
Protocol
value.
getAsString
in interface javax.faces.convert.Converter
context
- FacesContext
for the current requestcomponent
- UIComponent
whose value is being convertedvalue
- Protocol
being converted
javax.faces.convert.ConverterException
- if a conversion error occurspublic Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, String value) throws javax.faces.convert.ConverterException
Return the Protocol
instance corresponding to the
specified string representation.
getAsObject
in interface javax.faces.convert.Converter
context
- FacesContext
for the current requestcomponent
- UIComponent
whose value is being convertedvalue
- String representation of the value
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 |