org.tm4j.topicmap.utils.testers.ClassInstanceAssocTester .test(java.lang.Object x)
Description
Tests if an Association is (probably) an Association generated automatically to represent
a class-instance association between a topic and one of its types.
This test will return true if if x
is an Association which meets the following criteria:
- The Association is typed by a topic with a subject indicator http://www.topicmaps.org/xtm/1.0/index.html#psi-at-class-instance
- The Association has one role typed by a topic with a subject indicator http://www.topicmaps.org/xtm/1.0/index.html#psi-role-class which is played by one topic only
- The Association has one role typed by a topic with a subject indicator http://www.topicmaps.org/xtm/1.0/index.html#psi-role-instance which is played by one topic only
- The Association is in the unconstrained scope
If all the above criteria are true, then this test will return true. Otherwise the test will return false
Parameters | ||
---|---|---|
java.lang.Object | x |
Meta Data (1)
Other Resources
Related Topics
Has Parameters
x
[
Parameter #1
]