org.sadun.util
Interface ObjectWithIdMetadata

All Known Implementing Classes:
SimpleObjectWithIdMetadata

public interface ObjectWithIdMetadata

Author:
Cristiano Sadun

Method Summary
 java.lang.String getIdPrefix()
          Return the id prefix for an object.
 java.lang.Class getType()
          Return the concrete class of the object.
 

Method Detail

getIdPrefix

public java.lang.String getIdPrefix()
Return the id prefix for an object.

Typically, each object class has a class-dependent id prefix. An implementation may use the id prefix to veridy that a certain object has a proper id.

Returns:
the id prefix for an object.

getType

public java.lang.Class getType()
Return the concrete class of the object.

Returns:
the concrete class of the object.