|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sourceforge.pebble.domain.TimePeriod
net.sourceforge.pebble.domain.Month
public class Month
Represents a blog at a monthly level. This manages a collection of Day instances.
Method Summary | |
---|---|
boolean |
after(Month month)
Determines if the this Month is after (in the calendar) the specified Month. |
boolean |
before(Month month)
Determines if the this Month is before (in the calendar) the specified Month. |
Day[] |
getAllDays()
Gets an array of all Days. |
java.util.List<java.lang.String> |
getBlogEntries()
Gets all blog entries for this month. |
Day |
getBlogForDay(int day)
Gets a Day instance for the specified day. |
Day |
getBlogForFirstDay()
Gets a Day instance for the first day of the month. |
Day |
getBlogForLastDay()
Gets a Day instance for the last day of the month. |
int |
getLastDayInMonth()
Gets the last day of the month. |
int |
getMonth()
Gets an integer representing the month that this monthly blog is for. |
Month |
getNextMonth()
Gets the Month instance for the next month. |
int |
getNumberOfBlogEntries()
Gets the number of blog entries for this month. |
java.lang.String |
getPermalink()
Gets the permalink to display all entries for this Month. |
Month |
getPreviousMonth()
Gets the Month instance for the previous month. |
Year |
getYear()
Gets a reference to the parent Year instance. |
boolean |
hasBlogEntries()
Determines whether this monthly blog has entries. |
java.lang.String |
toString()
Gets a string representation of this object. |
Methods inherited from class net.sourceforge.pebble.domain.TimePeriod |
---|
getBlog, getDate, setDate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Year getYear()
public int getMonth()
public java.lang.String getPermalink()
getPermalink
in interface Permalinkable
public boolean hasBlogEntries()
public java.util.List<java.lang.String> getBlogEntries()
public int getNumberOfBlogEntries()
public Day[] getAllDays()
public Day getBlogForDay(int day)
day
- the day as an int (i.e. 1 to 31)
public Day getBlogForFirstDay()
public Day getBlogForLastDay()
public int getLastDayInMonth()
public Month getPreviousMonth()
public Month getNextMonth()
public boolean before(Month month)
public boolean after(Month month)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |