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

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
All Implemented Interfaces:
java.util.Comparator
Direct Known Subclasses:
ClassContainerComparator, ClassInformationComparator, ClassPackageComparator

public abstract class AnalyzableElementComparator
extends org.pf.model.ObservableModel
implements java.util.Comparator

Superclass of the various comparators that handle the specific row model objects of a table.

Version:
1.1
Author:
Manfred Duchrow

Field Summary
static java.lang.String FIELD_NAME_SORT_CRITERIA
           
static java.lang.String FIELD_NAME_SORT_ORDER
           
static java.lang.String OPT_ASCENDING
           
static java.lang.String OPT_BY_CLASS_NAME
           
static java.lang.String OPT_BY_CONTAINER
           
static java.lang.String OPT_BY_PACKAGE
           
static java.lang.String OPT_DESCENDING
           
 
Fields inherited from class org.pf.model.ObservableObject
EMPTY_OBSERVER_ARRAY
 
Constructor Summary
AnalyzableElementComparator()
          Initialize the new instance with default values.
 
Method Summary
 java.lang.Object getAttributeValue(java.lang.String name)
          Returns the value of the attribute with the specified name
 java.lang.String getSortCriteria()
           
 java.lang.String getSortOrder()
           
 void setAttributeValue(java.lang.String name, java.lang.Object value)
          Sets the given value into the attribute with the specified name
 void setSortCriteriaToClass()
           
 void setSortCriteriaToContainer()
           
 void setSortCriteriaToPackage()
           
 void setSortOrderAscending()
           
 void 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
compare, equals
 

Field Detail

OPT_BY_CONTAINER

public static final java.lang.String OPT_BY_CONTAINER
See Also:
Constant Field Values

OPT_BY_PACKAGE

public static final java.lang.String OPT_BY_PACKAGE
See Also:
Constant Field Values

OPT_BY_CLASS_NAME

public static final java.lang.String OPT_BY_CLASS_NAME
See Also:
Constant Field Values

OPT_ASCENDING

public static final java.lang.String OPT_ASCENDING
See Also:
Constant Field Values

OPT_DESCENDING

public static final java.lang.String OPT_DESCENDING
See Also:
Constant Field Values

FIELD_NAME_SORT_ORDER

public static final java.lang.String FIELD_NAME_SORT_ORDER
See Also:
Constant Field Values

FIELD_NAME_SORT_CRITERIA

public static final java.lang.String FIELD_NAME_SORT_CRITERIA
See Also:
Constant Field Values
Constructor Detail

AnalyzableElementComparator

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

Method Detail

getSortOrder

public java.lang.String getSortOrder()

getSortCriteria

public java.lang.String getSortCriteria()

setSortCriteriaToClass

public void setSortCriteriaToClass()

setSortCriteriaToPackage

public void setSortCriteriaToPackage()

setSortCriteriaToContainer

public void setSortCriteriaToContainer()

setSortOrderAscending

public void setSortOrderAscending()

setSortOrderDescending

public void setSortOrderDescending()

getAttributeValue

public java.lang.Object getAttributeValue(java.lang.String name)
                                   throws java.lang.NoSuchFieldException
Returns the value of the attribute with the specified name

Overrides:
getAttributeValue in class org.pf.model.ObservableModel
Throws:
java.lang.NoSuchFieldException

setAttributeValue

public void setAttributeValue(java.lang.String name,
                              java.lang.Object value)
                       throws java.lang.NoSuchFieldException
Sets the given value into the attribute with the specified name

Overrides:
setAttributeValue in class org.pf.model.ObservableModel
Throws:
java.lang.NoSuchFieldException