com.cometway.om
Class ObjectID

java.lang.Object
  extended by com.cometway.om.ObjectType
      extended by com.cometway.om.ObjectID

public class ObjectID
extends ObjectType

This class uniquely identifies an Object contained within an ObjectManager.


Field Summary
protected  java.lang.String id
           
 
Fields inherited from class com.cometway.om.ObjectType
type
 
Constructor Summary
ObjectID(java.lang.String objectID)
          Takes a fully qualified type/id string using the format "type|id".
ObjectID(java.lang.String type, java.lang.String id)
          Object type and id parameters must be only alphanumeric characters including underscores ('_').
 
Method Summary
 boolean equals(java.lang.Object o)
          Returns true of the specified Object is equal to this one.
 java.lang.String getID()
          Returns the ID for this class.
 int hashCode()
          Returns the hashcode for this class.
 java.lang.String toString()
          Returns this type as a String.
 
Methods inherited from class com.cometway.om.ObjectType
getType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected java.lang.String id
Constructor Detail

ObjectID

public ObjectID(java.lang.String type,
                java.lang.String id)
Object type and id parameters must be only alphanumeric characters including underscores ('_'). Use of the pipe ('|') symbol is strictly prohibited.


ObjectID

public ObjectID(java.lang.String objectID)
Takes a fully qualified type/id string using the format "type|id".

Method Detail

getID

public java.lang.String getID()
Returns the ID for this class.


hashCode

public int hashCode()
Returns the hashcode for this class.

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object o)
Description copied from class: ObjectType
Returns true of the specified Object is equal to this one.

Overrides:
equals in class ObjectType

toString

public java.lang.String toString()
Description copied from class: ObjectType
Returns this type as a String.

Overrides:
toString in class ObjectType