|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException org.tmapi.core.TMAPIRuntimeException org.tmapi.core.MergeException org.tmapi.core.SubjectLocatorClashException
Thrown when two topics cannot be merged because the XTM 1.0 model does not allow a Topic to have more than one value for the subjectLocators property.
This exception can only ever be thrown by a processor with the
XTM 1.0 model feature enabled. If the automerge feature is disabled,
then this exception can only ever be thrown by the methods
Topic.mergeIn(Topic)
and TopicMap.mergeIn(TopicMap)
.
The exception indicates that the processor attempted to perform the merger of two Topics as required for consistency with the Topic Maps Data Model, but found that the merge could not be completed due to the XTM 1.0 constraint that a Topic can only have a single subjectLocator property value.
The attempted merge reported by this exception MUST NOT be completed by the processor.
Constructor Summary | |
SubjectLocatorClashException(java.util.Set clashTopics,
java.lang.String msg)
Constructs a new exception instance that reports a subject locator clash when merging the topics contained in the set clashTopics . |
|
SubjectLocatorClashException(Topic firstMergedTopic,
Topic secondMergedTopic,
java.lang.String msg)
Constructs a new exception instance that reports a subject locator clash when merging the topics firstMergedTopic and
secondMergedTopic . |
Method Summary | |
java.util.Set |
getTopics()
Returns the topics involved in the clash of subjectLocator property values. |
Methods inherited from class org.tmapi.core.TMAPIRuntimeException |
getCause |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public SubjectLocatorClashException(java.util.Set clashTopics, java.lang.String msg)
clashTopics
.
clashTopics
- the topics which clashedmsg
- a message string describing the exceptionpublic SubjectLocatorClashException(Topic firstMergedTopic, Topic secondMergedTopic, java.lang.String msg)
firstMergedTopic
and
secondMergedTopic
.
firstMergedTopic
- one of the topics involved in the clashsecondMergedTopic
- another of the topics involved in the clashmsg
- a message string describing the exceptionMethod Detail |
public java.util.Set getTopics()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |