org.objectweb.jac.aspects.persistence
Class StringOID

java.lang.Object
  |
  +--org.objectweb.jac.aspects.persistence.OID
        |
        +--org.objectweb.jac.aspects.persistence.StringOID
All Implemented Interfaces:
Serializable

public class StringOID
extends OID

An implementation of OID with a String

See Also:
Serialized Form

Field Summary
 
Fields inherited from class org.objectweb.jac.aspects.persistence.OID
storage
 
Constructor Summary
StringOID(Storage storage, String oid)
           
 
Method Summary
 boolean equals(Object obj)
          Test if two OIDs are equal.
 String getOID()
           
 int hashCode()
           
 String localId()
           
 String toString()
           
 
Methods inherited from class org.objectweb.jac.aspects.persistence.OID
getStorage
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

StringOID

public StringOID(Storage storage,
                 String oid)
Method Detail

getOID

public String getOID()

localId

public String localId()
Specified by:
localId in class OID

equals

public boolean equals(Object obj)
Description copied from class: OID
Test if two OIDs are equal.

Specified by:
equals in class OID
Parameters:
obj - the OID to test
Returns:
true if obj equals this OID

toString

public String toString()
Overrides:
toString in class Object

hashCode

public int hashCode()
Specified by:
hashCode in class OID