public class TopicCounter extends Object
Constructor and Description |
---|
TopicCounter(TopicMapIF topicmap) |
Modifier and Type | Method and 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) |
public TopicCounter(TopicMapIF topicmap)
public void count() throws NullPointerException
NullPointerException
public int getNumberOfTopics()
public int getNumberOfAssociations()
public int getNumberOfOccurrences()
public HashMap getTopicDetails()
public HashMap getAssocDetails()
public HashMap getOccurDetails()
public HashMap getTopicTypes()
public HashMap getAssociationTypes()
public HashMap getOccurrenceTypes()
public Collection makeStrings(Collection topics)
public String[] sortAlpha(Collection collection)