From: Xuan B. <med...@us...> - 2008-01-22 20:04:52
|
Update of /cvsroot/tm4j/tm4j/src/org/tm4j/topicmap/tmdm/merged In directory sc8-pr-cvs10.sourceforge.net:/tmp/cvs-serv24673/src/org/tm4j/topicmap/tmdm/merged Modified Files: MergedTopicMapView.java Log Message: Implement TopicMapImpl.getTopicCount() legacy method. Index: MergedTopicMapView.java =================================================================== RCS file: /cvsroot/tm4j/tm4j/src/org/tm4j/topicmap/tmdm/merged/MergedTopicMapView.java,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** MergedTopicMapView.java 21 Jan 2008 20:00:27 -0000 1.4 --- MergedTopicMapView.java 22 Jan 2008 20:04:55 -0000 1.5 *************** *** 122,125 **** --- 122,130 ---- } + // Maybe "int" is to small, as we may have topicmaps exceeding 2^31-1 topics, do we? + public int getTopicCount() { + return subjectLocatorToMergedTopic.size(); + } + protected TopicMapEventListener<ReadableTopicMap,ReadableTopic,ReadableAssociation,ReadableOccurrence,ReadableTopicMapConstruct,ReadableTopicName,ReadableVariant,ReadableAssociationRole> getEventListener() { return eventListener; |