Java Doc for SyndFeedImpl.java in  » RSS-RDF » Rome » com » sun » syndication » feed » synd » 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 » Rome » com.sun.syndication.feed.synd 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.syndication.feed.synd.SyndFeedImpl

SyndFeedImpl
public class SyndFeedImpl implements Serializable,SyndFeed(Code)
Bean for all types of feeds.

It handles all RSS versions and Atom 0.3, it normalizes all info, it may lose information.


author:
   Alejandro Abdelnur



Field Summary
final public static  SetCONVENIENCE_PROPERTIES
     Unmodifiable Set containing the convenience properties of this class.

Constructor Summary
protected  SyndFeedImpl(Class beanClass, Set convenienceProperties)
     For implementations extending SyndFeedImpl to be able to use the ObjectBean functionality with extended interfaces.
public  SyndFeedImpl()
     Default constructor.
public  SyndFeedImpl(WireFeed feed)
     Creates a SyndFeedImpl and populates all its properties out of the given RSS Channel or Atom Feed properties.

Method Summary
public  Objectclone()
     Creates a deep 'bean' clone of the object.
public  voidcopyFrom(Object obj)
    
public  WireFeedcreateWireFeed()
     Creates a real feed containing the information of the SyndFeedImpl.
public  WireFeedcreateWireFeed(String feedType)
     Creates a real feed containing the information of the SyndFeedImpl.


Parameters:
  feedType - the feed type for the WireFeed to be created.

public  booleanequals(Object other)
     Indicates whether some other object is "equal to" this one as defined by the Object equals() method.


Parameters:
  other - he reference object with which to compare.

public  StringgetAuthor()
     Returns the feed author.
public  ListgetAuthors()
    
public  ListgetCategories()
     Returns the feed categories.
public  ListgetContributors()
    
public  StringgetCopyright()
     Returns the feed copyright.
public  StringgetDescription()
     Returns the feed description.
public  SyndContentgetDescriptionEx()
     Returns the feed description as a text construct.
public  StringgetEncoding()
     Returns the charset encoding of a the feed.
public  ListgetEntries()
     Returns the feed entries.
public  StringgetFeedType()
     Returns the wire feed type the feed had/will-have when coverted from/to a WireFeed.
public  ObjectgetForeignMarkup()
     Returns foreign markup found at channel level.
public  SyndImagegetImage()
     Returns the feed image.
public  ClassgetInterface()
    
public  StringgetLanguage()
     Returns the feed language.
public  StringgetLink()
     Returns the feed link.

Note: The URI is the unique identifier, in the RSS 2.0/atom case this is the GUID, for RSS 1.0 this is the URI attribute of the item.

public  ListgetLinks()
    
public  ModulegetModule(String uri)
     Returns the module identified by a given URI.


Parameters:
  uri - the URI of the ModuleImpl.

public  ListgetModules()
     Returns the feed modules.
public  DategetPublishedDate()
     Returns the feed published date.
public  ListgetSupportedFeedTypes()
     Returns the real feed types the SyndFeedImpl supports when converting from and to.
public  StringgetTitle()
     Returns the feed title.
public  SyndContentgetTitleEx()
     Returns the feed title as a text construct.
public  StringgetUri()
     Returns the feed URI.

How the feed URI maps to a concrete feed type (RSS or Atom) depends on the concrete feed type.

public  inthashCode()
     Returns a hashcode value for the object.
public  voidsetAuthor(String author)
     Sets the feed author.
public  voidsetAuthors(List authors)
    
public  voidsetCategories(List categories)
     Sets the feed categories.
public  voidsetContributors(List contributors)
    
public  voidsetCopyright(String copyright)
     Sets the feed copyright.
public  voidsetDescription(String description)
     Sets the feed description.
public  voidsetDescriptionEx(SyndContent description)
     Sets the feed description as a text construct.
public  voidsetEncoding(String encoding)
     Sets the charset encoding of a the feed.
public  voidsetEntries(List entries)
     Sets the feed entries.
