|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object freemarker.doc.ContentEntry
public final class ContentEntry
Encapsulates a single table-of-contents entry in the FreeMarker manual.
Constructor Summary | |
---|---|
ContentEntry()
Creates new ContentEntry |
|
ContentEntry(java.lang.String title,
java.lang.String link)
Creates new ContentEntry with supplied title and link |
|
ContentEntry(java.lang.String title,
java.lang.String link,
java.lang.String longTitle)
Creates new ContentEntry with supplied title, long title and link |
Method Summary | |
---|---|
TemplateModel |
get(java.lang.String key)
Gets a TemplateModel from the hash. |
java.lang.String |
getAsString()
Returns the title of this content entry as a String. |
java.lang.String |
getDescription()
Getter for property description. |
java.lang.String |
getLink()
Getter for property link. |
java.lang.String |
getLongTitle()
Getter for property longTitle. |
java.lang.String |
getSuperTitle()
Getter for property superTitle. |
java.lang.String |
getTitle()
Getter for property title. |
boolean |
isEmpty()
Is the template model empty? |
boolean |
isGenerated()
Getter for property generated. |
void |
setDescription(java.lang.String description)
Setter for property description. |
void |
setGenerated(boolean generated)
Setter for property generated. |
void |
setLink(java.lang.String link)
Setter for property link. |
void |
setLongTitle(java.lang.String longTitle)
Setter for property longTitle. |
void |
setSuperTitle(java.lang.String superTitle)
Setter for property superTitle. |
void |
setTitle(java.lang.String title)
Setter for property title. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ContentEntry()
public ContentEntry(java.lang.String title, java.lang.String link)
public ContentEntry(java.lang.String title, java.lang.String link, java.lang.String longTitle)
Method Detail |
---|
public TemplateModel get(java.lang.String key) throws TemplateModelException
TemplateModel
from the hash.
get
in interface TemplateHashModel
key
- the name by which the TemplateModel
is identified in the template.
TemplateModel
referred to by the key,
or null
if not found.
TemplateModelException
- there was a problem getting the value
for the given keypublic java.lang.String getAsString() throws TemplateModelException
getAsString
in interface TemplateScalarModel
TemplateModelException
public boolean isEmpty() throws TemplateModelException
isEmpty
in interface TemplateModel
false
to indicate the object is never empty
TemplateModelException
public java.lang.String getTitle()
public void setTitle(java.lang.String title)
title
- New value of property title.public java.lang.String getLongTitle()
public void setLongTitle(java.lang.String longTitle)
longTitle
- New value of property longTitle.public java.lang.String getLink()
public void setLink(java.lang.String link)
link
- New value of property link.public boolean isGenerated()
public void setGenerated(boolean generated)
generated
- New value of property generated.public java.lang.String getSuperTitle()
public void setSuperTitle(java.lang.String superTitle)
superTitle
- New value of property superTitle.public java.lang.String getDescription()
public void setDescription(java.lang.String description)
description
- New value of property description.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |