org.sadun.util
Interface ObjectWithId

All Known Implementing Classes:
BaseObjectWithId

public interface ObjectWithId

Objects implementing this interface have a string identifier.

It depends on the specific object if the identifier be unique or not within a certain domain.

Author:
Cristiano Sadun

Method Summary
 java.lang.String getId()
          Return an id for an object.
 ObjectWithIdMetadata getMetadata()
          Return the metadata for the object.
 

Method Detail

getId

public java.lang.String getId()
Return an id for an object.

Returns:
an id for an object.

getMetadata

public ObjectWithIdMetadata getMetadata()
Return the metadata for the object.

Returns:
the metadatafor the object.