net.bican.wordpress
Class Page

java.lang.Object
  extended by net.bican.wordpress.XmlRpcMapped
      extended by net.bican.wordpress.Page
All Implemented Interfaces:
StringHeader

public class Page
extends XmlRpcMapped
implements StringHeader

Page object for a blog.

Author:
Can Bican <can@bican.net>

Constructor Summary
Page()
           
 
Method Summary
static Page fromFile(File file)
          Generates a new page class from the given file
 redstone.xmlrpc.XmlRpcArray getCategories()
           
 redstone.xmlrpc.XmlRpcArray getCustom_fields()
           
 Date getDate_created_gmt()
           
 Date getDateCreated()
           
 String getDescription()
           
 String getExcerpt()
           
 String getLink()
           
 Integer getMt_allow_comments()
           
 Integer getMt_allow_pings()
           
 String getMt_keywords()
           
 String getMt_text_more()
           
 Integer getPage_id()
           
 String getPage_status()
           
 String getPermaLink()
           
 String getPost_status()
           
 String getPost_type()
           
 Integer getPostid()
           
 String getStringHeader()
          (non-Javadoc)
 String getTitle()
           
 String getUserid()
           
 String getWp_author_display_name()
           
 String getWp_author_id()
           
 String getWp_author()
           
 Integer getWp_page_order()
           
 Integer getWp_page_parent_id()
           
 String getWp_page_parent_title()
           
 String getWp_password()
           
 String getWp_slug()
           
 void setCategories(redstone.xmlrpc.XmlRpcArray categories)
           
 void setCustom_fields(redstone.xmlrpc.XmlRpcArray custom_fields)
           
 void setDate_created_gmt(Date date_created_gmt)
           
 void setDateCreated(Date dateCreated)
           
 void setDescription(String description)
           
 void setExcerpt(String excerpt)
           
 void setLink(String link)
           
 void setMt_allow_comments(Integer mt_allow_comments)
           
 void setMt_allow_pings(Integer mt_allow_pings)
           
 void setMt_keywords(String mt_keywords)
           
 void setMt_text_more(String mt_text_more)
           
 void setPage_id(Integer page_id)
           
 void setPage_status(String page_status)
           
 void setPermaLink(String permaLink)
           
 void setPost_status(String postStatus)
           
 void setPost_type(String post_type)
           
 void setPostid(Integer postid)
           
 void setTitle(String title)
           
 void setUserid(String userid)
           
 void setWp_author_display_name(String wp_author_display_name)
           
 void setWp_author_id(String wp_author_id)
           
 void setWp_author(String wp_author)
           
 void setWp_page_order(Integer wp_page_order)
           
 void setWp_page_parent_id(Integer wp_page_parent_id)
           
 void setWp_page_parent_title(String wp_page_parent_title)
           
 void setWp_password(String wp_password)
           
 void setWp_slug(String wp_slug)
           
 
Methods inherited from class net.bican.wordpress.XmlRpcMapped
fromXmlRpcStruct, toOneLinerString, toString, toXmlRpcStruct
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Page

public Page()
Method Detail

fromFile

public static Page fromFile(File file)
                     throws IOException,
                            InvalidPostFormatException
Generates a new page class from the given file

Parameters:
file - file that contains the page information
Returns:
new Page object
Throws:
IOException - when the file cannot be read
InvalidPostFormatException - when the file format is not recognized

getCategories

public redstone.xmlrpc.XmlRpcArray getCategories()
Returns:
the categories

getCustom_fields

public redstone.xmlrpc.XmlRpcArray getCustom_fields()
Returns:
the custom_fields

getDate_created_gmt

public Date getDate_created_gmt()
Returns:
the date_created_gmt

getDateCreated

public Date getDateCreated()
Returns:
the dateCreated

getDescription

public String getDescription()
Returns:
the description

getExcerpt

public String getExcerpt()
Returns:
the excerpt

getLink

public String getLink()
Returns:
the link

getMt_allow_comments

public Integer getMt_allow_comments()
Returns:
the mt_allow_comments

getMt_allow_pings

public Integer getMt_allow_pings()
Returns:
the mt_allow_pings

getMt_keywords

public String getMt_keywords()
Returns:
the mt_keywords

getMt_text_more

public String getMt_text_more()
Returns:
text_more

getPage_id

public Integer getPage_id()
Returns:
the page_id

getPage_status

