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

java.lang.Object
  extended by org.homeunix.thecave.buddi.plugin.api.model.impl.ImmutableModelObjectImpl
      extended by org.homeunix.thecave.buddi.plugin.api.model.impl.ImmutableAccountTypeImpl
All Implemented Interfaces:
java.lang.Comparable<ImmutableModelObject>, ImmutableAccountType, ImmutableModelObject

public class ImmutableAccountTypeImpl
extends ImmutableModelObjectImpl
implements ImmutableAccountType


Constructor Summary
ImmutableAccountTypeImpl(AccountType type)
           
 
Method Summary
 java.lang.String getName()
          Returns the name associated with this type
 AccountType getType()
          Returns the wrapped object from the underlying data model.
 boolean isCredit()
          Does this type represent credit accounts?
 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

ImmutableAccountTypeImpl

public ImmutableAccountTypeImpl(AccountType type)
Method Detail

getType

public AccountType getType()
Description copied from interface: ImmutableAccountType
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:
getType in interface ImmutableAccountType
Returns:

getName

public java.lang.String getName()
Description copied from interface: ImmutableAccountType
Returns the name associated with this type

Specified by:
getName in interface ImmutableAccountType
Returns:

isCredit

public boolean isCredit()
Description copied from interface: ImmutableAccountType
Does this type represent credit accounts?

Specified by:
isCredit in interface ImmutableAccountType
Returns:

toString

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