T
- The type of the value.public interface ParamHolder<T> extends ValueHolder
ValueHolder
with getName()
method to obtain the parameter name associated with the parameter value and changes the getLocalValue()
method to return the original, unconverted value and changes the getValue()
method to return the value
converted to String
. This is used in among others the Faces.getBookmarkableURL(String, java.util.Collection, boolean)
.Modifier and Type | Method and Description |
---|---|
Converter<T> |
getConverter()
Returns the converter, if any.
|
T |
getLocalValue()
Returns the original, unconverted value of the parameter.
|
String |
getName()
Returns the name of the parameter.
|
String |
getValue()
Returns the value of the parameter as
String . |
setConverter, setValue
String getName()
T getLocalValue()
getLocalValue
in interface ValueHolder
Converter<T> getConverter()
getConverter
in interface ValueHolder
String getValue()
String
. If the converter is set, or if any converter is available by
Application.createConverter(Class)
, passing the value's class, then return the result of
Converter.getAsString(javax.faces.context.FacesContext, javax.faces.component.UIComponent, Object)
,
otherwise return the Object.toString()
of the value.getValue
in interface ValueHolder
String
.Converter.getAsString(javax.faces.context.FacesContext, javax.faces.component.UIComponent, Object)
Copyright © 2012–2018 OmniFaces. All rights reserved.