Class TopicAssocDep
- java.lang.Object
-
- net.ontopia.topicmaps.cmdlineutils.statistics.TopicAssocDep
-
public class TopicAssocDep extends Object
Class used for locating associations and their types.
-
-
Constructor Summary
Constructors Constructor Description TopicAssocDep(TopicMapIF tm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CollectiongetAssociationDetails(String key)Returns a Collection of the different associations that have this associationtype.String[]getAssociationDetails(String key, AssociationIF association)HashMapgetAssociationRoles(String key)Return a hashmap containg the id and the name of all the topictypes for all the topics that play in this association.HashMapgetAssociationRoleTypes(String key)Returns a hashmap containg the id of the assocrltype, and the name of assocrltypeString[]getAssociationRoleTypesOrdered(String key)Gets the association roles ordered aplhabeticallyCollectiongetAssociations()Returns a set of keys for the associationsStringgetAssociationType(String key)Gets the name of the association.StringgetAssociationTypeId(String key)Gets the id for the association type.intgetNumberOfOccurrences(String key)Gets the number of times this association occurres in the topicmap.String[]sortAlpha(Collection collection)
-
-
-
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.
-
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)
-
-