com.ibm.tws.objects.model
Class CalendarKey

java.lang.Object
  extended bycom.ibm.tws.objects.model.CalendarKey
All Implemented Interfaces:
java.io.Serializable, TWSKey

public class CalendarKey
extends java.lang.Object
implements TWSKey

This object represents a calendar external key, including fields used to identify a calendar in TWS external interfaces.

See Also:
Calendar, Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
CalendarKey()
          Creates an empty CalendarKey.
CalendarKey(java.lang.String calendarName)
          Creates a CalendarKey with the specified name.
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if all fields of this CalendarKey object are equal to those of the given one.
 java.lang.String getName()
          Returns the calendar name.
 int hashCode()
          Returns a hash code for this CalendarKey object.
static CalendarKey parseKey(java.lang.String key)
          Parses data from the specified string and creates a new CalendarKey.
 void setName(java.lang.String value)
          Sets the calendar name.
 java.lang.String toString()
          Returns a string representation of this CalendarKey object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

COPYRIGHT

public static final java.lang.String COPYRIGHT
Copyright.

Constructor Detail

CalendarKey

public CalendarKey()
Creates an empty CalendarKey.


CalendarKey

public CalendarKey(java.lang.String calendarName)
Creates a CalendarKey with the specified name.

Parameters:
calendarName - The calendar name.
Method Detail

parseKey

public static CalendarKey parseKey(java.lang.String key)
Parses data from the specified string and creates a new CalendarKey.

Parameters:
key - The string containing key data.
Returns:
A new CalendarKey, or null if the string does not contain a valid key.

getName

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

Specified by:
getName in interface TWSKey
Returns:
The calendar name.

setName

public void setName(java.lang.String value)
Sets the calendar name.

Parameters:
value - The calendar name.

equals

public boolean equals(java.lang.Object object)
Returns true if all fields of this CalendarKey object are equal to those of the given one.

Parameters:
object - The object to be compared with this one.
Returns:
True if this object equals to the given one.

hashCode

public int hashCode()
Returns a hash code for this CalendarKey object.

Returns:
The object's hash code.

toString

public java.lang.String toString()
Returns a string representation of this CalendarKey object.

Returns:
A text string including all CalendarKey fields.


Copyright © 2005 IBM All Rights Reserved.