|
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.RssDocument
Encapsulates the data and some minor logic regarding a document in the RSS object model. The document contains all of the elements inside of it, beginning with the channel.
Field Summary | |
private java.util.Vector |
channels
Holds the channels for the RSS document. |
private java.lang.String |
version
Holds the version for the RSS document. |
private java.util.Vector |
warnings
Holds the warnings that were generated by the parser when this document object was parsed from an RSS document. |
Fields inherited from interface churchillobjects.rss4j.model.RssVersion |
VERSION_10, VERSION_90, VERSION_91 |
Constructor Summary | |
RssDocument()
Default constructor. |
|
RssDocument(java.lang.String version)
Overloaded constructor to set the version number. |
Method Summary | |
void |
addChannel(churchillobjects.rss4j.RssChannel channel)
Adds a channel to the document. |
void |
addWarning(java.lang.String s)
Adds a warning to the document. |
java.util.Enumeration |
channels()
Returns an enumeration of channels to the document. |
java.lang.Object |
clone()
Public clone method to allow cloning. |
boolean |
equals(java.lang.Object obj)
Canonical equals method. |
java.lang.String |
getVersion()
Returns the RSS version number of the document. |
int |
hashCode()
Computes the hashcode of this object based on the hashcodes of the objects it contains. |
void |
setVersion(java.lang.String s)
Sets the RSS version number of the document. |
java.lang.String |
toString()
Returns a string representation of this object. |
java.util.Enumeration |
warnings()
Returns an enumeration of the current warnings. |
Methods inherited from class java.lang.Object |
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
private java.util.Vector channels
private java.lang.String version
private java.util.Vector warnings
Constructor Detail |
public RssDocument()
public RssDocument(java.lang.String version)
version
- Method Detail |
public void addChannel(churchillobjects.rss4j.RssChannel channel)
channel
- public java.util.Enumeration channels()
public void setVersion(java.lang.String s)
s
- public java.lang.String getVersion()
public void addWarning(java.lang.String s)
s
- public java.util.Enumeration warnings()
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 |