Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/dghda/kent/ReportEnvironment.java


1   /* Copyright (C) 2001 Duane Griffin <duanegriffin@users.sourceforge.net>
2      This file is part of Kent.
3   
4      Kent is free software; you can redistribute it and/or
5      modify it under the terms of the GNU General Public License as
6      published by the Free Software Foundation; either version 2 of the
7      License, or (at your option) any later version.
8   
9      Kent is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
12     General Public License for more details.
13  
14     You should have received a copy of the GNU General Public
15     License along with Kent; see the file COPYING.  If not,
16     write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
17     Boston, MA 02111-1307, USA.
18  */
19  
20  package com.dghda.kent;
21  
22  /**
23     An interface which encapsulates the environment the engine is running in.
24     Provides a mechanism to get properties, access files, etc.
25  */
26  public interface ReportEnvironment extends com.dghda.log.Logger {
27    
28    /** Path to report providers. */
29    public String getReportPath();
30    
31    /** Path to action providers. */
32    public String getActionPath();
33    
34    /** Path to transform providers. */
35    public String getTransformPath();
36    
37    /** Returns the path to the given DTD. */
38    public String getDTDPath (String dtd);
39    
40    /** Returns an input stream reading from the given resource. */
41    public java.io.InputStream getResource (String path) throws java.io.IOException;
42    
43    /** Returns a Property object containing all configuration parameters. */
44    public java.util.Properties getProperties();
45    
46    /** Returns the value of the given property, or null if it is not set. */
47    public String getProperty (String property);
48  }