|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.opoo.press.impl.AbstractConvertible
org.opoo.press.generator.TagGenerator.TagPage
public static class TagGenerator.TagPage
| 字段摘要 | |
|---|---|
static String |
TEMPLATE
|
| 从类 org.opoo.press.impl.AbstractConvertible 继承的字段 |
|---|
log |
| 方法摘要 | |
|---|---|
protected void |
convert()
|
Object |
get(String string)
Get meta data. |
String |
getContent()
Return the post or page content. |
Date |
getDate()
The date format in the source file is 'yyyy-MM-dd HH:mm' or 'yyyy-MM-dd HH:mm:ss'. |
String |
getDateFormatted()
The output date format of the date. |
String |
getLayout()
The layout of source file. |
File |
getOutputFile(File dest)
|
String |
getOutputFileExtension()
|
Pager |
getPager()
|
String |
getPath()
The origin file path of the source file, not source directory prefix. |
String |
getPermalink()
The permalink style. |
List<Post> |
getPosts()
|
protected Renderer |
getRenderer()
|
Source |
getSource()
The file source. |
String |
getTitle()
|
Date |
getUpdated()
The updated date format in the source file is 'yyyy-MM-dd HH:mm' or 'yyyy-MM-dd HH:mm:ss'. |
String |
getUpdatedFormatted()
The output date format of the updated date. |
String |
getUrl()
Return the URL. |
boolean |
isComments()
|
boolean |
isFooter()
|
boolean |
isSidebar()
|
protected void |
mergeRootMap(Map<String,Object> rootMap)
|
void |
render(Map<String,Object> rootMap)
|
void |
set(String name,
Object value)
Set meta data. |
void |
setContent(String content)
|
void |
setPager(Pager pager)
|
void |
setPosts(List<Post> posts)
|
void |
setTitle(String title)
|
void |
setUrl(String url)
|
| 从类 org.opoo.press.impl.AbstractConvertible 继承的方法 |
|---|
write |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 从接口 org.opoo.press.Convertible 继承的方法 |
|---|
write |
| 字段详细信息 |
|---|
public static final String TEMPLATE
| 方法详细信息 |
|---|
public void render(Map<String,Object> rootMap)
Convertible 中的 renderAbstractConvertible 中的 renderrootMap - root object for FreeMarker templatepublic String getUrl()
Base 复制的描述e.g.: '/index.html', '/categories/', '/about/'
If the site url is 'http://press.opoo.org', the site root is '/docs', and this page/post url is '/chapter01/', then the completely URL is 'http://press.opoo.org/docs/chapter01/'.
Base 中的 getUrlAbstractConvertible 中的 getUrlSite.getRoot()public void setUrl(String url)
public Source getSource()
Base 复制的描述
Base 中的 getSourceAbstractConvertible 中的 getSourcepublic String getContent()
Base 复制的描述Converter in generate processing.
Base 中的 getContentAbstractConvertible 中的 getContentpublic String getPath()
Base 复制的描述
Base 中的 getPathpublic String getLayout()
Base 复制的描述'nil' means null, not apply any template.
Every layout(except 'nil') has a template defined in templates directory. the template file name is '_<layout>.ftl', can extend OpooPress layout using this mechanism.
Base 中的 getLayoutAbstractConvertible 中的 getLayoutpublic String getPermalink()
Base 复制的描述
Base 中的 getPermalinkpublic Date getDate()
Base 复制的描述
Base 中的 getDatepublic Date getUpdated()
Base 复制的描述
Base 中的 getUpdatedpublic String getDateFormatted()
Base 复制的描述
Base 中的 getDateFormattedBase.getDate()public String getUpdatedFormatted()
Base 复制的描述
Base 中的 getUpdatedFormattedBase.getUpdated()public Pager getPager()
Page 中的 getPagerpublic void setPager(Pager pager)
Page 中的 setPagerpublic void setContent(String content)
AbstractConvertible 中的 setContentpublic String getOutputFileExtension()
AbstractConvertible 中的 getOutputFileExtensionprotected Renderer getRenderer()
AbstractConvertible 中的 getRendererprotected void convert()
AbstractConvertible 中的 convertprotected void mergeRootMap(Map<String,Object> rootMap)
AbstractConvertible 中的 mergeRootMappublic String getTitle()
public void setTitle(String title)
public List<Post> getPosts()
public void setPosts(List<Post> posts)
public boolean isFooter()
public boolean isSidebar()
public Object get(String string)
Base 复制的描述
Base 中的 getpublic File getOutputFile(File dest)
Convertible 中的 getOutputFileAbstractConvertible 中的 getOutputFilepublic boolean isComments()
public void set(String name,
Object value)
Base 复制的描述
Base 中的 setBase.get(String)
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||