org.mmbase.module.core
Class MMContainerCompare

java.lang.Object
  |
  +--org.mmbase.module.core.MMContainerCompare
All Implemented Interfaces:
CompareInterface

public class MMContainerCompare
extends java.lang.Object
implements CompareInterface

Class to compare two MMObjectNodes, used by SortedVector.

Version:
$Id: MMContainerCompare.java,v 1.3 2001/07/02 15:09:45 pierre Exp $
Author:
Rico Jansen
See Also:
SortedVector, CompareInterface

Field Summary
static boolean ASC
           
static boolean DESC
           
 
Constructor Summary
MMContainerCompare()
           
MMContainerCompare(java.util.Vector orderfields)
           
MMContainerCompare(java.util.Vector orderfields, java.util.Vector orderdirections)
           
 
Method Summary
 void addField(java.lang.String field)
           
 void addField(java.lang.String field, boolean direction)
           
 int compare(java.lang.Object thisone, java.lang.Object other)
          The compare function called by SortedVector to sort things.
 void setCompare(java.lang.String field, CompareInterface handler)
           
 boolean setField(java.lang.String field, boolean direction)
           
 void setOrder(java.util.Vector orderfields, java.util.Vector orderdirections)
           
 void setOrderDirections(java.util.Vector orderdirections)
           
 void setOrderFields(java.util.Vector orderfields)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ASC

public static final boolean ASC

DESC

public static final boolean DESC
Constructor Detail

MMContainerCompare

public MMContainerCompare()

MMContainerCompare

public MMContainerCompare(java.util.Vector orderfields)

MMContainerCompare

public MMContainerCompare(java.util.Vector orderfields,
                          java.util.Vector orderdirections)
Method Detail

setCompare

public void setCompare(java.lang.String field,
                       CompareInterface handler)

addField

public void addField(java.lang.String field)

addField

public void addField(java.lang.String field,
                     boolean direction)

setField

public boolean setField(java.lang.String field,
                        boolean direction)

setOrderFields

public void setOrderFields(java.util.Vector orderfields)

setOrderDirections

public void setOrderDirections(java.util.Vector orderdirections)

setOrder

public void setOrder(java.util.Vector orderfields,
                     java.util.Vector orderdirections)

compare

public int compare(java.lang.Object thisone,
                   java.lang.Object other)
The compare function called by SortedVector to sort things.
Specified by:
compare in interface CompareInterface
See Also:
SortedVector, CompareInterface


MMBase build 1.6.5.20030923