com.sun.syndication.feed.atom
クラス Content

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

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

Bean for content elements of Atom feeds.

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

フィールドの概要
static java.lang.String BASE64
          Atom 0.3 only
static java.lang.String ESCAPED
          Atom 0.3 only
static java.lang.String HTML
           
static java.lang.String TEXT
           
static java.lang.String XHTML
           
static java.lang.String XML
          Atom 0.3 only
 
コンストラクタの概要
Content()
          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.
 java.lang.String getMode()
          Returns the content mode (Atom 0.3 only).
 java.lang.String getSrc()
          Returns the src
 java.lang.String getType()
          Returns the content type.
 java.lang.String getValue()
          Returns the content value.
 int hashCode()
          Returns a hashcode value for the object.
 void setMode(java.lang.String mode)
          Sets the content mode (Atom 0.3 only).
 void setSrc(java.lang.String src)
          Set the src
 void setType(java.lang.String type)
          Sets the content type.
 void setValue(java.lang.String value)
          Sets the content value.
 java.lang.String toString()
          Returns the String representation for the object.
 
クラス java.lang.Object から継承されたメソッド
finalize, getClass, notify, notifyAll, wait, wait, wait
 

フィールドの詳細

TEXT

public static final java.lang.String TEXT
導入されたバージョン:
Atom 1.0
関連項目:
定数フィールド値

HTML

public static final java.lang.String HTML
導入されたバージョン:
Atom 1.0
関連項目:
定数フィールド値

XHTML

public static final java.lang.String XHTML
導入されたバージョン:
Atom 1.0
関連項目:
定数フィールド値

XML

public static final java.lang.String XML
Atom 0.3 only

関連項目:
定数フィールド値

BASE64

public static final java.lang.String BASE64
Atom 0.3 only

関連項目:
定数フィールド値

ESCAPED

public static final java.lang.String ESCAPED
Atom 0.3 only

関連項目:
定数フィールド値
コンストラクタの詳細

Content

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

getType

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

The type indicates how the value was/will-be encoded in the XML feed.

導入されたバージョン:
Atom 1.0

setType

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

The type indicates how the value was/will-be encoded in the XML feed.

導入されたバージョン:
Atom 1.0

getMode

public java.lang.String getMode()
Returns the content mode (Atom 0.3 only).

The mode indicates how the value was/will-be encoded in the XML feed.

戻り値:
the content mode, null if none.

setMode

public void setMode(java.lang.String mode)
Sets the content mode (Atom 0.3 only).

The mode indicates how the value was/will-be encoded in the XML feed.

パラメータ:
mode - the content mode, null if none.

getValue

public java.lang.String getValue()
Returns the content value.

The return value should be decoded.

戻り値:
the content value, null if none.

setValue

public void setValue(java.lang.String value)
Sets the content value.

The value being set should be decoded.

パラメータ:
value - the content value, null if none.

getSrc

public java.lang.String getSrc()
Returns the src

戻り値:
Returns the src.
導入されたバージョン:
Atom 1.0

setSrc

public void setSrc(java.lang.String src)
Set the src

パラメータ:
src - The src to set.
導入されたバージョン:
Atom 1.0