com.sun.syndication.feed.impl
クラス ToStringBean

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

public class ToStringBean
extends java.lang.Object
implements java.io.Serializable

Provides deep Bean toString support.

It works on all read/write properties, recursively. It support all primitive types, Strings, Collections, ToString objects and multi-dimensional arrays of any of them.

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

コンストラクタの概要
protected ToStringBean(java.lang.Class beanClass)
          Default constructor.
  ToStringBean(java.lang.Class beanClass, java.lang.Object obj)
          Creates a ToStringBean to be used in a delegation pattern.
 
メソッドの概要
 java.lang.String toString()
          Returns the String representation of the bean given in the constructor.
 
クラス java.lang.Object から継承されたメソッド
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

コンストラクタの詳細

ToStringBean

protected ToStringBean(java.lang.Class beanClass)
Default constructor.

To be used by classes extending ToStringBean only.

パラメータ:
beanClass - indicates the class to scan for properties, normally an interface class.

ToStringBean

public ToStringBean(java.lang.Class beanClass,
                    java.lang.Object obj)
Creates a ToStringBean to be used in a delegation pattern.

For example:

public class Foo implements ToString { public String toString(String prefix) { ToStringBean tsb = new ToStringBean(this); return tsb.toString(prefix); } public String toString() { return toString("Foo"); } }

パラメータ:
beanClass - indicates the class to scan for properties, normally an interface class.
obj - object bean to create String representation.
メソッドの詳細

toString

public java.lang.String toString()
Returns the String representation of the bean given in the constructor.

It uses the Class name as the prefix.

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