package net.sf.jasperreports.engine.base;

import java.io.Serializable;
import net.sf.jasperreports.engine.JRAbstractObjectFactory;
import net.sf.jasperreports.engine.JRExpression;
import net.sf.jasperreports.engine.JRReportTemplate;

public class JRBaseReportTemplate implements JRReportTemplate, Serializable {
  private static final long serialVersionUID = 10200L;
  
  protected JRExpression sourceExpression;
  
  protected JRBaseReportTemplate() {}
  
  public JRBaseReportTemplate(JRReportTemplate reportTemplate, JRAbstractObjectFactory factory) {
    factory.put(reportTemplate, this);
    this.sourceExpression = factory.getExpression(reportTemplate.getSourceExpression());
  }
  
  public JRExpression getSourceExpression() {
    return this.sourceExpression;
  }
}
