Package com.rometools.rome.feed.rss
Class Source
- java.lang.Object
-
- com.rometools.rome.feed.rss.Source
-
- All Implemented Interfaces:
Serializable,Cloneable
public class Source extends Object implements Cloneable, Serializable
Bean for item sources of RSS feeds.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description Source()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()Creates a deep 'bean' clone of the object.booleanequals(Object other)Indicates whether some other object is "equal to" this one as defined by the Object equals() method.StringgetUrl()Returns the source URL.StringgetValue()Returns the source value.inthashCode()Returns a hashcode value for the object.voidsetUrl(String url)Sets the source URL.voidsetValue(String value)Sets the source value.StringtoString()Returns the String representation for the object.
-
-
-
Method Detail
-
clone
public Object clone() throws CloneNotSupportedException
Creates a deep 'bean' clone of the object.- Overrides:
clonein classObject- Returns:
- a clone of the object.
- Throws:
CloneNotSupportedException- thrown if an element of the object cannot be cloned.
-
equals
public boolean equals(Object other)
Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
-
hashCode
public int hashCode()
Returns a hashcode value for the object.It follows the contract defined by the Object hashCode() method.
-
toString
public String toString()
Returns the String representation for the object.
-
getUrl
public String getUrl()
Returns the source URL.- Returns:
- the source URL, null if none.
-
setUrl
public void setUrl(String url)
Sets the source URL.- Parameters:
url- the source URL to set, null if none.
-
getValue
public String getValue()
Returns the source value.- Returns:
- the source value, null if none.
-
setValue
public void setValue(String value)
Sets the source value.- Parameters:
value- the source value to set, null if none.
-
-