com.ibm.tws.objects.types
Class Identifier

java.lang.Object
  extended bycom.ibm.tws.objects.types.Identifier
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable
Direct Known Subclasses:
PlanIdentifier

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

This class is a simple wrapper for the java type used to represent a TWS object identifier. The Identifier class must be used whenever handling object identifiers, to avoid creating dependencies of TWS subsystems from the underlying java type.

See Also:
Serialized Form

Field Summary
static java.lang.String COPYRIGHT
          Copyright.
 
Constructor Summary
Identifier(java.lang.String value)
          Creates an Identifier object with the specified value.
 
Method Summary
 boolean after(Identifier identifier)
          Tests if this Identifier object is after the given one.
 boolean before(Identifier identifier)
          Tests if this Identifier object is before the given one.
 int compareTo(java.lang.Object object)
          Compares this Identifier object with the given one.
 boolean equals(java.lang.Object object)
          Returns true if all fields of this Identifier object are equal to those of the given one.
 java.lang.String getValue()
          Returns the identifier value as a String object.
 int hashCode()
          Returns a hash code for this Identifier object.
 void setValue(java.lang.String value)
          Sets the identifier value as a String object.
 java.lang.String toString()
          Returns a string representation of this Identifier 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

Identifier

public Identifier(java.lang.String value)
Creates an Identifier object with the specified value.

Parameters:
value - The identifier as a String object.
Method Detail

getValue

public java.lang.String getValue()
Returns the identifier value as a String object.

Returns:
The identifier as a String object.

setValue

public void setValue(java.lang.String value)
Sets the identifier value as a String object.

Parameters:
value - The identifier as a String object.

equals

public boolean equals(java.lang.Object object)
Returns true if all fields of this Identifier 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 Identifier object.

Returns:
The object's hash code.

before

public boolean before(Identifier identifier)
Tests if this Identifier object is before the given one.

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

after

public boolean after(Identifier identifier)
Tests if this Identifier object is after the given one.

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

compareTo

public int compareTo(java.lang.Object object)
Compares this Identifier object with the given one.

Specified by:
compareTo in interface java.lang.Comparable
Parameters:
object - The object to be compared with this one.
Returns:
The logical difference between this object and the given one.

toString

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

Returns:
A text string including the Identifier value.


Copyright © 2005 IBM All Rights Reserved.