gov.nih.nci.caarray.external.v1_0
Class CaArrayEntityReference

java.lang.Object
  extended by gov.nih.nci.caarray.external.v1_0.CaArrayEntityReference
All Implemented Interfaces:
java.io.Serializable

public class CaArrayEntityReference
extends java.lang.Object
implements java.io.Serializable

CaArrayEntityReference encapsulates an external id identifying an entity that can be retrieved via the API.

Author:
dkokotov
See Also:
Serialized Form

Constructor Summary
CaArrayEntityReference()
          Empty constructor, for use by tooling.
CaArrayEntityReference(java.lang.String id)
          Create a new CaArrayEntityReference with given id.
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 java.lang.String getId()
           
 int hashCode()
          
 void setId(java.lang.String id)
           
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CaArrayEntityReference

public CaArrayEntityReference()
Empty constructor, for use by tooling.


CaArrayEntityReference

public CaArrayEntityReference(java.lang.String id)
Create a new CaArrayEntityReference with given id.

Parameters:
id - the id of the entity this is referencing.
Method Detail

getId

public java.lang.String getId()
Returns:
the id of the entity this is referencing

setId

public void setId(java.lang.String id)
Parameters:
id - the id to set

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object