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

java.lang.Object
  extended by org.homeunix.thecave.buddi.plugin.api.model.impl.ImmutableModelObjectImpl
      extended by org.homeunix.thecave.buddi.plugin.api.model.impl.MutableModelObjectImpl
          extended by org.homeunix.thecave.buddi.plugin.api.model.impl.MutableSourceImpl
All Implemented Interfaces:
java.lang.Comparable<ImmutableModelObject>, ImmutableModelObject, ImmutableSource, MutableSource
Direct Known Subclasses:
MutableAccountImpl, MutableBudgetCategoryImpl

public abstract class MutableSourceImpl
extends MutableModelObjectImpl
implements MutableSource


Constructor Summary
MutableSourceImpl(Source source)
           
 
Method Summary
 java.lang.String getFullName()
          Returns the full name of this source.
 java.lang.String getName()
          Returns the name of this source
 java.lang.String getNotes()
          Return any notes associated with this source
 Source getSource()
          Returns the wrapped object from the underlying data model.
 boolean isDeleted()
          Is this source deleted?
 void setDeleted(boolean deleted)
          Sets this source as deleted
 void setName(java.lang.String name)
          Sets the name of this source
 void setNotes(java.lang.String notes)
          Sets the notes associated with this source
 java.lang.String toString()
           
 
Methods inherited from class org.homeunix.thecave.buddi.plugin.api.model.impl.ImmutableModelObjectImpl
compareTo, equals, getModified, getRaw, getUid, hashCode
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface org.homeunix.thecave.buddi.plugin.api.model.ImmutableModelObject
getModified, getRaw, getUid
 
Methods inherited from interface java.lang.Comparable
compareTo
 

Constructor Detail

MutableSourceImpl

public MutableSourceImpl(Source source)
Method Detail

setDeleted

public void setDeleted(boolean deleted)
                throws InvalidValueException
Description copied from interface: MutableSource
Sets this source as deleted

Specified by:
setDeleted in interface MutableSource
Throws:
InvalidValueException

setName

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

Specified by:
setName in interface MutableSource
Throws:
InvalidValueException

setNotes

public void setNotes(java.lang.String notes)
              throws InvalidValueException
Description copied from interface: MutableSource
Sets the notes associated with this source

Specified by:
setNotes in interface MutableSource
Throws:
InvalidValueException

getSource

public Source getSource()
Description copied from interface: ImmutableSource
Returns the wrapped object from the underlying data model. By accessing this method, you bypass all protection which the Buddi API gives you; it is not recommended to use this method unless you understand the risks associated with it.

Specified by:
getSource in interface ImmutableSource
Returns:

isDeleted

public boolean isDeleted()
Description copied from interface: ImmutableSource
Is this source deleted?

Specified by:
isDeleted in interface ImmutableSource
Returns:

getName

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

Specified by:
getName in interface ImmutableSource
Returns:

getFullName

public java.lang.String getFullName()
Description copied from interface: ImmutableSource
Returns the full name of this source. This differs for Account and Budget Categories: for Accounts, it returns getName() and getType().getName(); for Budget Categories, it just returns getName().

Specified by:
getFullName in interface ImmutableSource
Returns:

getNotes

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

Specified by:
getNotes in interface ImmutableSource
Returns:

toString

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