Java Doc for RSSChannel.java in  » RSS-RDF » curn » org » clapper » curn » parser » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » RSS RDF » curn » org.clapper.curn.parser 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.clapper.curn.parser.RSSElement
      org.clapper.curn.parser.RSSChannel

All known Subclasses:   org.clapper.curn.parser.rome.RSSChannelAdapter,
RSSChannel
abstract public class RSSChannel extends RSSElement implements Cloneable(Code)
This abstract class defines a simplified view of an RSS channel, providing only the methods necessary for curn to work. curn uses the RSSParserFactory class to get a specific implementation of RSSParser, which returns an object that is a subclass of this class. This strategy isolates the bulk of the code from the underlying RSS parser, making it easier to substitute different parsers as more of them become available.
See Also:   RSSParserFactory
See Also:   RSSParser
See Also:   RSSItem
version:
   $Revision: 7041 $



Constructor Summary
protected  RSSChannel()
     Default constructor.

Method Summary
abstract public  voidaddAuthor(String author)
     Add to the channel's author list.
abstract public  voidclearAuthors()
     Clear the authors list.
public  Objectclone()
     Clone this channel.
abstract public  Collection<String>getAuthors()
     Get the channel's author list.
abstract public  StringgetCopyright()
    
abstract public  StringgetDescription()
    
abstract public  Collection<RSSItem>getItems()
     Get a Collection of the items in this channel.
abstract public  Collection<RSSLink>getLinks()
     Get the channel's list of published links (its URLs).
public  ObjectgetNativeRSSFormat()
     Get the RSS format the channel is using, in native format.
abstract public  DategetPublicationDate()
     Get the channel's publication date.
abstract public  StringgetRSSFormat()
    
abstract public  StringgetTitle()
    
public  RSSChannelmakeCopy()
     Make a deep copy of this RSSChannel object.
abstract public  RSSChannelnewInstance()
     Create a new, empty instance of the underlying concrete class.
abstract public  booleanremoveItem(RSSItem item)
     Remove an item from the set of items.
abstract public  voidsetCopyright(String copyright)
    
abstract public  voidsetDescription(String desc)
    
abstract public  voidsetItems(Collection<? extends RSSItem> newItems)
     Change the items the channel the ones in the specified collection. If the collection is empty, the items are cleared.
abstract public  voidsetLinks(Collection<RSSLink> links)
     Set the channel's list of published links (its URLs).
abstract public  voidsetNativeRSSFormat(Object format)
     Set the RSS format the channel is using.
abstract public  voidsetPublicationDate(Date date)
     Set the channel's publication date.
abstract public  voidsetTitle(String newTitle)
    
public synchronized  voidstripHTML()
     Strip all HTML and weird plain text from the channel and its items. Intended primarily for output handlers and plug-ins that produce plain text.
public  StringtoString()
     Return a string representation of this channel.


Constructor Detail
RSSChannel
protected RSSChannel()(Code)
Default constructor.




Method Detail
addAuthor
abstract public void addAuthor(String author)(Code)
Add to the channel's author list.
Parameters:
  author - another author string to add
See Also:   RSSChannel.getAuthors
See Also:   RSSChannel.clearAuthors
See Also:   RSSChannel.setAuthor



clearAuthors
abstract public void clearAuthors()(Code)
Clear the authors list.
See Also:   RSSChannel.getAuthors
See Also:   RSSChannel.addAuthor
See Also:   RSSChannel.setAuthor



clone
public Object clone() throws CloneNotSupportedException(Code)
Clone this channel. This method simply calls the type-safe RSSChannel.makeCopy method. The clone is a deep-clone (i.e., the items are cloned, too). the cloned RSSChannel
throws:
  CloneNotSupportedException - doesn't, actually, but theCloneable interfacerequires that this exceptionbe declared
See Also:   RSSChannel.makeCopy



getAuthors
abstract public Collection<String> getAuthors()(Code)
Get the channel's author list. the authors, or null (or an empty Collection) ifnot available
See Also:   RSSChannel.addAuthor
See Also:   RSSChannel.clearAuthors
See Also:   RSSChannel.setAuthor



getCopyright
abstract public String getCopyright()(Code)
Get the channel's copyright string the copyright string, or null if not available
See Also:   RSSChannel.setCopyright



getDescription
abstract public String getDescription()(Code)
Get the channel's description the channel's description, or null if there isn't one
See Also:   RSSChannel.setDescription



getItems
abstract public Collection<RSSItem> getItems()(Code)
Get a Collection of the items in this channel. All objects in the collection are of type RSSItem. a (new) Collection of RSSItem objects.The collection will be empty (never null) if there are noitems. This Collection is expected to be a copy ofwhatever the channel is really storing. (That is, if theunderlying implementation is using a Collection tostore its RSSItem objects, it should not returnthat Collection directly; instead, it should returna copy.) The order of items in the returned collectionis arbitrary and not guaranteed to be sorted, unless sortedby a plug-in.



