com.sapmarkets.tpd.master
Class PartnerID

java.lang.Object
  |
  +--com.sapmarkets.tpd.master.PartnerID
All Implemented Interfaces:
java.io.Serializable

public abstract class PartnerID
extends java.lang.Object
implements java.io.Serializable

Base class for business/trading partner IDs. Used in the getPartnerID() and getPartner() function of the TradingPartner and TradingPartnerDirectory interfaces. Allows us to pass IDs in a typesafe manner.

See Also:
and TradingPartnerDirectory interfaces. Creation date: (11/28/00 2:10:25 PM), Serialized Form

Constructor Summary
PartnerID()
          ID constructor.
 
Method Summary
abstract  boolean equals(java.lang.Object obj)
          Comparison method.
static PartnerID instantiatePartnerID(java.lang.String partnerIDasString)
          Factory method.
 java.lang.String toString()
          Returns a String that represents the value of this object.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PartnerID

public PartnerID()
ID constructor.
Method Detail

toString

public java.lang.String toString()
Returns a String that represents the value of this object. Should not be called.
Overrides:
toString in class java.lang.Object
Returns:
a string representation of the receiver

equals

public abstract boolean equals(java.lang.Object obj)
Comparison method. FIXME: Not sure if ok.
Overrides:
equals in class java.lang.Object
Parameters:
obj - TBD: Description of the incoming method parameter
Returns:
TBD: Description of the outgoing return value

instantiatePartnerID

public static PartnerID instantiatePartnerID(java.lang.String partnerIDasString)
                                      throws TpdException
Factory method. Accepts a String and creates a new object of PartnerID
Parameters:
partnerIDasString - The ID as a String.
Returns:
A type-safe ID object base class type.
Throws:
TpdException - Description of Exception