info.informatica.report
Class Report

java.lang.Object
  extended by info.informatica.report.Report
All Implemented Interfaces:
info.informatica.doc.Document

public class Report
extends Object
implements info.informatica.doc.Document

The Report.

This object contains a reference to the report document tree, acts as a ReportWriter factory, holds the dataspec collection, etc.

Version:
2.00
Author:
amengual at informatica dot info

Field Summary
static String PTY_MEDIA_TYPE
           
 
Constructor Summary
Report()
           
 
Method Summary
 void addReportDataSpec(ReportDataSpec spec)
           
 ForeignNamespaceHandler createForeignNamespaceHandler(String namespaceURI)
          Creates a ForeignNamespaceHandler appropriate for this document format and the given Namespace URI.
 ReportDataSpec createReportDataSpec(String datasource, String id)
           
 ReportDocument getDocumentTree()
           
 DataBlockFactory getFactory()
           
 String getFormattingElementsParentXPath()
           
 Date getLastUpdateDate()
          Devuelve la fecha.
 String getMedia()
           
 String getMediaType()
          Gets the Internet Media Type (MIME type) of the document.
 Properties getProperties()
           
 ReportDataSpec getReportDataSpec(String id)
           
 Iterator<ReportDataSpec> getReportDataSpecs()
           
 ReportWriter getReportWriter(OutputStream out)
          Gets a ReportWriter connected to the given OutputStream.
 String getTitle()
          Devuelve el titulo.
 String getWriterName()
           
static void main(String[] args)
          Demonstration method that prints a single-query report.
 void setDocumentTree(ReportDocument document)
           
 void setFormattingElementsParentXPath(String tagname)
           
 void setMedia(String media)
           
 void setMediaType(String type)
          Sets the Internet Media Type (MIME type) of the document.
 void setTitle(String title)
          Especifica el título de la pagina.
 void setWriterName(String writertype)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PTY_MEDIA_TYPE

public static final String PTY_MEDIA_TYPE
See Also:
Constant Field Values
Constructor Detail

Report

public Report()
Method Detail

getFactory

public DataBlockFactory getFactory()

setDocumentTree

public void setDocumentTree(ReportDocument document)

getDocumentTree

public ReportDocument getDocumentTree()

getProperties

public Properties getProperties()

getMedia

public String getMedia()

setMedia

public void setMedia(String media)

createReportDataSpec

public ReportDataSpec createReportDataSpec(String datasource,
                                           String id)

addReportDataSpec

public void addReportDataSpec(ReportDataSpec spec)

getReportDataSpec

public ReportDataSpec getReportDataSpec(String id)

getReportDataSpecs

public Iterator<ReportDataSpec> getReportDataSpecs()

setTitle

public void setTitle(String title)
Especifica el título de la pagina.

Specified by:
setTitle in interface info.informatica.doc.Document
Parameters:
title - el titulo

getTitle

public String getTitle()
Devuelve el titulo.

Specified by:
getTitle in interface info.informatica.doc.Document
Returns:
el titulo.

getLastUpdateDate

public Date getLastUpdateDate()
Devuelve la fecha.

Specified by:
getLastUpdateDate in interface info.informatica.doc.Document
Returns:
la fecha.

getMediaType

public String getMediaType()
Gets the Internet Media Type (MIME type) of the document.

Specified by:
getMediaType in interface info.informatica.doc.Document
Returns:
the IMT type, or null if not known.

setMediaType

public void setMediaType(String type)
Sets the Internet Media Type (MIME type) of the document. param type the IMT type.


setFormattingElementsParentXPath

public void setFormattingElementsParentXPath(String tagname)

getFormattingElementsParentXPath

public String getFormattingElementsParentXPath()

setWriterName

public void setWriterName(String writertype)

getWriterName

public String getWriterName()

createForeignNamespaceHandler

public ForeignNamespaceHandler createForeignNamespaceHandler(String namespaceURI)
Creates a ForeignNamespaceHandler appropriate for this document format and the given Namespace URI.

Parameters:
namespaceURI - the namespace URI to be handled.
Returns:
the ForeignNamespaceHandler, null if none found for the writer type.

getReportWriter

public ReportWriter getReportWriter(OutputStream out)
                             throws info.informatica.doc.RenderingException
Gets a ReportWriter connected to the given OutputStream.

Returns:
the ReportWriter object.
Throws:
info.informatica.doc.RenderingException - in case of problem preparing for opening the report.

main

public static void main(String[] args)
                 throws Exception
Demonstration method that prints a single-query report. Run it without arguments to see its usage.

Parameters:
args -
Throws:
Exception