getLinks
abstract public Collection<RSSLink> getLinks()(Code)
Get the channel's list of published links (its URLs). Each element in the returned Collection is an RSSLink object. the collection of links, or an empty list if there are none.The result will never be null.
See Also:   RSSChannel.getLink
See Also:   RSSChannel.setLinks



getNativeRSSFormat
public Object getNativeRSSFormat()(Code)
Get the RSS format the channel is using, in native format. This method exists for underlying implementations that store the RSS format as something other than a string; the method allows the RSSChannel.makeCopy method to copy the RSS format without knowing how it's stored. The default implementation of this method simply calls RSSChannel.getRSSFormat . the format, or null if not available
See Also:   RSSChannel.getRSSFormat
See Also:   RSSChannel.setNativeRSSFormat



getPublicationDate
abstract public Date getPublicationDate()(Code)
Get the channel's publication date. the date, or null if not available
See Also:   RSSChannel.setPublicationDate



getRSSFormat
abstract public String getRSSFormat()(Code)
Get the RSS format the channel is using, as a string the format, or null if not available
See Also:   RSSChannel.getNativeRSSFormat
See Also:   RSSChannel.setNativeRSSFormat



getTitle
abstract public String getTitle()(Code)
Get the channel's title the channel's title, or null if there isn't one
See Also:   RSSChannel.setTitle(String)



makeCopy
public RSSChannel makeCopy()(Code)
Make a deep copy of this RSSChannel object. the copy



newInstance
abstract public RSSChannel newInstance()(Code)
Create a new, empty instance of the underlying concrete class. the new instance



removeItem
abstract public boolean removeItem(RSSItem item)(Code)
Remove an item from the set of items.
Parameters:
  item - the item to remove true if removed, false if not found



setCopyright
abstract public void setCopyright(String copyright)(Code)
Set the channel's copyright string
Parameters:
  copyright - the copyright string, or null if not available
See Also:   RSSChannel.getCopyright



setDescription
abstract public void setDescription(String desc)(Code)
Set the channel's description
Parameters:
  desc - the channel's description, or null if there isn't one
See Also:   RSSChannel.getDescription



setItems
abstract public void setItems(Collection<? extends RSSItem> newItems)(Code)
Change the items the channel the ones in the specified collection. If the collection is empty, the items are cleared. The items are copied from the supplied collection. (A reference to the supplied collection is not saved in this object.)
Parameters:
  newItems - new collection of RSSItem items.



setLinks
abstract public void setLinks(Collection<RSSLink> links)(Code)
Set the channel's list of published links (its URLs).
Parameters:
  links - the links
See Also:   RSSChannel.getLink
See Also:   RSSChannel.getLinks



setNativeRSSFormat
abstract public void setNativeRSSFormat(Object format)(Code)
Set the RSS format the channel is using.
Parameters:
  format - the format, or null if not available
See Also:   RSSChannel.getRSSFormat
See Also:   RSSChannel.getNativeRSSFormat



setPublicationDate
abstract public void setPublicationDate(Date date)(Code)
Set the channel's publication date.
Parameters:
  date - the publication date, or null if not available
See Also:   RSSChannel.getPublicationDate



setTitle
abstract public void setTitle(String newTitle)(Code)
Set the channel's title
Parameters:
  newTitle - the channel's title, or null if there isn't one
See Also:   RSSChannel.getTitle()



stripHTML
public synchronized void stripHTML()(Code)
Strip all HTML and weird plain text from the channel and its items. Intended primarily for output handlers and plug-ins that produce plain text. This method edits the channel data directly; it does not produce a copy.



toString
public String toString()(Code)
Return a string representation of this channel. the string



Methods inherited from org.clapper.curn.parser.RSSElement
abstract public void addAuthor(String author)(Code)(Java Doc)
abstract public void clearAuthors()(Code)(Java Doc)
final public String getAuthor()(Code)(Java Doc)
abstract public Collection<String> getAuthors()(Code)(Java Doc)
public String getID()(Code)(Java Doc)
final public RSSLink getLink(String mimeType, RSSLink.Type... linkTypes)(Code)(Java Doc)
final public RSSLink getLink(RSSLink.Type linkType)(Code)(Java Doc)
final public RSSLink getLink(String mimeType)(Code)(Java Doc)
final public RSSLink getLinkWithFallback(String mimeType)(Code)(Java Doc)
abstract public Collection<RSSLink> getLinks()(Code)(Java Doc)
final public RSSLink getURL()(Code)(Java Doc)
final public void setAuthor(String newAuthor)(Code)(Java Doc)
final public void setAuthors(Collection<String> newAuthors)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.