org.homeunix.thecave.buddi.plugin.api.model.impl
Class ImmutableModelObjectImpl

java.lang.Object
  extended by org.homeunix.thecave.buddi.plugin.api.model.impl.ImmutableModelObjectImpl
All Implemented Interfaces:
java.lang.Comparable<ImmutableModelObject>, ImmutableModelObject
Direct Known Subclasses:
ImmutableAccountTypeImpl, ImmutableDocumentImpl, ImmutableSourceImpl, ImmutableTransactionImpl, MutableModelObjectImpl

public abstract class ImmutableModelObjectImpl
extends java.lang.Object
implements ImmutableModelObject


Constructor Summary
ImmutableModelObjectImpl(ModelObject raw)
           
 
Method Summary
 int compareTo(ImmutableModelObject o)
           
 boolean equals(java.lang.Object obj)
           
 java.util.Date getModified()
          Returnst he modified date.
 ModelObject getRaw()
          Returns the raw (wrapped) model object.
 java.lang.String getUid()
          Returns the UID string for this object.
 int hashCode()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImmutableModelObjectImpl

public ImmutableModelObjectImpl(ModelObject raw)
Method Detail

getRaw

public ModelObject getRaw()
Description copied from interface: ImmutableModelObject
Returns the raw (wrapped) model object. When you use this object, you lose the safety of using the API. It is not recommended to use this method unless you know what you are doing.

Specified by:
getRaw in interface ImmutableModelObject
Returns:

compareTo

public int compareTo(ImmutableModelObject o)
Specified by:
compareTo in interface java.lang.Comparable<ImmutableModelObject>

equals

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

hashCode

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

getUid

public java.lang.String getUid()
Returns the UID string for this object.

Specified by:
getUid in interface ImmutableModelObject
Returns:

getModified

public java.util.Date getModified()
Description copied from interface: ImmutableModelObject
Returnst he modified date.

Specified by:
getModified in interface ImmutableModelObject
Returns:

toString

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