Coalevo Logo

net.coalevo.foundation.model
Class BaseIdentifiable

java.lang.Object
  extended by net.coalevo.foundation.model.BaseIdentifiable
All Implemented Interfaces:
Identifiable
Direct Known Subclasses:
Action, BaseService

public abstract class BaseIdentifiable
extends java.lang.Object
implements Identifiable

Provides an abstract base Identifiable.

The identifying String is handled as final.

Version:
1.0.0 (10/02/2009)
Author:
Dieter Wimberger (wimpi)

Field Summary
protected  java.lang.String m_Identifier
           
 
Constructor Summary
BaseIdentifiable(java.lang.String id)
           
 
Method Summary
 boolean equals(java.lang.Object o)
           
 java.lang.String getIdentifier()
          Returns the identifier of this Identifiable.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

m_Identifier

protected final java.lang.String m_Identifier
Constructor Detail

BaseIdentifiable

public BaseIdentifiable(java.lang.String id)
Method Detail

getIdentifier

public java.lang.String getIdentifier()
Description copied from interface: Identifiable
Returns the identifier of this Identifiable.

Specified by:
getIdentifier in interface Identifiable
Returns:
the identifier as String.

toString

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

hashCode

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

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

Coalevo Logo

(c) 2004-2009 VFI (http://www.vfi.or.at)