public class IlrStandardVocabularyMergeConflictHandler extends java.lang.Object implements IlrVocabularyMergeConflictHandler
IlrVocabularyMergeConflictHandler. It
merges properties of each vocabulary element when they conflict.
A flag overwrite is used to indicate where conflicting concepts and sentences should be overwritten.| Constructor and Description |
|---|
IlrStandardVocabularyMergeConflictHandler() |
| Modifier and Type | Method and Description |
|---|---|
void |
handleConceptConflict(IlrConcept conceptSource,
IlrConcept conceptTarget)
Implements
IlrVocabularyMergeConflictHandler.handleConceptConflict(IlrConcept, IlrConcept), which
merges properties and categories. |
void |
handleConceptInstanceConflict(IlrConceptInstance instanceSource,
IlrConceptInstance instanceTarget)
Implements
IlrVocabularyMergeConflictHandler.handleConceptInstanceConflict(IlrConceptInstance, IlrConceptInstance),
which merges properties and categories. |
void |
handleFactTypeConflict(IlrFactType factTypeSource,
IlrFactType factTypeTarget)
Implements
IlrVocabularyMergeConflictHandler.handleFactTypeConflict(IlrFactType, IlrFactType), which
merges properties and categories. |
void |
handleSentenceConflict(IlrSentence sentenceSource,
IlrSentence sentenceTarget)
Implements
IlrVocabularyMergeConflictHandler.handleSentenceConflict(IlrSentence, IlrSentence) which,
if the overwite flag is true, copies the the text template of the source sentence into,
the target sentence and merges the properties. |
boolean |
isOverwrite()
Tests the overwrite flag.
|
void |
setOverwrite(boolean overwrite)
Sets the overwrite flag.
|
public IlrStandardVocabularyMergeConflictHandler()
public boolean isOverwrite()
public void setOverwrite(boolean overwrite)
overwrite - The overwrite flag.public void handleConceptConflict(IlrConcept conceptSource, IlrConcept conceptTarget)
IlrVocabularyMergeConflictHandler.handleConceptConflict(IlrConcept, IlrConcept), which
merges properties and categories. If the overwrite flag value is true, the label of
the target concept is overwritten, together with its associated term.handleConceptConflict in interface IlrVocabularyMergeConflictHandlerconceptSource - The concept from the source vocabulary.conceptTarget - The concept from the target vocabulary.public void handleConceptInstanceConflict(IlrConceptInstance instanceSource, IlrConceptInstance instanceTarget)
IlrVocabularyMergeConflictHandler.handleConceptInstanceConflict(IlrConceptInstance, IlrConceptInstance),
which merges properties and categories.handleConceptInstanceConflict in interface IlrVocabularyMergeConflictHandlerinstanceSource - The concept instance from the source vocabulary.instanceTarget - The concept instance from the target vocabulary.public void handleFactTypeConflict(IlrFactType factTypeSource, IlrFactType factTypeTarget)
IlrVocabularyMergeConflictHandler.handleFactTypeConflict(IlrFactType, IlrFactType), which
merges properties and categories.handleFactTypeConflict in interface IlrVocabularyMergeConflictHandlerfactTypeSource - The fact type from the source vocabulary.factTypeTarget - The fact type from the target vocabulary.public void handleSentenceConflict(IlrSentence sentenceSource, IlrSentence sentenceTarget)
IlrVocabularyMergeConflictHandler.handleSentenceConflict(IlrSentence, IlrSentence) which,
if the overwite flag is true, copies the the text template of the source sentence into,
the target sentence and merges the properties. If the overwite flag is not true, it does nothing.handleSentenceConflict in interface IlrVocabularyMergeConflictHandlersentenceSource - The sentence from the source vocabulary.sentenceTarget - The sentence from the target vocabulary.© Copyright IBM Corp. 1987, 2017