org.knopflerfish.ant.taskdefs.bundle
Class HtmlFragment
java.lang.Object
org.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
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HtmlFragment
public HtmlFragment()
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.