org.opoo.press.impl
类 AbstractBase

java.lang.Object
  继承者 org.opoo.press.impl.AbstractConvertible
      继承者 org.opoo.press.impl.AbstractBase
所有已实现的接口:
Base, Convertible
直接已知子类:
PageImpl, PostImpl

public abstract class AbstractBase
extends AbstractConvertible
implements Base

作者:
Alex Lin

字段摘要
protected  org.slf4j.Logger log
           
 
方法摘要
protected  boolean containsHighlightCodeBlock(Highlighter highlighter)
           
protected  void convert()
           
 java.lang.Object get(java.lang.String name)
          Get meta data.
 java.lang.String getContent()
          Return the post or page content.
protected  Converter getConverter()
           
 java.lang.String getDate_formatted()
          For freemarker template.
 java.util.Date getDate()
          The date format in the source file is 'yyyy-MM-dd HH:mm' or 'yyyy-MM-dd HH:mm:ss'.
 java.lang.String getDateFormatted()
          The output date format of the date.
 java.lang.String getLayout()
          The layout of source file.
 java.lang.String getOutputFileExtension()
           
 java.lang.String getPath()
          The origin file path of the source file, not source directory prefix.
 java.lang.String getPermalink()
          The permalink style.
protected  Renderer getRenderer()
           
 Site getSite()
           
 Source getSource()
          The file source.
 java.lang.String getUpdated_formatted()
          For freemarker template.
 java.util.Date getUpdated()
          The updated date format in the source file is 'yyyy-MM-dd HH:mm' or 'yyyy-MM-dd HH:mm:ss'.
 java.lang.String getUpdatedFormatted()
          The output date format of the updated date.
 java.lang.String getUrl()
          Return the URL.
protected  void mergeRootMap(java.util.Map<java.lang.String,java.lang.Object> rootMap)
           
 void set(java.lang.String name, java.lang.Object value)
          Set meta data.
 void setContent(java.lang.String content)
           
 void setUrl(java.lang.String url)
           
 
从类 org.opoo.press.impl.AbstractConvertible 继承的方法
getOutputFile, render, write
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

字段详细信息

log

protected org.slf4j.Logger log
方法详细信息

set

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

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

get

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

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

getOutputFileExtension

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

getSite

public Site getSite()

getSource

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

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

getConverter

protected Converter getConverter()
返回:
the converter

getRenderer

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

getContent

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

指定者:
接口 Base 中的 getContent
指定者:
AbstractConvertible 中的 getContent
返回:
the content

setContent

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

convert

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

mergeRootMap

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

containsHighlightCodeBlock

protected boolean containsHighlightCodeBlock(Highlighter highlighter)
参数:
highlighter -

getUrl

public java.lang.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(java.lang.String url)

getPath

public java.lang.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 java.lang.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 java.lang.String getPermalink()
从接口 Base 复制的描述
The permalink style.

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

getDate

public java.util.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 java.util.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 java.lang.String getDateFormatted()
从接口 Base 复制的描述
The output date format of the date.

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

getUpdatedFormatted

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

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

getDate_formatted

public java.lang.String getDate_formatted()
For freemarker template.

返回:
the date formatted string

getUpdated_formatted

public java.lang.String getUpdated_formatted()
For freemarker template.

返回:
the update date formatted string


Copyright © 2013 Opoo.org. All Rights Reserved.