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

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

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

Provides deep Bean clonning support.

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

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

コンストラクタの概要
protected CloneableBean()
          Default constructor.
  CloneableBean(java.lang.Object obj)
          Creates a CloneableBean to be used in a delegation pattern.
  CloneableBean(java.lang.Object obj, java.util.Set ignoreProperties)
          Creates a CloneableBean to be used in a delegation pattern.
 
メソッドの概要
 java.lang.Object beanClone()
          Makes a deep bean clone of the object passed in the constructor.
 java.lang.Object clone()
          Makes a deep bean clone of the object.
 
クラス java.lang.Object から継承されたメソッド
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

コンストラクタの詳細

CloneableBean

protected CloneableBean()
Default constructor.

To be used by classes extending CloneableBean only.


CloneableBean

public CloneableBean(java.lang.Object obj)
Creates a CloneableBean to be used in a delegation pattern.

For example:

public class Foo implements Cloneable { private CloneableBean _cloneableBean; public Foo() { _cloneableBean = new CloneableBean(this); } public Object clone() throws CloneNotSupportedException { return _cloneableBean.beanClone(); } }

パラメータ:
obj - object bean to clone.

CloneableBean

public CloneableBean(java.lang.Object obj,
                     java.util.Set ignoreProperties)
Creates a CloneableBean to be used in a delegation pattern.

The property names in the ignoreProperties Set will not be copied into the cloned instance. This is useful for cases where the Bean has convenience properties (properties that are actually references to other properties or properties of properties). For example SyndFeed and SyndEntry beans have convenience properties, publishedDate, author, copyright and categories all of them mapped to properties in the DC Module.

パラメータ:
obj - object bean to clone.
ignoreProperties - properties to ignore when cloning.
メソッドの詳細

clone

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

To be used by classes extending CloneableBean. Although it works also for classes using CloneableBean in a delegation pattern, for correctness those classes should use the

オーバーライド:
クラス java.lang.Object 内の clone
戻り値:
a clone of the object bean.
例外:
java.lang.CloneNotSupportedException - thrown if the object bean could not be cloned.
関連項目:
beanClone method.


beanClone

public java.lang.Object beanClone()
                           throws java.lang.CloneNotSupportedException
Makes a deep bean clone of the object passed in the constructor.

To be used by classes using CloneableBean in a delegation pattern,

戻り値:
a clone of the object bean.
例外:
java.lang.CloneNotSupportedException - thrown if the object bean could not be cloned.
関連項目:
constructor.