public  voidsetFeedType(String feedType)
     Sets the wire feed type the feed will-have when coverted to a WireFeed.
public  voidsetForeignMarkup(Object foreignMarkup)
     Sets foreign markup found at channel level.
public  voidsetImage(SyndImage image)
     Sets the feed image.
public  voidsetLanguage(String language)
     Sets the feed language.
public  voidsetLink(String link)
     Sets the feed link.

Note: The URI is the unique identifier, in the RSS 2.0/atom case this is the GUID, for RSS 1.0 this is the URI attribute of the item.

public  voidsetLinks(List links)
    
public  voidsetModules(List modules)
     Sets the feed modules.
public  voidsetPublishedDate(Date publishedDate)
     Sets the feed published date.
public  voidsetTitle(String title)
     Sets the feed title.
public  voidsetTitleEx(SyndContent title)
     Sets the feed title as a text construct.
public  voidsetUri(String uri)
     Sets the feed URI.

How the feed URI maps to a concrete feed type (RSS or Atom) depends on the concrete feed type.

public  StringtoString()
     Returns the String representation for the object.

Field Detail
CONVENIENCE_PROPERTIES
final public static Set CONVENIENCE_PROPERTIES(Code)
Unmodifiable Set containing the convenience properties of this class.

Convenience properties are mapped to Modules, for cloning the convenience properties can be ignored as the will be copied as part of the module cloning.





Constructor Detail
SyndFeedImpl
protected SyndFeedImpl(Class beanClass, Set convenienceProperties)(Code)
For implementations extending SyndFeedImpl to be able to use the ObjectBean functionality with extended interfaces.


Parameters:
  beanClass -
Parameters:
  convenienceProperties - set containing the convenience properties of the SyndEntryImpl(the are ignored during cloning, check CloneableBean for details).




SyndFeedImpl
public SyndFeedImpl()(Code)
Default constructor. All properties are set to null.




SyndFeedImpl
public SyndFeedImpl(WireFeed feed)(Code)
Creates a SyndFeedImpl and populates all its properties out of the given RSS Channel or Atom Feed properties.


Parameters:
  feed - the RSS Channel or the Atom Feed to populate the properties from.





Method Detail
clone
public Object clone() throws CloneNotSupportedException(Code)
Creates a deep 'bean' clone of the object.

a clone of the object.
throws:
  CloneNotSupportedException - thrown if an element of the object cannot be cloned.




copyFrom
public void copyFrom(Object obj)(Code)



createWireFeed
public WireFeed createWireFeed()(Code)
Creates a real feed containing the information of the SyndFeedImpl.

The feed type of the created WireFeed is taken from the SyndFeedImpl feedType property.

the real feed.




createWireFeed
public WireFeed createWireFeed(String feedType)(Code)
Creates a real feed containing the information of the SyndFeedImpl.


Parameters:
  feedType - the feed type for the WireFeed to be created. the real feed.




equals
public boolean equals(Object other)(Code)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method.


Parameters:
  other - he reference object with which to compare. true if 'this' object is equal to the 'other' object.




getAuthor
public String getAuthor()(Code)
Returns the feed author.

This method is a convenience method, it maps to the Dublin Core module creator.

the feed author, null if none.




getAuthors
public List getAuthors()(Code)



getCategories
public List getCategories()(Code)
Returns the feed categories.

This method is a convenience method, it maps to the Dublin Core module subjects.

a list of SyndCategoryImpl elements with the feed categories,an empty list if none.




getContributors
public List getContributors()(Code)



getCopyright
public String getCopyright()(Code)
Returns the feed copyright.

This method is a convenience method, it maps to the Dublin Core module rights.

the feed copyright, null if none.




getDescription
public String getDescription()(Code)
Returns the feed description.

the feed description, null if none.




getDescriptionEx
public SyndContent getDescriptionEx()(Code)
Returns the feed description as a text construct.

the feed description, null if none.




getEncoding
public String getEncoding()(Code)
Returns the charset encoding of a the feed. This is not set by Rome parsers.

