Class Report

Object
Report
Direct Known Subclasses:
AuthorityCodesReport, OperationParametersReport

public abstract class Report extends Object
Base class for tools generating reports as HTML pages. The reports are based on HTML templates with a few keywords to be replaced by user-provided values. The values associated to keywords can be specified in two ways: The set of keywords, and whether a user-provided value for a given keyword is mandatory or optional, is subclass-specific. However, most subclasses expect at least the following keywords:
Report properties
Key Remarks Meaning
TITLE Title of the web page to produce.
DATE automatic Date of report creation.
DESCRIPTION optional Description to write after the introductory paragraph.
OBJECTS.KIND Kind of objects listed in the page (e.g. Operation Methods).
PRODUCT.NAME Name of the product for which the report is generated.
PRODUCT.VERSION Version of the product for which the report is generated.
PRODUCT.URL URL where more information is available about the product.
JAVADOC.GEOAPI predefinedBase URL of GeoAPI javadoc.
FILENAME predefinedName of the file to create if the write(File) argument is a directory.

How to use this class:

  • Create a Properties map with the values documented in the subclass to be instantiated. Default values exist for many keys, but those defaults may depend on the environment (information found in META-INF/MANIFEST.MF, etc). It is safer to specify values explicitly when they are known.
  • Create a new instance of the Report subclass with the above properties map given to the constructor.
  • All Report subclasses define at least one add(…) method for declaring the objects to include in the HTML page. At least one object or factory needs to be declared.
  • Invoke write(File).
Since:
3.1