net.ontopia.topicmaps.cmdlineutils.statistics
Class TopicCounter

java.lang.Object
  extended by net.ontopia.topicmaps.cmdlineutils.statistics.TopicCounter

public class TopicCounter
extends java.lang.Object

Topic Map count methods


Constructor Summary
TopicCounter(TopicMapIF topicmap)
           
 
Method Summary
 void count()
           
 java.util.HashMap getAssocDetails()
           
 TopicIF getAssocDetails(java.lang.String key)
           
 java.util.HashMap getAssociationTypes()
          Returns a HashMap which contains the associationtype as the keyset and the number of times it occurs as the valueset.
 java.lang.String getName(TopicIF topic)
           
 int getNumberOfAssociations()
          Returns the number of Associations in a topic map.
 int getNumberOfOccurrences()
          Returns the number of Occurrences in a topic map.
 int getNumberOfTopics()
          Returns the number of topics in a topic map.
 java.util.HashMap getOccurDetails()
           
 TopicIF getOccurDetails(java.lang.String key)
           
 java.util.HashMap getOccurrenceTypes()
          Returns a HashMap which contains the occurrencetype as the keyset and the number of times it occurs as the valueset.
 java.util.HashMap getTopicDetails()
           
 TopicIF getTopicDetails(java.lang.String key)
           
 java.util.HashMap getTopicTypes()
          Returns a HashMap which contains the topictype as the keyset and the number of times it occurs as the valueset.
 java.util.Collection makeStrings(java.util.Collection topics)
           
 java.lang.String[] sortAlpha(java.util.Collection collection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicCounter

public TopicCounter(TopicMapIF topicmap)
Method Detail

count

public void count()
           throws java.lang.NullPointerException
Throws:
java.lang.NullPointerException

getNumberOfTopics

public int getNumberOfTopics()
Returns the number of topics in a topic map.


getNumberOfAssociations

public int getNumberOfAssociations()
Returns the number of Associations in a topic map.


getNumberOfOccurrences

public int getNumberOfOccurrences()
Returns the number of Occurrences in a topic map.


getTopicDetails

public java.util.HashMap getTopicDetails()

getTopicDetails

public TopicIF getTopicDetails(java.lang.String key)

getAssocDetails

public java.util.HashMap getAssocDetails()

getAssocDetails

public TopicIF getAssocDetails(java.lang.String key)

getOccurDetails

public java.util.HashMap getOccurDetails()

getOccurDetails

public TopicIF getOccurDetails(java.lang.String key)

getTopicTypes

public java.util.HashMap getTopicTypes()
Returns a HashMap which contains the topictype as the keyset and the number of times it occurs as the valueset.


getAssociationTypes

public java.util.HashMap getAssociationTypes()
Returns a HashMap which contains the associationtype as the keyset and the number of times it occurs as the valueset.


getOccurrenceTypes

public java.util.HashMap getOccurrenceTypes()
Returns a HashMap which contains the occurrencetype as the keyset and the number of times it occurs as the valueset.


getName

public java.lang.String getName(TopicIF topic)

makeStrings

public java.util.Collection makeStrings(java.util.Collection topics)

sortAlpha

public java.lang.String[] sortAlpha(java.util.Collection collection)


Copyright © 2000-2012 Ontopia.