001 /**
002 * ========================================
003 * JFreeReport : a free Java report library
004 * ========================================
005 *
006 * Project Info: http://reporting.pentaho.org/
007 *
008 * (C) Copyright 2000-2007, by Object Refinery Limited, Pentaho Corporation and Contributors.
009 *
010 * This library is free software; you can redistribute it and/or modify it under the terms
011 * of the GNU Lesser General Public License as published by the Free Software Foundation;
012 * either version 2.1 of the License, or (at your option) any later version.
013 *
014 * This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
015 * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
016 * See the GNU Lesser General Public License for more details.
017 *
018 * You should have received a copy of the GNU Lesser General Public License along with this
019 * library; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330,
020 * Boston, MA 02111-1307, USA.
021 *
022 * [Java is a trademark or registered trademark of Sun Microsystems, Inc.
023 * in the United States and other countries.]
024 *
025 * ------------
026 * $Id: ExpressionRuntime.java,v 1.6 2007/04/01 18:49:25 taqua Exp $
027 * ------------
028 * (C) Copyright 2000-2005, by Object Refinery Limited.
029 * (C) Copyright 2005-2007, by Pentaho Corporation.
030 */
031 package org.jfree.report.expressions;
032
033 import org.jfree.report.DataRow;
034 import org.jfree.report.ReportData;
035 import org.jfree.report.flow.ReportContext;
036 import org.jfree.report.i18n.ResourceBundleFactory;
037 import org.jfree.util.Configuration;
038
039 /**
040 * Creation-Date: 24.01.2006, 16:58:34
041 *
042 * @author Thomas Morgner
043 */
044 public interface ExpressionRuntime
045 {
046 /**
047 * Returns the datarow.
048 *
049 * @return
050 */
051 public DataRow getDataRow();
052 public Configuration getConfiguration();
053 public ResourceBundleFactory getResourceBundleFactory();
054
055 /**
056 * Returns the report data used in this section. If subreports are used,
057 * this does not reflect the complete report data.
058 * <p>
059 * All access to the report data must be properly synchronized. Failure to
060 * do so may result in funny results. Do not assume that the report data
061 * will be initialized on the current cursor positon.
062 *
063 * @return
064 * @see ExpressionRuntime#getCurrentRow()
065 */
066 public ReportData getData();
067 public int getCurrentRow();
068
069 public Object getDeclaringParent();
070 public ReportContext getReportContext();
071 }