1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package com.sun.syndication.feed;
18
19 /***
20 * @author Alejandro Abdelnur
21 */
22 public interface CopyFrom {
23
24 /***
25 * Returns the interface the copyFrom works on.
26 * <p>
27 * This is useful when dealing with properties that may have multiple implementations.
28 * For example, Module.
29 * <p>
30 * @return the interface the copyFrom works on.
31 */
32 public Class getInterface();
33
34 /***
35 * Copies all the properties of the given bean into this one.
36 * <p>
37 * Any existing properties in this bean are lost.
38 * <p>
39 * This method is useful for moving from one implementation of a bean interface to another.
40 * For example from the default SyndFeed bean implementation to a Hibernate ready implementation.
41 * <p>
42 * @param obj the instance to copy properties from.
43 *
44 */
45 public void copyFrom(Object obj);
46
47 }