com.cc.framework.common
Class SortOrder

java.lang.Object
  extended bycom.cc.framework.common.SortOrder
All Implemented Interfaces:
java.io.Serializable, SimpleEnumType

public final class SortOrder
extends java.lang.Object
implements SimpleEnumType, java.io.Serializable

Defines sort order types used by the common controls framework

Since:
1.0
Version:
$Revision: 1.16 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private static SortOrder[] ALL
          collection with all kinds of sort orders
static SortOrder ASCENDING
          sort: ASCENDING
static SortOrder DESCENDING
          sort: DESCENDING
private  java.lang.String name
          display value / nice name
static SortOrder NONE
          sort: NONE
private static long serialVersionUID
          Serial Version UID
private  java.lang.String type
          identifier / key / type
 
Constructor Summary
private SortOrder(java.lang.String type, java.lang.String name)
          Constructor for SortOrder
 
Method Summary
 boolean equals(java.lang.Object obj)
          Compares this type to the specified object.
 java.lang.String getCode()
          Gets the internal type
 java.lang.String getName()
          Returns the name.
 int hashCode()
           
static SortOrder parse(java.lang.String code)
          Creates for the argument an Object of type SortOrder
 java.lang.String toString()
          Returns the Key
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

private static final long serialVersionUID
Serial Version UID

See Also:
Constant Field Values

NONE

public static final SortOrder NONE
sort: NONE


ASCENDING

public static final SortOrder ASCENDING
sort: ASCENDING


DESCENDING

public static final SortOrder DESCENDING
sort: DESCENDING


type

private java.lang.String type
identifier / key / type


name

private java.lang.String name
display value / nice name


ALL

private static final SortOrder[] ALL
collection with all kinds of sort orders

Constructor Detail

SortOrder

private SortOrder(java.lang.String type,
                  java.lang.String name)
Constructor for SortOrder

Parameters:
type - Key
name - Value
Method Detail

toString

public java.lang.String toString()
Returns the Key

Returns:
String

parse

public static SortOrder parse(java.lang.String code)
Creates for the argument an Object of type SortOrder

Parameters:
code - String to parse
Returns:
SortOrder

getCode

public java.lang.String getCode()
Gets the internal type

Returns:
String

getName

public java.lang.String getName()
Returns the name.

Returns:
String

equals

public boolean equals(java.lang.Object obj)
Compares this type to the specified object.

Parameters:
obj - The object to compare this SortOrder object against.
Returns:
true if the internal types are equal; false otherwise.

hashCode

public int hashCode()
See Also:
Object.hashCode()


Copyright © 2000-2005 SCC Informationssysteme GmbH. All Rights Reserved.