org.globus.cog.abstraction.interfaces
Interface Identity

All Known Implementing Classes:
IdentityImpl

public interface Identity

A representation of a unique identity held by various cog-core objects. An Identity is a URI, collectively composed of a namespece and value. A sample Identity looks as follows:

urn:<namespace>:<value>


Method Summary
 boolean equals(Identity id)
          Compares this with any other Identity.
 String getNameSpace()
          Returns the namespace for this Identity.
 long getValue()
          Returns the value for this Identity.
 void setNameSpace(String namespace)
          Sets the namespace for this Identity.
 void setValue(long value)
          Sets the value for this Identity.
 

Method Detail

setNameSpace

public void setNameSpace(String namespace)
Sets the namespace for this Identity.

Parameters:
namespace - a string representing the namespace for this Identity.

getNameSpace

public String getNameSpace()
Returns the namespace for this Identity.

Returns:
the namespace for this Identity

setValue

public void setValue(long value)
Sets the value for this Identity.

Parameters:
value - a numeric value representing the namespace for this Identity.

getValue

public long getValue()
Returns the value for this Identity.

Returns:
the value for this Identity

equals

public boolean equals(Identity id)
Compares this with any other Identity.