Top Methods
com.rometools.rome.feed

public Interface CopyFrom

Known Direct Subinterfaces
com.rometools.rome.feed.module.DCSubject, com.rometools.rome.feed.module.Module, com.rometools.rome.feed.synd.SyndCategory, com.rometools.rome.feed.synd.SyndContent, com.rometools.rome.feed.synd.SyndEnclosure, com.rometools.rome.feed.synd.SyndEntry, com.rometools.rome.feed.synd.SyndFeed, com.rometools.rome.feed.synd.SyndImage

Method Summary

Modifier and TypeMethod and Description
public void
copyFrom(CopyFrom
the instance to copy properties from.
obj
)

Copies all the properties of the given bean into this one.

public Class<? extends CopyFrom>

Returns:

the interface the copyFrom works on.
getInterface
()

Returns the interface the copyFrom works on.

Method Detail

copyFromback to summary
public void copyFrom(CopyFrom obj)

Copies all the properties of the given bean into this one.

Any existing properties in this bean are lost.

This method is useful for moving from one implementation of a bean interface to another. For example from the default SyndFeed bean implementation to a Hibernate ready implementation.

Parameters
obj:CopyFrom

the instance to copy properties from.

getInterfaceback to summary
public Class<? extends CopyFrom> getInterface()

Returns the interface the copyFrom works on.

This is useful when dealing with properties that may have multiple implementations. For example, Module.

Returns:Class<? extends CopyFrom>

the interface the copyFrom works on.