org.pf.tools.cda.core.comparators
Class ClassInformationComparator

java.lang.Object
  extended by java.util.Observable
      extended by org.pf.model.ObservableObject
          extended by org.pf.model.ObservableModel
              extended by org.pf.tools.cda.core.comparators.AnalyzableElementComparator
                  extended by org.pf.tools.cda.core.comparators.ClassInformationComparator
All Implemented Interfaces:
java.util.Comparator

public class ClassInformationComparator
extends AnalyzableElementComparator

This is a comparator with several option that allow to sort by different fields and different order.

Version:
1.0
Author:
Manfred Duchrow

Field Summary
 
Fields inherited from class org.pf.tools.cda.core.comparators.AnalyzableElementComparator
FIELD_NAME_SORT_CRITERIA, FIELD_NAME_SORT_ORDER, OPT_ASCENDING, OPT_BY_CLASS_NAME, OPT_BY_CONTAINER, OPT_BY_PACKAGE, OPT_DESCENDING
 
Fields inherited from class org.pf.model.ObservableObject
EMPTY_OBSERVER_ARRAY
 
Constructor Summary
ClassInformationComparator()
          Initialize the new instance with default values.
 
Method Summary
 int compare(java.lang.Object obj1, java.lang.Object obj2)
          Compares the two given objects
 
Methods inherited from class org.pf.tools.cda.core.comparators.AnalyzableElementComparator
getAttributeValue, getSortCriteria, getSortOrder, setAttributeValue, setSortCriteriaToClass, setSortCriteriaToContainer, setSortCriteriaToPackage, setSortOrderAscending, setSortOrderDescending
 
Methods inherited from class org.pf.model.ObservableObject
deleteObservers, deleteViewRelatedObservers, getObservers
 
Methods inherited from class java.util.Observable
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface java.util.Comparator
equals
 

Constructor Detail

ClassInformationComparator

public ClassInformationComparator()
Initialize the new instance with default values.

Method Detail

compare

public int compare(java.lang.Object obj1,
                   java.lang.Object obj2)
Compares the two given objects