Class TopicCounter
java.lang.Object
net.ontopia.topicmaps.cmdlineutils.statistics.TopicCounter
Topic Map count methods
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidcount()getAssocDetails(String key) Returns a HashMap which contains the associationtype as the keyset and the number of times it occurs as the valueset.intReturns the number of Associations in a topic map.intReturns the number of Occurrences in a topic map.intReturns the number of topics in a topic map.getOccurDetails(String key) Returns a HashMap which contains the occurrencetype as the keyset and the number of times it occurs as the valueset.getTopicDetails(String key) Returns a HashMap which contains the topictype as the keyset and the number of times it occurs as the valueset.makeStrings(Collection topics) String[]sortAlpha(Collection collection)
-
Constructor Details
-
TopicCounter
-
-
Method Details
-
count
- 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
-
getTopicDetails
-
getAssocDetails
-
getAssocDetails
-
getOccurDetails
-
getOccurDetails
-
getTopicTypes
Returns a HashMap which contains the topictype as the keyset and the number of times it occurs as the valueset. -
getAssociationTypes
Returns a HashMap which contains the associationtype as the keyset and the number of times it occurs as the valueset. -
getOccurrenceTypes
Returns a HashMap which contains the occurrencetype as the keyset and the number of times it occurs as the valueset. -
getName
-
makeStrings
-
sortAlpha
-