org.ujac.util
Class CompareTuple

java.lang.Object
  extended by org.ujac.util.CompareTuple

public class CompareTuple
extends Object

Title: CompareTuple
Description: Holds tuples of field names and directions to sort by.

Author:
christian.lauer@dekabank.lu

Field Summary
static int ASCENDING
          Constant for ascending sort direction.
static int DESCENDING
          Constant for descending sort direction.
 
Constructor Summary
CompareTuple(String fieldName)
          Constructs a CompareTuple instance with specific attributes.
CompareTuple(String fieldName, int direction)
          Constructs a CompareTuple instance with specific attributes.
 
Method Summary
 int getDirection()
          Getter method for the the property direction.
 String getDirectionName()
          Gets the sort direction name.
 String getFieldName()
          Getter method for the the property fieldName.
 void setDirection(int direction)
          Setter method for the the property direction.
 void setFieldName(String fieldName)
          Setter method for the the property fieldName.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

ASCENDING

public static final int ASCENDING
Constant for ascending sort direction.

See Also:
Constant Field Values

DESCENDING

public static final int DESCENDING
Constant for descending sort direction.

See Also:
Constant Field Values
Constructor Detail

CompareTuple

public CompareTuple(String fieldName)
Constructs a CompareTuple instance with specific attributes.

Parameters:
fieldName - The initial field name.

CompareTuple

public CompareTuple(String fieldName,
                    int direction)
Constructs a CompareTuple instance with specific attributes.

Parameters:
fieldName - The initial field name.
direction - The initial sort direction.
Method Detail

getFieldName

public String getFieldName()
Getter method for the the property fieldName.

Returns:
The current value of property fieldName.

setFieldName

public void setFieldName(String fieldName)
Setter method for the the property fieldName.

Parameters:
fieldName - The value to set for the property fieldName.

getDirection

public int getDirection()
Getter method for the the property direction.

Returns:
The current value of property direction.

getDirectionName

public String getDirectionName()
Gets the sort direction name.

Returns:
The sort direction name.

setDirection

public void setDirection(int direction)
Setter method for the the property direction.

Parameters:
direction - The value to set for the property direction.

toString

public String toString()
Overrides:
toString in class Object
See Also:
Object.toString()


Copyright © 2003-2004 UJAC.org. All Rights Reserved.