Package com.rometools.rome.feed.impl
Class CloneableBean
- java.lang.Object
-
- com.rometools.rome.feed.impl.CloneableBean
-
public class CloneableBean extends Object
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.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ObjectbeanClone(Object obj, Set<String> ignoreProperties)Makes a deep bean clone of the object passed in the constructor.
-
-
-
Method Detail
-
beanClone
public static Object beanClone(Object obj, Set<String> ignoreProperties) throws CloneNotSupportedException
Makes a deep bean clone of the object passed in the constructor.To be used by classes using CloneableBean in a delegation pattern,
- Returns:
- a clone of the object bean.
- Throws:
CloneNotSupportedException- thrown if the object bean could not be cloned.
-
-