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 void
count()
HashMap
getAssocDetails()
TopicIF
getAssocDetails(String key)
HashMap
getAssociationTypes()
Returns a HashMap which contains the associationtype as the keyset and the number of times it occurs as the valueset.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.HashMap
getOccurDetails()
TopicIF
getOccurDetails(String key)
HashMap
getOccurrenceTypes()
Returns a HashMap which contains the occurrencetype as the keyset and the number of times it occurs as the valueset.HashMap
getTopicDetails()
TopicIF
getTopicDetails(String key)
HashMap
getTopicTypes()
Returns a HashMap which contains the topictype as the keyset and the number of times it occurs as the valueset.Collection
makeStrings(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)
-
-