com.ibm.tws.objects.plan.types
Class CalendarInPlanKey

java.lang.Object
  extended bycom.ibm.tws.objects.plan.types.CalendarInPlanKey
All Implemented Interfaces:
java.io.Serializable, TWSKey

public class CalendarInPlanKey
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
CalendarInPlanKey()
          Creates an empty CalendarInPlanKey.
CalendarInPlanKey(java.lang.String calendarName)
          Creates a CalendarInPlanKey with the specified name.
 
Method Summary
 boolean equals(java.lang.Object object)
          Returns true if all fields of this CalendarInPlanKey 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 CalendarInPlanKey object.
static CalendarInPlanKey parseKey(java.lang.String key)
          Parses data from the specified string and creates a new CalendarInPlanKey.
 void setName(java.lang.String value)
          Sets the calendar name.
 java.lang.String toString()
          Returns a string representation of this CalendarInPlanKey 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

CalendarInPlanKey

public CalendarInPlanKey()
Creates an empty CalendarInPlanKey.


CalendarInPlanKey

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

Parameters:
calendarName - The calendar name.
Method Detail

parseKey

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

Parameters:
key - The string containing key data.
Returns:
A new CalendarInPlanKey, 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 CalendarInPlanKey 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 CalendarInPlanKey object.

Returns:
The object's hash code.

toString

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

Returns:
A text string including all CalendarInPlanKey fields.


Copyright © 2005 IBM All Rights Reserved.