the charset encoding of the feed.




getEntries
public List getEntries()(Code)
Returns the feed entries.

a list of SyndEntryImpl elements with the feed entries,an empty list if none.




getFeedType
public String getFeedType()(Code)
Returns the wire feed type the feed had/will-have when coverted from/to a WireFeed.

the feed type, null if none.




getForeignMarkup
public Object getForeignMarkup()(Code)
Returns foreign markup found at channel level.

Opaque object to discourage use




getImage
public SyndImage getImage()(Code)
Returns the feed image.

the feed image, null if none.




getInterface
public Class getInterface()(Code)



getLanguage
public String getLanguage()(Code)
Returns the feed language.

This method is a convenience method, it maps to the Dublin Core module language.

the feed language, null if none.




getLink
public String getLink()(Code)
Returns the feed link.

Note: The URI is the unique identifier, in the RSS 2.0/atom case this is the GUID, for RSS 1.0 this is the URI attribute of the item. The Link is the URL that the item is accessible under, the URI is the permanent identifier which the aggregator should use to reference this item. Often the URI will use some standardized identifier scheme such as DOI's so that items can be identified even if they appear in multiple feeds with different "links" (they might be on different hosting platforms but be the same item). Also, though rare, there could be multiple items with the same link but a different URI and associated metadata which need to be treated as distinct entities. In the RSS 1.0 case the URI must be a valid RDF URI reference.

the feed link, null if none.




getLinks
public List getLinks()(Code)
Returns the links

Returns the links.




getModule
public Module getModule(String uri)(Code)
Returns the module identified by a given URI.


Parameters:
  uri - the URI of the ModuleImpl. The module with the given URI, null if none.




getModules
public List getModules()(Code)
Returns the feed modules.

a list of ModuleImpl elements with the feed modules,an empty list if none.




getPublishedDate
public Date getPublishedDate()(Code)
Returns the feed published date.

This method is a convenience method, it maps to the Dublin Core module date.

the feed published date, null if none.




getSupportedFeedTypes
public List getSupportedFeedTypes()(Code)
Returns the real feed types the SyndFeedImpl supports when converting from and to.

the real feed type supported.




getTitle
public String getTitle()(Code)
Returns the feed title.

the feed title, null if none.




getTitleEx
public SyndContent getTitleEx()(Code)
Returns the feed title as a text construct.

the feed title, null if none.




getUri
public String getUri()(Code)
Returns the feed URI.

How the feed URI maps to a concrete feed type (RSS or Atom) depends on the concrete feed type. This is explained in detail in Rome documentation, Feed and entry URI mapping.

The returned URI is a normalized URI as specified in RFC 2396bis.

Note: The URI is the unique identifier, in the RSS 2.0/atom case this is the GUID, for RSS 1.0 this is the URI attribute of the item. The Link is the URL that the item is accessible under, the URI is the permanent identifier which the aggregator should use to reference this item. Often the URI will use some standardized identifier scheme such as DOI's so that items can be identified even if they appear in multiple feeds with different "links" (they might be on different hosting platforms but be the same item). Also, though rare, there could be multiple items with the same link but a different URI and associated metadata which need to be treated as distinct entities. In the RSS 1.0 case the URI must be a valid RDF URI reference.

the feed URI, null if none.




hashCode
public int hashCode()(Code)
Returns a hashcode value for the object.

It follows the contract defined by the Object hashCode() method.

the hashcode of the bean object.




setAuthor
public void setAuthor(String author)(Code)
Sets the feed author.

This method is a convenience method, it maps to the Dublin Core module creator.


Parameters:
  author - the feed author to set, null if none.




setAuthors
public void setAuthors(List authors)(Code)



setCategories
public void setCategories(List categories)(Code)
Sets the feed categories.

This method is a convenience method, it maps to the Dublin Core module subjects.


Parameters:
  categories - the list of SyndCategoryImpl elements with the feed categories to set,an empty list or null if none.




setContributors
public void setContributors(List contributors)(Code)



