com.sun.syndication.feed.rss
クラス Enclosure

java.lang.Object
  上位を拡張 com.sun.syndication.feed.rss.Enclosure
すべての実装されたインタフェース:
java.io.Serializable, java.lang.Cloneable

public class Enclosure
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

Bean for item enclosures of RSS feeds.

関連項目:
直列化された形式

コンストラクタの概要
Enclosure()
          Default constructor.
 
メソッドの概要
 java.lang.Object clone()
          Creates a deep 'bean' clone of the object.
 boolean equals(java.lang.Object other)
          Indicates whether some other object is "equal to" this one as defined by the Object equals() method.
 long getLength()
          Returns the enclosure length.
 java.lang.String getType()
          Returns the enclosure type.
 java.lang.String getUrl()
          Returns the enclosure URL.
 int hashCode()
          Returns a hashcode value for the object.
 void setLength(long length)
          Sets the enclosure length.
 void setType(java.lang.String type)
          Sets the enclosure type.
 void setUrl(java.lang.String url)
          Sets the enclosure URL.
 java.lang.String toString()
          Returns the String representation for the object.
 
クラス java.lang.Object から継承されたメソッド
finalize, getClass, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

Enclosure

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

メソッドの詳細

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Creates a deep 'bean' clone of the object.

オーバーライド:
クラス java.lang.Object 内の clone
戻り値:
a clone of the object.
例外:
java.lang.CloneNotSupportedException - thrown if an element of the object cannot be cloned.

equals

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

オーバーライド:
クラス java.lang.Object 内の equals
パラメータ:
other - he reference object with which to compare.
戻り値:
true if 'this' object is equal to the 'other' object.

hashCode

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

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

オーバーライド:
クラス java.lang.Object 内の hashCode
戻り値:
the hashcode of the bean object.

toString

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

オーバーライド:
クラス java.lang.Object 内の toString
戻り値:
String representation for the object.

getUrl

public java.lang.String getUrl()
Returns the enclosure URL.

戻り値:
the enclosure URL, null if none.

setUrl

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

パラメータ:
url - the enclosure URL to set, null if none.

getLength

public long getLength()
Returns the enclosure length.

戻り値:
the enclosure length, null if none.

setLength

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

パラメータ:
length - the enclosure length to set, null if none.

getType

public java.lang.String getType()
Returns the enclosure type.

戻り値:
the enclosure type, null if none.

setType

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

パラメータ:
type - the enclosure type to set, null if none.