public class TopicMapSynchronizer extends Object
Constructor and Description |
---|
TopicMapSynchronizer() |
Modifier and Type | Method and 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.
|
public static void update(TopicMapIF target, TopicIF source)
public static void update(TopicMapIF target, TopicIF source, Predicate<TMObjectIF> tfilter)
public static void update(TopicMapIF target, TopicIF source, Predicate<TMObjectIF> tfilter, Predicate<TMObjectIF> sfilter)
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 includepublic static void update(TopicMapIF target, String ttopicq, Predicate<TMObjectIF> tchard, TopicMapIF source, String stopicq, Predicate<TMObjectIF> schard) throws InvalidQueryException
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 updateInvalidQueryException