com.cc.framework.ui.model
Class AppointmentPriority

java.lang.Object
  extended bycom.cc.framework.ui.model.AppointmentPriority
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable, SimpleEnumType

public class AppointmentPriority
extends java.lang.Object
implements SimpleEnumType, java.io.Serializable, java.lang.Comparable

Enumeration Type for Appointment Priorities

Version:
$Revision: 1.6 $
Author:
Harald Schulz
See Also:
Serialized Form

Field Summary
private static AppointmentPriority[] ALL
          Collection with all kinds of importance types
static AppointmentPriority HIGH
          importance: high
private  int importance
          Importance
static AppointmentPriority LOW
          importance: low
static AppointmentPriority NONE
          importance: none
static AppointmentPriority NORMAL
          importance: normal
private static long serialVersionUID
          Serial Version UID
private  java.lang.String type
          The internal type
 
Constructor Summary
private AppointmentPriority(java.lang.String type, int importance)
          Constructor for AppointmentImportance
 
Method Summary
 int compareTo(java.lang.Object o)
           
 boolean equals(java.lang.Object obj)
          Compares this type to the specified object.
static AppointmentPriority parse(java.lang.String code)
          Creates for the argument an object of type AppointmentImportance
 int toInt()
           
 java.lang.String toString()
          Returns the importance type
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, 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 AppointmentPriority NONE
importance: none


LOW

public static final AppointmentPriority LOW
importance: low


NORMAL

public static final AppointmentPriority NORMAL
importance: normal


HIGH

public static final AppointmentPriority HIGH
importance: high


type

private java.lang.String type
The internal type


importance

private int importance
Importance


ALL

private static final AppointmentPriority[] ALL
Collection with all kinds of importance types

Constructor Detail

AppointmentPriority

private AppointmentPriority(java.lang.String type,
                            int importance)
Constructor for AppointmentImportance

Parameters:
type - The importance type to initialize the Object
importance - Importance
Method Detail

toString

public java.lang.String toString()
Returns the importance type

Returns:
The importance type

equals

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

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

parse

public static AppointmentPriority parse(java.lang.String code)
                                 throws java.lang.IllegalArgumentException
Creates for the argument an object of type AppointmentImportance

Parameters:
code - String to parse
Returns:
The new Object
Throws:
java.lang.IllegalArgumentException - if the argument is not matched

toInt

public int toInt()
Returns:
Integer

compareTo

public int compareTo(java.lang.Object o)
Specified by:
compareTo in interface java.lang.Comparable
See Also:
Comparable.compareTo(java.lang.Object)


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