public class TopicAssocDep extends Object
| Constructor and Description |
|---|
TopicAssocDep(TopicMapIF tm) |
| Modifier and Type | Method and Description |
|---|---|
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) |
public TopicAssocDep(TopicMapIF tm) throws NullPointerException
NullPointerExceptionpublic Collection getAssociations()
public String getAssociationTypeId(String key)
public int getNumberOfOccurrences(String key)
public HashMap getAssociationRoleTypes(String key)
public HashMap getAssociationRoles(String key)
public Collection getAssociationDetails(String key)
public String[] getAssociationRoleTypesOrdered(String key)
public String[] getAssociationDetails(String key, AssociationIF association)
public String[] sortAlpha(Collection collection)