public class GenericStringConverter extends AbstractStateHolder implements javax.faces.convert.Converter, Serializable
| Constructor and Description |
|---|
GenericStringConverter() |
| Modifier and Type | Method and Description |
|---|---|
Object |
getAsObject(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
String value)
Converts the supplied String value to a new String.
|
String |
getAsString(javax.faces.context.FacesContext facesContext,
javax.faces.component.UIComponent component,
Object value)
Converts the supplied value to a String, by calling toString() on it.
|
Case |
getCase()
Gets the case attribute.
|
Trim |
getTrim()
Gets the trim attribute.
|
void |
restoreState(javax.faces.context.FacesContext facesContext,
Object state)
Restores the state saved by
saveState(FacesContext). |
Object |
saveState(javax.faces.context.FacesContext facesContext)
Saves the state of this converter.
|
void |
setCase(Case theCase)
Sets the case attribute.
|
void |
setTrim(Trim trim)
Sets the trim attribute.
|
isTransient, setTransientpublic Trim getTrim()
public void setTrim(Trim trim)
trim - The trim attribute.public Case getCase()
public void setCase(Case theCase)
theCase - The case attribute.public Object getAsObject(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, String value)
getAsObject in interface javax.faces.convert.ConverterfacesContext - Faces Context.component - The UI component that stores the String value.value - The value to convert.public String getAsString(javax.faces.context.FacesContext facesContext, javax.faces.component.UIComponent component, Object value)
getAsString in interface javax.faces.convert.ConverterfacesContext - Faces Context.component - The UI component that stores the String value.value - The value to convert to a String.String.public Object saveState(javax.faces.context.FacesContext facesContext)
saveState in interface javax.faces.component.StateHolderfacesContext - The FacesContext.public void restoreState(javax.faces.context.FacesContext facesContext,
Object state)
saveState(FacesContext).restoreState in interface javax.faces.component.StateHolderfacesContext - The FacesContext.state - The state saved by saveState(FacesContext).Copyright © 2008–2018. All rights reserved.