Class TopicCounter
- java.lang.Object
-
- net.ontopia.topicmaps.cmdlineutils.statistics.TopicCounter
-
public class TopicCounter extends Object
Topic Map count methods
-
-
Constructor Summary
Constructors Constructor Description TopicCounter(TopicMapIF topicmap)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcount()HashMapgetAssocDetails()TopicIFgetAssocDetails(String key)HashMapgetAssociationTypes()Returns a HashMap which contains the associationtype as the keyset and the number of times it occurs as the valueset.StringgetName(TopicIF topic)intgetNumberOfAssociations()Returns the number of Associations in a topic map.intgetNumberOfOccurrences()Returns the number of Occurrences in a topic map.intgetNumberOfTopics()Returns the number of topics in a topic map.HashMapgetOccurDetails()TopicIFgetOccurDetails(String key)HashMapgetOccurrenceTypes()Returns a HashMap which contains the occurrencetype as the keyset and the number of times it occurs as the valueset.HashMapgetTopicDetails()TopicIFgetTopicDetails(String key)HashMapgetTopicTypes()Returns a HashMap which contains the topictype as the keyset and the number of times it occurs as the valueset.CollectionmakeStrings(Collection topics)String[]sortAlpha(Collection collection)
-
-
-
Constructor Detail
-
TopicCounter
public TopicCounter(TopicMapIF topicmap)
-
-
Method Detail
-
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()
-
getAssocDetails
public HashMap getAssocDetails()
-
getOccurDetails
public HashMap getOccurDetails()
-
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.
-
makeStrings
public Collection makeStrings(Collection topics)
-
sortAlpha
public String[] sortAlpha(Collection collection)
-
-