public static class TagGenerator.TagPage extends AbstractConvertible implements Page
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
TEMPLATE |
log| 限定符和类型 | 方法和说明 |
|---|---|
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) |
getUrlForOutputFile, writeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitwritepublic void render(Map<String,Object> rootMap)
render 在接口中 Convertiblerender 在类中 AbstractConvertiblerootMap - root object for FreeMarker templatepublic String getUrl()
Basee.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/'.
getUrl 在接口中 BasegetUrl 在类中 AbstractConvertibleSite.getRoot()public void setUrl(String url)
public Source getSource()
BasegetSource 在接口中 BasegetSource 在类中 AbstractConvertiblepublic String getContent()
BaseConverter in generate processing.getContent 在接口中 BasegetContent 在类中 AbstractConvertiblepublic String getPath()
Basepublic 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.
getLayout 在接口中 BasegetLayout 在类中 AbstractConvertiblepublic String getPermalink()
BasegetPermalink 在接口中 Basepublic Date getDate()
Basepublic Date getUpdated()
BasegetUpdated 在接口中 Basepublic String getDateFormatted()
BasegetDateFormatted 在接口中 BaseBase.getDate()public String getUpdatedFormatted()
BasegetUpdatedFormatted 在接口中 BaseBase.getUpdated()public void setContent(String content)
setContent 在类中 AbstractConvertiblepublic String getOutputFileExtension()
protected Renderer getRenderer()
getRenderer 在类中 AbstractConvertiblepublic void convert()
convert 在接口中 Convertibleprotected void mergeRootMap(Map<String,Object> rootMap)
mergeRootMap 在类中 AbstractConvertiblepublic String getTitle()
public void setTitle(String title)
public boolean isFooter()
public boolean isSidebar()
public File getOutputFile(File dest)
getOutputFile 在接口中 ConvertiblegetOutputFile 在类中 AbstractConvertiblepublic boolean isComments()
Copyright © 2014 Opoo.org. All Rights Reserved.