net.ontopia.topicmaps.cmdlineutils.statistics
Class TopicAssocDep

java.lang.Object
  extended by net.ontopia.topicmaps.cmdlineutils.statistics.TopicAssocDep

public class TopicAssocDep
extends Object

Class used for locating associations and their types.


Constructor Summary
TopicAssocDep(TopicMapIF tm)
           
 
Method Summary
 Collection getAssociationDetails(String key)
          Returns a Collection of the different associations that have this associationtype.
 String[] getAssociationDetails(String key, AssociationIF association)
           
 HashMap getAssociationRoles(String key)
          Return a hashmap containg the id and the name of all the topictypes for all the topics that play in this association.
 HashMap getAssociationRoleTypes(String key)
          Returns a hashmap containg the id of the assocrltype, and the name of assocrltype
 String[] getAssociationRoleTypesOrdered(String key)
          Gets the association roles ordered aplhabetically
 Collection getAssociations()
          Returns a set of keys for the associations
 String getAssociationType(String key)
          Gets the name of the association.
 String getAssociationTypeId(String key)
          Gets the id for the association type.
 int getNumberOfOccurrences(String key)
          Gets the number of times this association occurres in the topicmap.
 String[] sortAlpha(Collection collection)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicAssocDep

public TopicAssocDep(TopicMapIF tm)
              throws NullPointerException
Throws:
NullPointerException
Method Detail

getAssociations

public Collection getAssociations()
Returns a set of keys for the associations


getAssociationTypeId

public String getAssociationTypeId(String key)
Gets the id for the association type.


getAssociationType

public String getAssociationType(String key)
Gets the name of the association.


getNumberOfOccurrences

public int getNumberOfOccurrences(String key)
Gets the number of times this association occurres in the topicmap.


getAssociationRoleTypes

public HashMap getAssociationRoleTypes(String key)
Returns a hashmap containg the id of the assocrltype, and the name of assocrltype


getAssociationRoles

public HashMap getAssociationRoles(String key)
Return a hashmap containg the id and the name of all the topictypes for all the topics that play in this association.


getAssociationDetails

public Collection getAssociationDetails(String key)
Returns a Collection of the different associations that have this associationtype.


getAssociationRoleTypesOrdered

public String[] getAssociationRoleTypesOrdered(String key)
Gets the association roles ordered aplhabetically


getAssociationDetails

public String[] getAssociationDetails(String key,
                                      AssociationIF association)

sortAlpha

public String[] sortAlpha(Collection collection)


Copyright © 2000-2012 Ontopia.