org.homeunix.thecave.buddi.plugin.api.model.impl
Class ImmutableSourceImpl
java.lang.Object
org.homeunix.thecave.buddi.plugin.api.model.impl.ImmutableModelObjectImpl
org.homeunix.thecave.buddi.plugin.api.model.impl.ImmutableSourceImpl
- All Implemented Interfaces:
- java.lang.Comparable<ImmutableModelObject>, ImmutableModelObject, ImmutableSource
- Direct Known Subclasses:
- ImmutableAccountImpl, ImmutableBudgetCategoryImpl
public abstract class ImmutableSourceImpl
- extends ImmutableModelObjectImpl
- implements ImmutableSource
|
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? |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.lang.Comparable |
compareTo |
ImmutableSourceImpl
public ImmutableSourceImpl(Source source)
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