public String getPage_status()
Returns:
the page_status

getPermaLink

public String getPermaLink()
Returns:
the permaLink

getPost_status

public String getPost_status()
Returns:
the post_status

getPost_type

public String getPost_type()
Returns:
the post_type

getPostid

public Integer getPostid()
Returns:
the postid

getStringHeader

public String getStringHeader()
(non-Javadoc)

Specified by:
getStringHeader in interface StringHeader
Returns:
Header list
See Also:
StringHeader.getStringHeader()

getTitle

public String getTitle()
Returns:
the title

getUserid

public String getUserid()
Returns:
the userid

getWp_author

public String getWp_author()
Returns:
the wp_author

getWp_author_display_name

public String getWp_author_display_name()
Returns:
the wp_author_display_name

getWp_author_id

public String getWp_author_id()
Returns:
the wp_author_id

getWp_page_order

public Integer getWp_page_order()
Returns:
the wp_page_order

getWp_page_parent_id

public Integer getWp_page_parent_id()
Returns:
the wp_page_parent_id

getWp_page_parent_title

public String getWp_page_parent_title()
Returns:
the wp_page_parent_title

getWp_password

public String getWp_password()
Returns:
the wp_password

getWp_slug

public String getWp_slug()
Returns:
the wp_slug

setCategories

public void setCategories(redstone.xmlrpc.XmlRpcArray categories)
Parameters:
categories - the categories to set

setCustom_fields

public void setCustom_fields(redstone.xmlrpc.XmlRpcArray custom_fields)
Parameters:
custom_fields - the custom_fields to set

setDate_created_gmt

public void setDate_created_gmt(Date date_created_gmt)
Parameters:
date_created_gmt - the date_created_gmt to set

setDateCreated

public void setDateCreated(Date dateCreated)
Parameters:
dateCreated - the dateCreated to set

setDescription

public void setDescription(String description)
Parameters:
description - the description to set

setExcerpt

public void setExcerpt(String excerpt)
Parameters:
excerpt - the excerpt to set

setLink

public void setLink(String link)
Parameters:
link - the link to set

setMt_allow_comments

public void setMt_allow_comments(Integer mt_allow_comments)
Parameters:
mt_allow_comments - the mt_allow_comments to set

setMt_allow_pings

public void setMt_allow_pings(Integer mt_allow_pings)
Parameters:
mt_allow_pings - the mt_allow_pings to set

setMt_keywords

public void setMt_keywords(String mt_keywords)
Parameters:
mt_keywords - the mt_keywords to set

setMt_text_more

public void setMt_text_more(String mt_text_more)
Parameters:
mt_text_more - to set

setPage_id

public void setPage_id(Integer page_id)
Parameters:
page_id - the page_id to set

setPage_status

public void setPage_status(String page_status)
Parameters:
page_status - the page_status to set

setPermaLink

public void setPermaLink(String permaLink)
Parameters:
permaLink - the permaLink to set

setPost_status

public void setPost_status(String postStatus)
Parameters:
postStatus - the post_status to set

setPost_type

public void setPost_type(String post_type)
Parameters:
post_type - the post_type to set

setPostid

public void setPostid(Integer postid)
Parameters:
postid - the postid to set

setTitle

public void setTitle(String title)
Parameters:
title - the title to set

setUserid

public void setUserid(String userid)
Parameters:
userid - the userid to set

setWp_author

public void setWp_author(String wp_author)
Parameters:
wp_author - the wp_author to set

setWp_author_display_name

public void setWp_author_display_name(String wp_author_display_name)
Parameters:
wp_author_display_name - the wp_author_display_name to set

setWp_author_id

public void setWp_author_id(String wp_author_id)
Parameters:
wp_author_id - the wp_author_id to set

setWp_page_order

public void setWp_page_order(Integer wp_page_order)
Parameters:
wp_page_order - the wp_page_order to set

setWp_page_parent_id

public void setWp_page_parent_id(Integer wp_page_parent_id)
Parameters:
wp_page_parent_id - the wp_page_parent_id to set

setWp_page_parent_title

public void setWp_page_parent_title(String wp_page_parent_title)
Parameters:
wp_page_parent_title - the wp_page_parent_title to set

setWp_password

public void setWp_password(String wp_password)
Parameters:
wp_password - the wp_password to set

setWp_slug

public void setWp_slug(String wp_slug)
Parameters:
wp_slug - the wp_slug to set