cartago
Class ArtifactId

java.lang.Object
  extended by cartago.ArtifactId
All Implemented Interfaces:
java.io.Serializable

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

Identifier of an artifact

Author:
aricci
See Also:
Serialized Form

Method Summary
 boolean equals(java.lang.Object aid)
          Check if two ids are equal
 java.lang.String getArtifactType()
          Get artifact type (i.e. the name of the template)
 AgentId getCreatorId()
          Get creator identifier.
 int getId()
          Get artifact unique id inside the workspace
 java.lang.String getName()
          Get the artifact logic name
 WorkspaceId getWorkspaceId()
          Get the identifier of the workspace where the artifact is located.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getName

public java.lang.String getName()
Get the artifact logic name

Returns:

getId

public int getId()
Get artifact unique id inside the workspace

Returns:

getArtifactType

public java.lang.String getArtifactType()
Get artifact type (i.e. the name of the template)

Returns:

getCreatorId

public AgentId getCreatorId()
Get creator identifier.

Returns:

equals

public boolean equals(java.lang.Object aid)
Check if two ids are equal

Overrides:
equals in class java.lang.Object

getWorkspaceId

public WorkspaceId getWorkspaceId()
Get the identifier of the workspace where the artifact is located.

Returns:

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object


>DEIS - University of Bologna