org.opoo.press.generator
类 CategoryGenerator.CategoryPage

java.lang.Object
  继承者 org.opoo.press.impl.AbstractConvertible
      继承者 org.opoo.press.generator.CategoryGenerator.CategoryPage
所有已实现的接口:
Base, Convertible, Page
包容类:
CategoryGenerator

public static class CategoryGenerator.CategoryPage
extends AbstractConvertible
implements Page


字段摘要
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
 

字段详细信息

TEMPLATE

public static final String TEMPLATE
另请参见:
常量字段值
方法详细信息

render

public void render(Map<String,Object> rootMap)
指定者:
接口 Convertible 中的 render
覆盖:
AbstractConvertible 中的 render
参数:
rootMap - root object for FreeMarker template

getUrl

public String getUrl()
从接口 Base 复制的描述
Return the URL. It's part of output URL, start with a '/', relative to destination directory, without site root prefix.

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 中的 getUrl
指定者:
AbstractConvertible 中的 getUrl
返回:
the page or post main URL
另请参见:
Site.getRoot()

setUrl

public void setUrl(String url)

getSource

public Source getSource()
从接口 Base 复制的描述
The file source.

指定者:
接口 Base 中的 getSource
指定者:
AbstractConvertible 中的 getSource
返回:
source

getContent

public String getContent()
从接口 Base 复制的描述
Return the post or page content. Content might be changed by Converter in generate processing.

指定者:
接口 Base 中的 getContent
指定者:
AbstractConvertible 中的 getContent
返回:
the content text of post or page

getPath

public String getPath()
从接口 Base 复制的描述
The origin file path of the source file, not source directory prefix. Such as '/about/index.markdown'.

指定者:
接口 Base 中的 getPath
返回:
the origin file path

getLayout

public String getLayout()
从接口 Base 复制的描述
The layout of source file. All build in layout are 'default', 'post', 'page' and 'nil'.

'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 中的 getLayout
指定者:
AbstractConvertible 中的 getLayout
返回:
the layout of source file

getPermalink

public String getPermalink()
从接口 Base 复制的描述
The permalink style.

指定者:
接口 Base 中的 getPermalink
返回:
permalink

getDate

public Date getDate()
从接口 Base 复制的描述
The date format in the source file is 'yyyy-MM-dd HH:mm' or 'yyyy-MM-dd HH:mm:ss'.

指定者:
接口 Base 中的 getDate
返回:
date

getUpdated

public Date getUpdated()
从接口 Base 复制的描述
The updated date format in the source file is 'yyyy-MM-dd HH:mm' or 'yyyy-MM-dd HH:mm:ss'.

指定者:
接口 Base 中的 getUpdated
返回:
the updated date

getDateFormatted

public String getDateFormatted()
从接口 Base 复制的描述
The output date format of the date.

指定者:
接口 Base 中的 getDateFormatted
返回:
date format string
另请参见:
Base.getDate()

getUpdatedFormatted

public String getUpdatedFormatted()
从接口 Base 复制的描述
The output date format of the updated date.

指定者:
接口 Base 中的 getUpdatedFormatted
返回:
updated date format string
另请参见:
Base.getUpdated()

getPager

public Pager getPager()
指定者:
接口 Page 中的 getPager

setPager

public void setPager(Pager pager)
指定者:
接口 Page 中的 setPager

setContent

public void setContent(String content)
指定者:
AbstractConvertible 中的 setContent

getOutputFileExtension

public String getOutputFileExtension()
指定者:
AbstractConvertible 中的 getOutputFileExtension

getRenderer

protected Renderer getRenderer()
指定者:
AbstractConvertible 中的 getRenderer

convert

protected void convert()
指定者:
AbstractConvertible 中的 convert

mergeRootMap

protected void mergeRootMap(Map<String,Object> rootMap)
指定者:
AbstractConvertible 中的 mergeRootMap

getTitle

public String getTitle()

setTitle

public void setTitle(String title)

getPosts

public List<Post> getPosts()

setPosts

public void setPosts(List<Post> posts)

isFooter

public boolean isFooter()

isSidebar

public boolean isSidebar()

get

public Object get(String string)
从接口 Base 复制的描述
Get meta data.

指定者:
接口 Base 中的 get
返回:
value

getOutputFile

public File getOutputFile(File dest)
指定者:
接口 Convertible 中的 getOutputFile
覆盖:
AbstractConvertible 中的 getOutputFile
返回:
output file

isComments

public boolean isComments()

set

public void set(String name,
                Object value)
从接口 Base 复制的描述
Set meta data.

指定者:
接口 Base 中的 set
另请参见:
Base.get(String)


Copyright © 2013 Opoo.org. All Rights Reserved.