net.sf.jasperreports.jsf.engine.converters
Class SourceConverterBase
java.lang.Object
net.sf.jasperreports.jsf.engine.converters.SourceConverterBase
- All Implemented Interfaces:
- Serializable, SourceConverter
- Direct Known Subclasses:
- BeanSourceConverter, CsvSourceConverter, DatabaseSourceConverter, MapSourceConverter, ResultSetSourceConverter, XlsSourceConverter, XmlSourceConverter
public class SourceConverterBase
- extends Object
- implements SourceConverter
Base source converter class.
- Author:
- A. Alonso Dominguez
- See Also:
- Serialized Form
Method Summary |
Object |
convertFromSource(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Source source)
Converts the received source into its original form. |
Source |
convertFromValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value)
Obtains a Source instance from the value
obtained as a parameter. |
protected Source |
createSource(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
NULL_SOURCE
protected static final Source NULL_SOURCE
SourceConverterBase
public SourceConverterBase()
convertFromValue
public Source convertFromValue(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value)
throws ConverterException
- Description copied from interface:
SourceConverter
- Obtains a Source instance from the value
obtained as a parameter.
- Specified by:
convertFromValue
in interface SourceConverter
- Parameters:
context
- current faces' context.component
- faces' component asking for conversion.value
- the value that must be converted.
- Returns:
- a Source
- Throws:
ConverterException
- if value can't be converted.
convertFromSource
public Object convertFromSource(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Source source)
throws ConverterException
- Description copied from interface:
SourceConverter
- Converts the received source into its original form.
- Specified by:
convertFromSource
in interface SourceConverter
- Parameters:
context
- current faces' context.component
- faces' component asking for conversion.source
- the source instance.
- Returns:
- a original source value.
- Throws:
ConverterException
- if source can't be converted.
createSource
protected Source createSource(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component,
Object value)
throws SourceException
- Throws:
SourceException
Copyright © 2011 SourceForge.net. All Rights Reserved.