Class TopicCounter

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

public class TopicCounter extends Object
Topic Map count methods
  • Constructor Details

    • TopicCounter

      public TopicCounter(TopicMapIF topicmap)
  • Method Details

    • count

      public void count() throws NullPointerException
      Throws:
      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 HashMap getTopicDetails()
    • getTopicDetails

      public TopicIF getTopicDetails(String key)
    • getAssocDetails

      public HashMap getAssocDetails()
    • getAssocDetails

      public TopicIF getAssocDetails(String key)
    • getOccurDetails

      public HashMap getOccurDetails()
    • getOccurDetails

      public TopicIF getOccurDetails(String key)
    • getTopicTypes

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

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

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

      public String getName(TopicIF topic)
    • makeStrings

      public Collection makeStrings(Collection topics)
    • sortAlpha

      public String[] sortAlpha(Collection collection)