net.ontopia.topicmaps.nav.utils.comparators
Class AssociationRoleComparator

java.lang.Object
  extended by net.ontopia.topicmaps.nav.utils.comparators.AssociationRoleComparator
All Implemented Interfaces:
java.util.Comparator

public class AssociationRoleComparator
extends java.lang.Object
implements java.util.Comparator

INTERNAL: A comparator for ordering AssociationRoleIFs alphabetically by role player and role type.


Field Summary
protected  java.util.Comparator tc
           
 
Constructor Summary
AssociationRoleComparator()
           
AssociationRoleComparator(java.util.Collection context, TopicIF sortTopic)
          Constructor used to make a comparator which will compare Association Roles using the context provided.
 
Method Summary
 int compare(java.lang.Object o1, java.lang.Object o2)
          Compares two AssociationRoleIFs.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Field Detail

tc

protected java.util.Comparator tc
Constructor Detail

AssociationRoleComparator

public AssociationRoleComparator()

AssociationRoleComparator

public AssociationRoleComparator(java.util.Collection context,
                                 TopicIF sortTopic)
Constructor used to make a comparator which will compare Association Roles using the context provided.

Parameters:
context - The context to select topics in.
sortTopic - The topic representing sort names.
Method Detail

compare

public int compare(java.lang.Object o1,
                   java.lang.Object o2)
Compares two AssociationRoleIFs.

Specified by:
compare in interface java.util.Comparator


Copyright © 2000-2012 Ontopia.