com.sun.syndication.feed.rss

Class Enclosure

public class Enclosure extends Object implements Cloneable, Serializable

Bean for item enclosures of RSS feeds.

Author: Alejandro Abdelnur

Field Summary
long_length
ObjectBean_objBean
String_type
String_url
Constructor Summary
Enclosure()
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.
longgetLength()
Returns the enclosure length.
StringgetType()
Returns the enclosure type.
StringgetUrl()
Returns the enclosure URL.
inthashCode()
Returns a hashcode value for the object.
voidsetLength(long length)
Sets the enclosure length.
voidsetType(String type)
Sets the enclosure type.
voidsetUrl(String url)
Sets the enclosure URL.
StringtoString()
Returns the String representation for the object.

Field Detail

_length

private long _length

_objBean

private ObjectBean _objBean

_type

private String _type

_url

private String _url

Constructor Detail

Enclosure

public Enclosure()
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.

getLength

public long getLength()
Returns the enclosure length.

Returns: the enclosure length, null if none.

getType

public String getType()
Returns the enclosure type.

Returns: the enclosure type, null if none.

getUrl

public String getUrl()
Returns the enclosure URL.

Returns: the enclosure URL, 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.

setLength

public void setLength(long length)
Sets the enclosure length.

Parameters: length the enclosure length to set, null if none.

setType

public void setType(String type)
Sets the enclosure type.

Parameters: type the enclosure type to set, null if none.

setUrl

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

Parameters: url the enclosure URL 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.