net.ontopia.topicmaps.cmdlineutils.statistics
Class TopicAssocDep

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

public class TopicAssocDep
extends java.lang.Object

Class used for locating associations and their types.


Constructor Summary
TopicAssocDep(TopicMapIF tm)
           
 
Method Summary
 java.util.Collection getAssociationDetails(java.lang.String key)
          Returns a Collection of the different associations that have this associationtype.
 java.lang.String[] getAssociationDetails(java.lang.String key, AssociationIF association)
           
 java.util.HashMap getAssociationRoles(java.lang.String key)
          Return a hashmap containg the id and the name of all the topictypes for all the topics that play in this association.
 java.util.HashMap getAssociationRoleTypes(java.lang.String key)
          Returns a hashmap containg the id of the assocrltype, and the name of assocrltype
 java.lang.String[] getAssociationRoleTypesOrdered(java.lang.String key)
          Gets the association roles ordered aplhabetically
 java.util.Collection getAssociations()
          Returns a set of keys for the associations
 java.lang.String getAssociationType(java.lang.String key)
          Gets the name of the association.
 java.lang.String getAssociationTypeId(java.lang.String key)
          Gets the id for the association type.
 int getNumberOfOccurrences(java.lang.String key)
          Gets the number of times this association occurres in the topicmap.
 java.lang.String[] sortAlpha(java.util.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 java.lang.NullPointerException
Throws:
java.lang.NullPointerException
Method Detail

getAssociations

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


getAssociationTypeId

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


getAssociationType

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


getNumberOfOccurrences

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


getAssociationRoleTypes

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


getAssociationRoles

public java.util.HashMap getAssociationRoles(java.lang.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 java.util.Collection getAssociationDetails(java.lang.String key)
Returns a Collection of the different associations that have this associationtype.


getAssociationRoleTypesOrdered

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


getAssociationDetails

public java.lang.String[] getAssociationDetails(java.lang.String key,
                                                AssociationIF association)

sortAlpha

public java.lang.String[] sortAlpha(java.util.Collection collection)


Copyright © 2000-2012 Ontopia.