com.jrefinery.report.targets.table.html
Class HtmlReferenceData

java.lang.Object
  extended bycom.jrefinery.report.targets.table.html.HtmlReferenceData
Direct Known Subclasses:
EmptyContentHtmlReferenceData, HRefReferenceData, ImageReferenceData, InternalCSSReferenceData

public abstract class HtmlReferenceData
extends java.lang.Object

The base class for all HtmlReferences. HtmlReferences link the main document with the supplementary data, like images and stylesheets.

If the reference is external, then the referenced content is stored outside the main Html-File.

Author:
Thomas Morgner

Constructor Summary
protected HtmlReferenceData(boolean external)
          A reference: a fragment which could be inserted into the generated HTML-Code.
 
Method Summary
abstract  java.lang.String getReference()
          Generates the reference fragment, which should be inserted into the HTML-Code.
 boolean isExternal()
          Returns true, if this reference points to an external resource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlReferenceData

protected HtmlReferenceData(boolean external)
A reference: a fragment which could be inserted into the generated HTML-Code.

Parameters:
external - if the generated reference points to an external resource.
Method Detail

isExternal

public boolean isExternal()
Returns true, if this reference points to an external resource.

Returns:
true, if the reference is external, false otherwise.

getReference

public abstract java.lang.String getReference()
Generates the reference fragment, which should be inserted into the HTML-Code. Which content is returned depends on the reference type and the target filesystem.

Returns:
the reference code, which should be inserted into the generated HTML-Code.