org.homeunix.thecave.buddi.model.impl
Class SourceImpl

java.lang.Object
  extended by org.homeunix.thecave.buddi.model.impl.ModelObjectImpl
      extended by org.homeunix.thecave.buddi.model.impl.SourceImpl
All Implemented Interfaces:
java.lang.Comparable<ModelObject>, ModelObject, Source
Direct Known Subclasses:
AccountImpl, BudgetCategoryImpl

public abstract class SourceImpl
extends ModelObjectImpl
implements Source

Default implementation of a Source. You should not create this object directly; instead, please use the ModelFactory to create it, as this will ensure that all required fields are correctly set.

Author:
wyatt

Field Summary
protected  boolean deleted
           
protected  java.lang.String name
           
protected  java.lang.String notes
           
 
Fields inherited from class org.homeunix.thecave.buddi.model.impl.ModelObjectImpl
document, modifiedTime, uid
 
Constructor Summary
SourceImpl()
           
 
Method Summary
 java.lang.String getName()
          Returns the name of the source
 java.lang.String getNotes()
          Return the notes associated with this source.
 boolean isDeleted()
          Is this source marked as deleted? When the user tries to delete a source, we try first to remove it from the model; if that cannot work (due to transactions referencing it), we mark it as deleted.
 void setDeleted(boolean deleted)
          Sets the deleted status of this source.
 void setName(java.lang.String name)
          Sets the name of this source.
 void setNotes(java.lang.String notes)
          Sets the free form notes associated with this account.
 java.lang.String toString()
           
 
Methods inherited from class org.homeunix.thecave.buddi.model.impl.ModelObjectImpl
compareTo, equals, getDocument, getModified, getUid, setChanged, setDocument, setModified, setModified, setUid
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.homeunix.thecave.buddi.model.Source
getFullName
 
Methods inherited from interface org.homeunix.thecave.buddi.model.ModelObject
compareTo, getDocument, getModified, getUid, setChanged, setDocument
 

Field Detail

name

protected java.lang.String name

deleted

protected boolean deleted

notes

protected java.lang.String notes
Constructor Detail

SourceImpl

public SourceImpl()
Method Detail

getName

public java.lang.String getName()
Description copied from interface: Source
Returns the name of the source

Specified by:
getName in interface Source
Returns:

getNotes

public java.lang.String getNotes()
Description copied from interface: Source
Return the notes associated with this source.

Specified by:
getNotes in interface Source
Returns:

isDeleted

public boolean isDeleted()
Description copied from interface: Source
Is this source marked as deleted? When the user tries to delete a source, we try first to remove it from the model; if that cannot work (due to transactions referencing it), we mark it as deleted. Depending on the preferences, we may or may not display sources which are marked as deleted.

Specified by:
isDeleted in interface Source
Returns:

setDeleted

public void setDeleted(boolean deleted)
                throws InvalidValueException
Description copied from interface: Source
Sets the deleted status of this source.

Specified by:
setDeleted in interface Source
Throws:
InvalidValueException

setName

public void setName(java.lang.String name)
             throws InvalidValueException
Description copied from interface: Source
Sets the name of this source.

Specified by:
setName in interface Source
Throws:
InvalidValueException

setNotes

public void setNotes(java.lang.String notes)
Description copied from interface: Source
Sets the free form notes associated with this account.

Specified by:
setNotes in interface Source

toString

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