Knopflerfish OSGi 3.1.0

org.knopflerfish.ant.taskdefs.bundle
Class HtmlFragment

java.lang.Object
  extended byorg.knopflerfish.ant.taskdefs.bundle.HtmlFragment

public class HtmlFragment
extends java.lang.Object

An Html formated text fragment the the MakeHTMLTask can be configured with.

When $(name) is found in the document to be generated that string will be replaced with the contents of the file given by fromFile.

When $(name_LINK) is found in the document to be generated that string will be replaced with a link to the fragment. The title of the link is given by linkText.

Author:
Gunnar Ekolin

Constructor Summary
HtmlFragment()
           
 
Method Summary
 java.io.File getFromFile()
           
 java.lang.String getLinkText()
           
 java.lang.String getName()
           
 void setFromFile(java.io.File fromFile)
           
 void setLinkText(java.lang.String linkText)
           
 void setName(java.lang.String name)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HtmlFragment

public HtmlFragment()
Method Detail

setName

public void setName(java.lang.String name)
Parameters:
name - the name that is the substitution key for this fragment.

getName

public java.lang.String getName()
Returns:
the name of this fragment.

setFromFile

public void setFromFile(java.io.File fromFile)
Parameters:
fromFile - the file holding the substitution text.

getFromFile

public java.io.File getFromFile()
Returns:
the file to load the fragment from.

setLinkText

public void setLinkText(java.lang.String linkText)
Parameters:
linkText - the clickable text of the link.

getLinkText

public java.lang.String getLinkText()
Returns:
the link text.

Knopflerfish OSGi 3.1.0