info.aduna.gee.publication.content
Class EntryComparator

java.lang.Object
  extended by info.aduna.gee.publication.content.EntryComparator
All Implemented Interfaces:
EntryConstants, Comparator

public class EntryComparator
extends Object
implements Comparator, EntryConstants


Field Summary
protected  int[] _criteria
          The numbered list of criteria to be sorted upon.
protected static String _infoSortCLabelKey
           
protected static String _infoSortDescriptionKey
          For efficiency.
static String CLABELS
          The various criteria in a sort.
protected static int CLABELS_INT
          For efficiency the 'translations' of the criteria above
static String DESCRIPTION
           
protected static int DESCRIPTION_INT
           
static String TYPES
           
protected static int TYPES_INT
           
 
Fields inherited from interface info.aduna.gee.publication.content.EntryConstants
ACLS_PREFIX, AFTER_TRANSFER, APPLET_TYPE_VALUE, ASSOCIATES_EDIT_LEVEL, BEFORE_STORAGE, BEFORE_TRANSFER, CODE_KEY, CODEBASE_KEY, CONSTRUCTION_KEY, CONTAINER_TTL_KEY, CONTAINERID_KEY, CONTAINERPROPS_KEY, DBPRIVACY_LEVEL_KEY, DESCRIPTION_KEY, EMBED_TYPE_VALUE, END_TIME_KEY, ENTRY_ID_KEY, ENTRYATTRIBS_KEY, ENTRYPARAMS_KEY, ENTRYPROPS_KEY, EXPIRES_KEY, EXTERNAL_ENTRY_KEY, HEIGHT_KEY, HTML_KEY, HTML_TYPE_VALUE, ID2IDID_KEY, IMAGE_TYPE_VALUE, IMPORT_CLASSNAME, IMPORT_DONT_FORWARD, IMPORT_IMPORTED, IMPORT_LANGUAGE, IMPORT_SERVER_NAME, IMPORT_TYPE_VALUE, INFO_EXTENSION, INHERIT_CONFIGURATION, INLINE_DESCRIPTION_IS_HTML_KEY, INLINE_DESCRIPTION_KEY, INSPIRES_KEY, JIT_DESTINATION, JIT_DESTINATION_INDEX, LINK_IN_FRAME_KEY, LINK_KEY, MANUAL_KEY, MINIMALHEIGHT_KEY, MINIMALWIDTH_KEY, NAVIGATION_KEY, OBJECT_TYPE_VALUE, OCCURRING_CLABELS_KEY, OVERRIDE_SUGGESTION_KEY, PRIVACY_LEVEL_KEY, PROVIDE_KEY, PROVIDE_PL_KEY, QUALIFIED_BASE_KEY, RE_EXPORT_KEY, RE_MANUAL_KEY, REPEAT_ID_KEY, REPEAT_TODAY_KEY, REQUIRES_NEW_PAGE, ROTATABLE_KEY, SHARED_CLABELS_KEY, SHOP_GIF_KEY, SHOP_GIF_LOCATION_KEY, SHOP_ID_KEY, SHOP_ORIGIN_KEY, SHOP_OVER_GIF_KEY, SORT_CLABELS, SORT_DESCRIPTION, SOURCE_KEY, STARTSECTION_KEY, SUBSCRIBED_COLOR_KEY, SUBSCRIBED_GIF_KEY, SUBSCRIBED_GIF_LOCATION_KEY, SUBSCRIBED_OVER_GIF_KEY, SUBSCRIBED_VISIBLE_CLABELS_KEY, SUBSCRIPTION_KEY, SUBSCRIPTION_LINK_KEY, SUGGESTION_KEY, SUMMARY_IS_HTML_KEY, SUMMARY_KEY, SUMMARY_TYPE_VALUE, TEMPLATEPREFERENCES_KEY, TEXT_KEY, TEXT_TYPE_VALUE, TIME_KEY, TMPL_DESCRIPTOR_KEY, TMPL_FOREIGN_ID_KEY, TMPL_ID_KEY, TMPL_PREFERENCES_KEY, TMPL_STUB_RECOGNIZER_KEY, TMPLD_TYPE_VALUE, TYPE_KEY, WIDTH_KEY
 
Constructor Summary
EntryComparator(Vector criteria)
           
 
Method Summary
 int compare(Object one, Object two)
           
 
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

CLABELS

public static String CLABELS
The various criteria in a sort.


TYPES

public static String TYPES

DESCRIPTION

public static String DESCRIPTION

CLABELS_INT

protected static final int CLABELS_INT
For efficiency the 'translations' of the criteria above

See Also:
Constant Field Values

TYPES_INT

protected static final int TYPES_INT
See Also:
Constant Field Values

DESCRIPTION_INT

protected static final int DESCRIPTION_INT
See Also:
Constant Field Values

_criteria

protected int[] _criteria
The numbered list of criteria to be sorted upon.


_infoSortDescriptionKey

protected static String _infoSortDescriptionKey
For efficiency.


_infoSortCLabelKey

protected static String _infoSortCLabelKey
Constructor Detail

EntryComparator

public EntryComparator(Vector criteria)
Method Detail

compare

public int compare(Object one,
                   Object two)
Specified by:
compare in interface Comparator


Copyright © 1997-2008 Aduna. All Rights Reserved.