|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.jboss.seam.ui.converter.ConverterChain
public class ConverterChain
This class provides a chainable converter for JSF. Any JSF converter can be placed at the end of the chain. A converter that is placed higher up the chain should return ConverterChain.CONTINUE if conversion has failed. If the all converters run return ConverterChain.CONTINUE an unconverted value will be returned. A converter can be placed in the chain with a priority, the order in which converters with the same priority is run is not specified.
Field Summary | |
---|---|
static int |
CHAIN_END
This places the converter at the end of the chain. |
static int |
CHAIN_START
This places the converter at the head of the chain. |
static java.lang.String |
CONTINUE
|
Constructor Summary | |
---|---|
ConverterChain()
|
|
ConverterChain(javax.faces.component.UIComponent component)
Set up a ConverterChain for this component. |
Method Summary | |
---|---|
boolean |
addConverterToChain(javax.faces.convert.Converter c)
Add a converter to the end of the chain |
boolean |
addConverterToChain(javax.faces.convert.Converter c,
int priority)
Add a converter to the chain with a defined priority |
boolean |
addConverterToChain(javax.el.ValueExpression c)
Add a converter to the end of the chain |
boolean |
addConverterToChain(javax.el.ValueExpression c,
int priority)
Add a converter to the chain with a defined priority |
boolean |
containsConverterType(javax.faces.convert.Converter converter)
|
java.lang.Object |
getAsObject(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.String value)
|
java.lang.String |
getAsString(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
java.lang.Object value)
|
boolean |
isTransient()
|
void |
restoreState(javax.faces.context.FacesContext context,
java.lang.Object state)
|
java.lang.Object |
saveState(javax.faces.context.FacesContext context)
|
void |
setTransient(boolean newTransientValue)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String CONTINUE
public static final int CHAIN_END
public static final int CHAIN_START
Constructor Detail |
---|
public ConverterChain()
public ConverterChain(javax.faces.component.UIComponent component)
component
- Method Detail |
---|
public java.lang.Object getAsObject(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.String value) throws javax.faces.convert.ConverterException
getAsObject
in interface javax.faces.convert.Converter
javax.faces.convert.ConverterException
public java.lang.String getAsString(javax.faces.context.FacesContext context, javax.faces.component.UIComponent component, java.lang.Object value) throws javax.faces.convert.ConverterException
getAsString
in interface javax.faces.convert.Converter
javax.faces.convert.ConverterException
public boolean addConverterToChain(javax.faces.convert.Converter c)
public boolean addConverterToChain(javax.el.ValueExpression c)
public boolean addConverterToChain(javax.faces.convert.Converter c, int priority)
public boolean addConverterToChain(javax.el.ValueExpression c, int priority)
public boolean isTransient()
isTransient
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
public void setTransient(boolean newTransientValue)
setTransient
in interface javax.faces.component.StateHolder
public boolean containsConverterType(javax.faces.convert.Converter converter)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |