KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > vladium > emma > report > IReportDataModel


1 /* Copyright (C) 2003 Vladimir Roubtsov. All rights reserved.
2  *
3  * This program and the accompanying materials are made available under
4  * the terms of the Common Public License v1.0 which accompanies this distribution,
5  * and is available at http://www.eclipse.org/legal/cpl-v10.html
6  *
7  * $Id: IReportDataModel.java,v 1.1.1.1 2004/05/09 16:57:37 vlad_r Exp $
8  */

9 package com.vladium.emma.report;
10
11 import com.vladium.emma.data.ICoverageData;
12 import com.vladium.emma.data.IMetaData;
13
14 // ----------------------------------------------------------------------------
15
/**
16  * @author Vlad Roubtsov, (C) 2003
17  */

18 public
19 interface IReportDataModel
20 {
21     // public: ................................................................
22

23     IReportDataView getView (int viewType);
24     
25     abstract class Factory
26     {
27         /**
28          * This operation merely stores mdata and cdata references, it does not
29          * perform any data processing until getView() is actually called.
30          */

31         public static IReportDataModel create (final IMetaData mdata, final ICoverageData cdata)
32         {
33             return new ReportDataModel (mdata, cdata);
34         }
35         
36     } // end of nested class
37

38 } // end of interface
39
// ----------------------------------------------------------------------------
Popular Tags