SMILA 1.0 API documentation

org.eclipse.smila.connectivity
Class ConnectivityId

java.lang.Object
  extended by org.eclipse.smila.connectivity.ConnectivityId
All Implemented Interfaces:
java.io.Serializable

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

Identifier for objects in the connectivity area. Holds the source id and an object id.

See Also:
Serialized Form

Constructor Summary
ConnectivityId(ConnectivityId parentId, java.lang.String newObjectId)
          Creates a new ID for an object in a container with id parentId.
ConnectivityId(java.lang.String dataSourceId, java.lang.String objectId)
          Creaters a new ConnectivityId.
ConnectivityId(java.lang.String dataSourceId, java.lang.String objectId, ConnectivityId containerId)
          Creaters a new ConnectivityId.
 
Method Summary
 boolean equals(java.lang.Object obj)
          
 ConnectivityId getContainerId()
           
 java.lang.String getDataSourceId()
           
 java.lang.String getIdHash()
           
 java.lang.String getObjectId()
           
 int hashCode()
          
 java.lang.String toString()
          
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ConnectivityId

public ConnectivityId(java.lang.String dataSourceId,
                      java.lang.String objectId)
Creaters a new ConnectivityId.

Parameters:
dataSourceId - The (unique) id of the dataSource containing the object.
objectId - the id of the object. Must be unique within the dataSource.

ConnectivityId

public ConnectivityId(java.lang.String dataSourceId,
                      java.lang.String objectId,
                      ConnectivityId containerId)
Creaters a new ConnectivityId.

Parameters:
dataSourceId - The (unique) id of the dataSource containing the object.
objectId - the id of the object. Must be unique within the dataSource.
containerId - the id of the container (e.g. zip file, etc.)

ConnectivityId

public ConnectivityId(ConnectivityId parentId,
                      java.lang.String newObjectId)
Creates a new ID for an object in a container with id parentId.

Parameters:
parentId - the id of the container
newObjectId - the id of the new object within the container.
Method Detail

getDataSourceId

public java.lang.String getDataSourceId()
Returns:
the dataSourceId

getObjectId

public java.lang.String getObjectId()
Returns:
the objectId

getContainerId

public ConnectivityId getContainerId()
Returns:
the id of the parent container.

getIdHash

public java.lang.String getIdHash()
Returns:
a hash of the id.

hashCode

public int hashCode()

Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)

Overrides:
equals in class java.lang.Object

toString

public java.lang.String toString()

Overrides:
toString in class java.lang.Object

SMILA 1.0 API documentation