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

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.ClassPackageComparator
All Implemented Interfaces:
java.util.Comparator

public class ClassPackageComparator
extends AnalyzableElementComparator

Provides sort criteria and algorithm for class package.

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
ClassPackageComparator()
          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

ClassPackageComparator

public ClassPackageComparator()
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