setCopyright
public void setCopyright(String copyright)(Code)
Sets the feed copyright.

This method is a convenience method, it maps to the Dublin Core module rights.


Parameters:
  copyright - the feed copyright to set, null if none.




setDescription
public void setDescription(String description)(Code)
Sets the feed description.


Parameters:
  description - the feed description to set, null if none.




setDescriptionEx
public void setDescriptionEx(SyndContent description)(Code)
Sets the feed description as a text construct.


Parameters:
  description - the feed description to set, null if none.




setEncoding
public void setEncoding(String encoding)(Code)
Sets the charset encoding of a the feed. This is not set by Rome parsers.


Parameters:
  encoding - the charset encoding of the feed.




setEntries
public void setEntries(List entries)(Code)
Sets the feed entries.


Parameters:
  entries - the list of SyndEntryImpl elements with the feed entries to set,an empty list or null if none.




setFeedType
public void setFeedType(String feedType)(Code)
Sets the wire feed type the feed will-have when coverted to a WireFeed.


Parameters:
  feedType - the feed type to set, null if none.




setForeignMarkup
public void setForeignMarkup(Object foreignMarkup)(Code)
Sets foreign markup found at channel level.


Parameters:
  foreignMarkup - Opaque object to discourage use




setImage
public void setImage(SyndImage image)(Code)
Sets the feed image.


Parameters:
  image - the feed image to set, null if none.




setLanguage
public void setLanguage(String language)(Code)
Sets the feed language.

This method is a convenience method, it maps to the Dublin Core module language.


Parameters:
  language - the feed language to set, null if none.




setLink
public void setLink(String link)(Code)
Sets the feed link.

Note: The URI is the unique identifier, in the RSS 2.0/atom case this is the GUID, for RSS 1.0 this is the URI attribute of the item. The Link is the URL that the item is accessible under, the URI is the permanent identifier which the aggregator should use to reference this item. Often the URI will use some standardized identifier scheme such as DOI's so that items can be identified even if they appear in multiple feeds with different "links" (they might be on different hosting platforms but be the same item). Also, though rare, there could be multiple items with the same link but a different URI and associated metadata which need to be treated as distinct entities. In the RSS 1.0 case the URI must be a valid RDF URI reference.


Parameters:
  link - the feed link to set, null if none.




setLinks
public void setLinks(List links)(Code)
Set the links


Parameters:
  links - The links to set.




setModules
public void setModules(List modules)(Code)
Sets the feed modules.


Parameters:
  modules - the list of ModuleImpl elements with the feed modules to set,an empty list or null if none.




setPublishedDate
public void setPublishedDate(Date publishedDate)(Code)
Sets the feed published date.

This method is a convenience method, it maps to the Dublin Core module date.


Parameters:
  publishedDate - the feed published date to set, null if none.




setTitle
public void setTitle(String title)(Code)
Sets the feed title.


Parameters:
  title - the feed title to set, null if none.




setTitleEx
public void setTitleEx(SyndContent title)(Code)
Sets the feed title as a text construct.


Parameters:
  title - the feed title to set, null if none.




setUri
public void setUri(String uri)(Code)
Sets the feed URI.

How the feed URI maps to a concrete feed type (RSS or Atom) depends on the concrete feed type. This is explained in detail in Rome documentation, Feed and entry URI mapping.

Note: The URI is the unique identifier, in the RSS 2.0/atom case this is the GUID, for RSS 1.0 this is the URI attribute of the item. The Link is the URL that the item is accessible under, the URI is the permanent identifier which the aggregator should use to reference this item. Often the URI will use some standardized identifier scheme such as DOI's so that items can be identified even if they appear in multiple feeds with different "links" (they might be on different hosting platforms but be the same item). Also, though rare, there could be multiple items with the same link but a different URI and associated metadata which need to be treated as distinct entities. In the RSS 1.0 case the URI must be a valid RDF URI reference.


Parameters:
  uri - the feed URI to set, null if none.




toString
public String toString()(Code)
Returns the String representation for the object.

String representation for the object.




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.