com.sun.syndication.feed.rss

Class Source

public class Source extends Object implements Cloneable, Serializable

Bean for item sources of RSS feeds.

Author: Alejandro Abdelnur

Field Summary
ObjectBean_objBean
String_url
String_value
Constructor Summary
Source()
Default constructor.
Method Summary
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.

Field Detail

_objBean

private ObjectBean _objBean

_url

private String _url

_value

private String _value

Constructor Detail

Source

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

Method Detail

clone

public Object clone()
Creates a deep 'bean' clone of the object.

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.

Parameters: other he reference object with which to compare.

Returns: true if 'this' object is equal to the 'other' object.

getUrl

public String getUrl()
Returns the source URL.

Returns: the source URL, null if none.

getValue

public String getValue()
Returns the source value.

Returns: the source value, null if none.

hashCode

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

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

Returns: the hashcode of the bean object.

setUrl

public void setUrl(String url)
Sets the source URL.

Parameters: url the source URL to set, null if none.

setValue

public void setValue(String value)
Sets the source value.

Parameters: value the source value to set, null if none.

toString

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

Returns: String representation for the object.

Copyright © Sun Microsystems. All Rights Reserved.