net.sf.jasperreports.jsf.convert
Interface SourceConverter

All Superinterfaces:
Serializable
All Known Implementing Classes:
BeanSourceConverter, CsvSourceConverter, DatabaseSourceConverter, JdbcSourceConverter, JndiSourceConverter, MapSourceConverter, ResultSetSourceConverter, SourceConverterBase, XlsSourceConverter, XmlSourceConverter

public interface SourceConverter
extends Serializable

Source converter interface.

Author:
A. Alonso Dominguez

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.
 

Method Detail

convertFromValue

Source convertFromValue(javax.faces.context.FacesContext context,
                        javax.faces.component.UIComponent component,
                        Object value)
                        throws ConverterException
Obtains a Source instance from the value obtained as a parameter.

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

Object convertFromSource(javax.faces.context.FacesContext context,
                         javax.faces.component.UIComponent component,
                         Source source)
                         throws ConverterException
Converts the received source into its original form.

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.


Copyright © 2011 SourceForge.net. All Rights Reserved.