org.knopflerfish.ant.taskdefs.bundle
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
.
Constructor and Description |
---|
HtmlFragment() |
Modifier and Type | Method and Description |
---|---|
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) |
public void setName(java.lang.String name)
name
- the name that is the substitution key for this fragment.public java.lang.String getName()
public void setFromFile(java.io.File fromFile)
fromFile
- the file holding the substitution text.public java.io.File getFromFile()
public void setLinkText(java.lang.String linkText)
linkText
- the clickable text of the link.public java.lang.String getLinkText()