org.tm4j.topicmap.utils.XTMUtils .swapTopic(org.tm4j.topicmap.Topic from,org.tm4j.topicmap.Topic to)
Description
Exchanges all uses of the topic from to use
the topic to. This includes usages as type,
as a theme in a scope, and as a roleSpec.
from and to must both belong to
the same TopicMap object.
NOTE: The current implementation of this method
uses the brute-force approach of enumerating all
of the objects in the topic map, and so may be very slow
for large topic maps.
| Parameters | ||
|---|---|---|
| org.tm4j.topicmap.Topic | from | The topic to be swapped in all of its uses |
| org.tm4j.topicmap.Topic | to |
The topic to replace from.
|
Throws
- java.beans.PropertyVetoException - If a swap of the topics is vetoed by a listener to the topic map.
- org.tm4j.topicmap.TopicMapProcessingException - If a processing error occurs while modifying the topic map.
Meta Data (1)
