org.opoo.press.impl
类 SiteImpl

java.lang.Object
  继承者 org.opoo.press.impl.SiteImpl
所有已实现的接口:
Site, SiteBuilder, SiteHelper

public class SiteImpl
extends java.lang.Object
implements Site, SiteBuilder

作者:
Alex Lin

嵌套类摘要
 
从接口 org.opoo.press.Site 继承的嵌套类/接口
Site.BuildInfo
 
方法摘要
 void build()
           
 java.lang.String buildCanonical(java.lang.String url)
           
 java.lang.Object get(java.lang.String name)
          Get value from configuration file or site variables.
 java.io.File getAssets()
           
 java.util.List<Category> getCategories()
           
 Category getCategory(java.lang.String categoryNameOrNicename)
           
 SiteConfig getConfig()
           
 Converter getConverter(Source source)
           
 java.io.File getDestination()
           
 Highlighter getHighlighter()
           
 Site.BuildInfo getLastBuildInfo()
           
 java.util.Locale getLocale()
           
 java.util.List<Page> getPages()
           
 java.lang.String getPermalink()
          The site permalink style for all posts.
 java.util.List<Post> getPosts()
           
 RelatedPostsFinder getRelatedPostsFinder()
          Could configured in config.yml by variable 'relatedPostsFinder'.
 Renderer getRenderer()
           
 java.lang.String getRoot()
           
 java.io.File getSite()
           
 java.io.File getSource()
          Source directory.
 java.util.List<java.io.File> getSources()
          Other source directories.
 java.util.List<StaticFile> getStaticFiles()
           
 Tag getTag(java.lang.String tagNameOrSlug)
           
 java.util.List<Tag> getTags()
           
 java.io.File getTemplates()
           
 java.util.Date getTime()
           
 java.io.File getWorking()
           
 void set(java.lang.String name, java.lang.Object value)
          Set a variable for site.
 boolean showDrafts()
           
 java.lang.String toNicename(java.lang.String categoryName)
           
 java.lang.String toSlug(java.lang.String tagName)
           
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

方法详细信息

build

public void build()
指定者:
接口 SiteBuilder 中的 build

getPages

public java.util.List<Page> getPages()
指定者:
接口 Site 中的 getPages
返回:
the pages

getPosts

public java.util.List<Post> getPosts()
指定者:
接口 Site 中的 getPosts
返回:
the posts

getConfig

public SiteConfig getConfig()
指定者:
接口 Site 中的 getConfig

getSource

public java.io.File getSource()
从接口 Site 复制的描述
Source directory.

指定者:
接口 Site 中的 getSource
返回:

getSources

public java.util.List<java.io.File> getSources()
从接口 Site 复制的描述
Other source directories.

指定者:
接口 Site 中的 getSources
返回:

getDestination

public java.io.File getDestination()
指定者:
接口 Site 中的 getDestination

getStaticFiles

public java.util.List<StaticFile> getStaticFiles()
指定者:
接口 Site 中的 getStaticFiles

getTime

public java.util.Date getTime()
指定者:
接口 Site 中的 getTime

get

public java.lang.Object get(java.lang.String name)
从接口 Site 复制的描述
Get value from configuration file or site variables.

指定者:
接口 Site 中的 get
返回:
value
另请参见:
Site.set(String, Object)

set

public void set(java.lang.String name,
                java.lang.Object value)
从接口 Site 复制的描述
Set a variable for site.

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

getRenderer

public Renderer getRenderer()
指定者:
接口 Site 中的 getRenderer

getTemplates

public java.io.File getTemplates()
指定者:
接口 Site 中的 getTemplates

getAssets

public java.io.File getAssets()
指定者:
接口 Site 中的 getAssets

getWorking

public java.io.File getWorking()
指定者:
接口 Site 中的 getWorking

getConverter

public Converter getConverter(Source source)
指定者:
接口 Site 中的 getConverter

getRoot

public java.lang.String getRoot()
指定者:
接口 Site 中的 getRoot

getLocale

public java.util.Locale getLocale()
指定者:
接口 Site 中的 getLocale

getHighlighter

public Highlighter getHighlighter()
指定者:
接口 Site 中的 getHighlighter

getRelatedPostsFinder

public RelatedPostsFinder getRelatedPostsFinder()
从接口 Site 复制的描述
Could configured in config.yml by variable 'relatedPostsFinder'.

指定者:
接口 Site 中的 getRelatedPostsFinder
返回:
RelatedPostsFinder

getCategories

public java.util.List<Category> getCategories()
指定者:
接口 Site 中的 getCategories

getTags

public java.util.List<Tag> getTags()
指定者:
接口 Site 中的 getTags

buildCanonical

public java.lang.String buildCanonical(java.lang.String url)
指定者:
接口 SiteHelper 中的 buildCanonical

toSlug

public java.lang.String toSlug(java.lang.String tagName)
指定者:
接口 SiteHelper 中的 toSlug

toNicename

public java.lang.String toNicename(java.lang.String categoryName)
指定者:
接口 SiteHelper 中的 toNicename

getCategory

public Category getCategory(java.lang.String categoryNameOrNicename)
指定者:
接口 SiteHelper 中的 getCategory

getTag

public Tag getTag(java.lang.String tagNameOrSlug)
指定者:
接口 SiteHelper 中的 getTag

getPermalink

public java.lang.String getPermalink()
从接口 Site 复制的描述
The site permalink style for all posts.

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

getSite

public java.io.File getSite()
指定者:
接口 Site 中的 getSite
返回:
the site

showDrafts

public boolean showDrafts()
指定者:
接口 Site 中的 showDrafts
返回:
the showDrafts

getLastBuildInfo

public Site.BuildInfo getLastBuildInfo()
指定者:
接口 Site 中的 getLastBuildInfo


Copyright © 2013 Opoo.org. All Rights Reserved.