org.opoo.press.impl
类 PostImpl

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

public class PostImpl
extends AbstractBase
implements Post, Comparable<Post>

作者:
Alex Lin

字段摘要
static String DEFAUL_EXCERPT_SEPARATOR
           
static Pattern FILENAME_PATTERN
           
 
从类 org.opoo.press.impl.AbstractBase 继承的字段
log
 
方法摘要
 int compareTo(Post o)
           
protected  void convert()
           
 List<Category> getCategories()
           
 String getExcerpt()
           
 String getId()
           
 Post getNext()
           
 Post getPrevious()
           
 List<Post> getRelatedPosts()
           
 List<String> getStringCategories()
           
 List<String> getStringTags()
           
 List<Tag> getTags()
           
 String getTitle()
           
 boolean isExcerpted()
           
 boolean isPublished()
           
protected  void mergeRootMap(Map<String,Object> rootMap)
           
 void render(Map<String,Object> rootMap)
           
 void setCategories(List<Category> categories)
           
 void setNext(Post next)
           
 void setPrevious(Post previous)
           
 void setTags(List<Tag> tags)
           
 
从类 org.opoo.press.impl.AbstractBase 继承的方法
containsHighlightCodeBlock, get, getContent, getConverter, getDate_formatted, getDate, getDateFormatted, getLayout, getOutputFileExtension, getPath, getPermalink, getRenderer, getSite, getSource, getUpdated_formatted, getUpdated, getUpdatedFormatted, getUrl, set, setContent, setUrl
 
从类 org.opoo.press.impl.AbstractConvertible 继承的方法
getOutputFile, write
 
从类 java.lang.Object 继承的方法
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
从接口 org.opoo.press.Convertible 继承的方法
getOutputFile, write
 
从接口 org.opoo.press.Base 继承的方法
get, getContent, getDate, getDateFormatted, getLayout, getPath, getPermalink, getSource, getUpdated, getUpdatedFormatted, getUrl, set
 

字段详细信息

DEFAUL_EXCERPT_SEPARATOR

public static final String DEFAUL_EXCERPT_SEPARATOR
另请参见:
常量字段值

FILENAME_PATTERN

public static Pattern FILENAME_PATTERN
方法详细信息

convert

protected void convert()
覆盖:
AbstractBase 中的 convert

getStringCategories

public List<String> getStringCategories()

getStringTags

public List<String> getStringTags()

getId

public String getId()
指定者:
接口 Post 中的 getId
返回:
the id

getTitle

public String getTitle()
指定者:
接口 Post 中的 getTitle
返回:
the title

getExcerpt

public String getExcerpt()
指定者:
接口 Post 中的 getExcerpt
返回:
the excerpt

isExcerpted

public boolean isExcerpted()
指定者:
接口 Post 中的 isExcerpted
返回:
the excerpted

isPublished

public boolean isPublished()

getNext

public Post getNext()
指定者:
接口 Post 中的 getNext
返回:
the next

setNext

public void setNext(Post next)
指定者:
接口 Post 中的 setNext

setPrevious

public void setPrevious(Post previous)
指定者:
接口 Post 中的 setPrevious

getPrevious

public Post getPrevious()
指定者:
接口 Post 中的 getPrevious
返回:
the previous

getRelatedPosts

public List<Post> getRelatedPosts()

compareTo

public int compareTo(Post o)
指定者:
接口 Comparable<Post> 中的 compareTo

render

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

mergeRootMap

protected void mergeRootMap(Map<String,Object> rootMap)
覆盖:
AbstractBase 中的 mergeRootMap

getCategories

public List<Category> getCategories()
指定者:
接口 Post 中的 getCategories
返回:
the categories

setCategories

public void setCategories(List<Category> categories)
参数:
categories - the categories to set

getTags

public List<Tag> getTags()
指定者:
接口 Post 中的 getTags
返回:
the tags

setTags

public void setTags(List<Tag> tags)
参数:
tags - the tags to set


Copyright © 2013 Opoo.org. All Rights Reserved.