|
Copyright (c) 2000-2002 ChurchillObjects.com | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--churchillobjects.rss4j.RssSyndication
Encapsulates the attributes and some logic of the RDF syndication extension to RSS. This includes the update period, frequency and update base. Only classes that implement IUsesSyndication can support RssSyndication (RssChannel).
Field Summary | |
static java.lang.String |
DAILY
Enumerated daily value. |
static java.lang.String |
HOURLY
Enumerated hourly value. |
static java.lang.String |
MONTHLY
Enumerated monthly value. |
static java.lang.String |
PREFIX
The prefix used by syndication. |
private java.lang.String |
updateBase
The syndication's update base as a string. |
private java.util.Date |
updateBaseDate
The syndication's update base as a java.util.Date. |
private int |
updateFrequency
The syndication's update frequency, default to 1. |
private java.lang.String |
updatePeriod
The syndication's update period, default to "daily". |
static java.lang.String |
WEEKLY
Enumerated weekly value. |
static java.lang.String |
XMLNS
The XML namespace for syndication. |
static java.lang.String |
XMLNS_VALUE
The namespace uri for syndication. |
static java.lang.String |
YEARLY
Enumerated yearly value. |
Constructor Summary | |
RssSyndication()
Default constructor. |
|
RssSyndication(java.lang.String updatePeriod,
int updateFrequency,
java.util.Date updateBase)
Overloaded constructor for presetting the object's values. |
|
RssSyndication(java.lang.String updatePeriod,
int updateFrequency,
java.lang.String updateBase)
Overloaded constructor for presetting the object's values. |
Method Summary | |
java.lang.Object |
clone()
Public clone method to allow cloning. |
boolean |
equals(java.lang.Object obj)
Canonical equals method. |
java.lang.String |
getUpdateBase()
Returns the update base of the syndication as a String. |
java.util.Date |
getUpdateBaseAsDate()
Returns the update base of the syndication as a java.util.Date. |
int |
getUpdateFrequency()
Returns the update frequency of the syndication. |
java.lang.String |
getUpdatePeriod()
Returns the update period of the syndication. |
int |
hashCode()
Computes the hashcode of this object based on the hashcodes of the objects it contains. |
void |
setUpdateBase(java.util.Date date)
Sets the update base for the syndicaiton as a java.util.Date. |
void |
setUpdateBase(java.lang.String s)
Sets the update base for the syndication as a String. |
void |
setUpdateFrequency(int i)
Stes the update frequency of the syndication. |
void |
setUpdatePeriod(java.lang.String s)
Sets the update period of the syndication. |
java.lang.String |
toString()
Returns a string representation of this object. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final java.lang.String XMLNS
public static final java.lang.String PREFIX
public static final java.lang.String XMLNS_VALUE
public static final java.lang.String HOURLY
public static final java.lang.String DAILY
public static final java.lang.String WEEKLY
public static final java.lang.String MONTHLY
public static final java.lang.String YEARLY
private java.lang.String updatePeriod
private int updateFrequency
private java.lang.String updateBase
private java.util.Date updateBaseDate
Constructor Detail |
public RssSyndication()
public RssSyndication(java.lang.String updatePeriod, int updateFrequency, java.lang.String updateBase) throws java.text.ParseException
updatePeriod
- updateFrequency
- updateBase
-
java.text.ParseException
public RssSyndication(java.lang.String updatePeriod, int updateFrequency, java.util.Date updateBase)
updatePeriod
- updateFrequency
- updateBase
- Method Detail |
public void setUpdateBase(java.lang.String s) throws java.text.ParseException
s
-
java.text.ParseException
public void setUpdateBase(java.util.Date date)
date
- public void setUpdatePeriod(java.lang.String s)
s
- public void setUpdateFrequency(int i)
i
- public java.lang.String getUpdatePeriod()
public int getUpdateFrequency()
public java.lang.String getUpdateBase()
public java.util.Date getUpdateBaseAsDate()
public java.lang.String toString()
toString
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- The other object
public java.lang.Object clone()
clone
in class java.lang.Object
|
Copyright (c) 2000-2002 ChurchillObjects.com | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |