|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||
java.lang.Objectcom.sun.syndication.feed.impl.ToStringBean
public class ToStringBean
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 |
| コンストラクタの詳細 |
|---|
protected ToStringBean(java.lang.Class beanClass)
To be used by classes extending ToStringBean only.
beanClass - indicates the class to scan for properties, normally an interface class.
public ToStringBean(java.lang.Class beanClass,
java.lang.Object obj)
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.| メソッドの詳細 |
|---|
public java.lang.String toString()
It uses the Class name as the prefix.
java.lang.Object 内の toString
|
|||||||||
| 前のクラス 次のクラス | フレームあり フレームなし | ||||||||
| 概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド | ||||||||