public abstract class WireFeed extends Object implements Cloneable, Serializable, Extendable
NOTE: We don't like this class at this package level but the alternative would have been a proliferation of packages (one more level to hold atom and rss package with this class just in that package).
The format of the 'type' property must be [FEEDNAME]_[FEEDVERSION] with the FEEDNAME in lower case, for example: rss_0.9, rss_0.93, atom_0.3
Modifier | Constructor and Description |
---|---|
protected |
WireFeed()
Default constructor, for bean cloning purposes only.
|
protected |
WireFeed(String type)
Creates a feed for a given type.
|
Modifier and Type | Method and Description |
---|---|
Object |
clone()
Creates a deep 'bean' clone of the object.
|
boolean |
equals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals()
method.
|
String |
getEncoding()
Returns the charset encoding of a the feed.
|
String |
getFeedType()
Returns the type of the feed.
|
List<org.jdom2.Element> |
getForeignMarkup()
Returns foreign markup found at channel level.
|
Module |
getModule(String uri)
Returns the module identified by a given URI.
|
List<Module> |
getModules()
Returns the channel modules.
|
String |
getStyleSheet()
URL of XSL-Stylesheet.
|
int |
hashCode()
Returns a hashcode value for the object.
|
void |
setEncoding(String encoding)
Sets the charset encoding of a the feed.
|
void |
setFeedType(String feedType)
Sets the feedType of a the feed.
|
void |
setForeignMarkup(List<org.jdom2.Element> foreignMarkup)
Sets foreign markup found at channel level.
|
void |
setModules(List<Module> modules)
Sets the channel modules.
|
void |
setStyleSheet(String styleSheet)
URL of XSL-Stylesheet.
|
String |
toString()
Returns the String representation for the object.
|
protected WireFeed()
protected WireFeed(String type)
type
- of the feed to create.public Object clone() throws CloneNotSupportedException
clone
in class Object
CloneNotSupportedException
- thrown if an element of the object cannot be cloned.public boolean equals(Object other)
public int hashCode()
It follows the contract defined by the Object hashCode() method.
public String toString()
public void setFeedType(String feedType)
feedType
- the feedType of the feed.public String getFeedType()
public String getEncoding()
This property is not set by feed parsers. But it is used by feed generators to set the encoding in the XML prolog.
public void setEncoding(String encoding)
This property is not set by feed parsers. But it is used by feed generators to set the encoding in the XML prolog.
encoding
- the charset encoding of the feed.public List<Module> getModules()
getModules
in interface Extendable
public void setModules(List<Module> modules)
setModules
in interface Extendable
modules
- the list of ModuleImpl elements with the channel modules to set, an empty list
or null if none.public Module getModule(String uri)
getModule
in interface Extendable
uri
- the URI of the ModuleImpl.public List<org.jdom2.Element> getForeignMarkup()
public void setForeignMarkup(List<org.jdom2.Element> foreignMarkup)
foreignMarkup
- Opaque object to discourage usepublic String getStyleSheet()
null
public void setStyleSheet(String styleSheet)
styleSheet
- URL or null
Copyright © 2023. All rights reserved.