Package net.ontopia.topicmaps.utils
Class TopicMapSynchronizer
- java.lang.Object
-
- net.ontopia.topicmaps.utils.TopicMapSynchronizer
-
public class TopicMapSynchronizer extends Object
PUBLIC: Implementation of the TMSync algorithm.- Since:
- 3.1.1
-
-
Constructor Summary
Constructors Constructor Description TopicMapSynchronizer()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
update(TopicMapIF target, String ttopicq, Predicate<TMObjectIF> tchard, TopicMapIF source, String stopicq, Predicate<TMObjectIF> schard)
PUBLIC: Updates the target topic map from the source topic map, synchronizing the selected topics in the target (ttopicq) with the selected topics in the source (stopicq) using the deciders to filter topic characteristics to synchronize.static void
update(TopicMapIF target, TopicIF source)
PUBLIC: Updates the target topic map against the source topic, including all characteristics from the source topic.static void
update(TopicMapIF target, TopicIF source, Predicate<TMObjectIF> tfilter)
PUBLIC: Updates the target topic map against the source topic, synchronizing only the characteristics from the target that are accepted by the filter.static void
update(TopicMapIF target, TopicIF source, Predicate<TMObjectIF> tfilter, Predicate<TMObjectIF> sfilter)
PUBLIC: Updates the target topic map against the source topic, synchronizing only the characteristics from the target and source that are accepted by the filters.
-
-
-
Method Detail
-
update
public static void update(TopicMapIF target, TopicIF source)
PUBLIC: Updates the target topic map against the source topic, including all characteristics from the source topic.
-
update
public static void update(TopicMapIF target, TopicIF source, Predicate<TMObjectIF> tfilter)
PUBLIC: Updates the target topic map against the source topic, synchronizing only the characteristics from the target that are accepted by the filter.
-
update
public static void update(TopicMapIF target, TopicIF source, Predicate<TMObjectIF> tfilter, Predicate<TMObjectIF> sfilter)
PUBLIC: Updates the target topic map against the source topic, synchronizing only the characteristics from the target and source that are accepted by the filters.- Parameters:
target
- the topic map to updatesource
- the topic to get updates fromtfilter
- filter for the target characteristics to updatesfilter
- filter for the source characteristics to include- Since:
- 3.2.0
-
update
public static void update(TopicMapIF target, String ttopicq, Predicate<TMObjectIF> tchard, TopicMapIF source, String stopicq, Predicate<TMObjectIF> schard) throws InvalidQueryException
PUBLIC: Updates the target topic map from the source topic map, synchronizing the selected topics in the target (ttopicq) with the selected topics in the source (stopicq) using the deciders to filter topic characteristics to synchronize.- Parameters:
target
- the topic map to updatettopicq
- tolog query selecting the target topics to updatetchard
- filter for the target characteristics to updatesource
- the source topic mapstopicq
- tolog query selecting the source topics to useschard
- filter for the source characteristics to update- Throws:
InvalidQueryException
-
-