org.tm4j.topicmap.utils.testers
Class ClassInstanceAssocTester

java.lang.Object
  extended byorg.tm4j.topicmap.utils.testers.ClassInstanceAssocTester
All Implemented Interfaces:
uk.co.jezuk.mango.Predicate

public class ClassInstanceAssocTester
extends java.lang.Object
implements uk.co.jezuk.mango.Predicate

A tester which tests Association objects to see if they are XTM class-instance associations which are created by TM4J when a new type is added to a Topic.


Constructor Summary
ClassInstanceAssocTester()
           
 
Method Summary
 boolean test(java.lang.Object x)
          Tests if an Association is (probably) an Association generated automatically to represent a class-instance association between a topic and one of its types.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ClassInstanceAssocTester

public ClassInstanceAssocTester()
Method Detail

test

public boolean test(java.lang.Object x)
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:

If all the above criteria are true, then this test will return true. Otherwise the test will return false

Specified by:
test in interface uk.co.jezuk.mango.Predicate